Class EMFPartExcelLoader<E extends org.eclipse.emf.ecore.EObject>

java.lang.Object
com.amalgamasimulation.emf.excel.EMFTransform<E>
com.amalgamasimulation.emf.excel.EMFExcelTransform<E>
com.amalgamasimulation.emf.excel.EMFExcelLoader<E>
com.amalgamasimulation.emf.excel.partialload.EMFPartExcelLoader<E>
All Implemented Interfaces:
EMFLoader<E>, EMFLoaderFactory<E>, EMFSaverAndLoaderFactory<E>, EMFSaverFactory<E>, ErrorsContainer

public class EMFPartExcelLoader<E extends org.eclipse.emf.ecore.EObject> extends com.amalgamasimulation.emf.excel.EMFExcelLoader<E>
A special kind of EMFExcelLoader used only for uploading 'partial scenario files'.

A partial scenario file contains one main sheet (the first one) and zero to many dependent sheets.

See Also:
  • Field Summary

    Fields inherited from class com.amalgamasimulation.emf.excel.EMFExcelLoader

    filePath, resource, rootObject

    Fields inherited from class com.amalgamasimulation.emf.excel.EMFTransform

    resourceErrors, resourceWarnings
  • Constructor Summary

    Constructors
    Constructor
    Description
    EMFPartExcelLoader(com.amalgamasimulation.emf.excel.EMFSetting emfSetting, String filePath)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<org.eclipse.emf.ecore.EObject>
     
    boolean
    Checks if the file was loaded successfully, i.e.
    protected boolean
     

    Methods inherited from class com.amalgamasimulation.emf.excel.EMFExcelLoader

    getRootObject, load, load, setFilePath

    Methods inherited from class com.amalgamasimulation.emf.excel.EMFExcelTransform

    createLoader, createResourceSetInternal, createResourceSetInternal, createResourceSetInternal, createSaver

    Methods inherited from class com.amalgamasimulation.emf.excel.EMFTransform

    addClassWithIgnoredIdentifiers, addCustomTableHandler, addDistributionFlattenings, addIgnoredClass, addIgnoredStructuralFeature, addPackage, clearErrorsAndWarnings, getEmfSetting, getErrors, getErrorsAndWarnings, getWarnings, setColumnHeaderProvider, setCustomSheetName, setCustomSheetName, setCustomUniqIdOnSheet, setRootClass, setValuesConverter

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.amalgamasimulation.emf.common.ErrorsContainer

    clearErrorsAndWarnings, getErrors, getWarnings
  • Constructor Details

    • EMFPartExcelLoader

      public EMFPartExcelLoader(com.amalgamasimulation.emf.excel.EMFSetting emfSetting, String filePath)
  • Method Details

    • getLoadedObjects

      public List<org.eclipse.emf.ecore.EObject> getLoadedObjects()
    • setAndCheckLoadedData

      protected boolean setAndCheckLoadedData()
      Overrides:
      setAndCheckLoadedData in class com.amalgamasimulation.emf.excel.EMFExcelLoader<E extends org.eclipse.emf.ecore.EObject>
    • isLoaded

      public boolean isLoaded()
      Description copied from interface: EMFLoader
      Checks if the file was loaded successfully, i.e. without any errors. Returns false if the file has not yet been loaded.
      Specified by:
      isLoaded in interface EMFLoader<E extends org.eclipse.emf.ecore.EObject>
      Overrides:
      isLoaded in class com.amalgamasimulation.emf.excel.EMFExcelLoader<E extends org.eclipse.emf.ecore.EObject>
      Returns:
      true if the file was loaded without any errors, false otherwise