Class EMFExcelTransformWithEdapt<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.edapt.EMFExcelTransformWithEdapt<E>
All Implemented Interfaces:
EMFLoaderFactory<E>, EMFSaverAndLoaderFactory<E>, EMFSaverFactory<E>, ErrorsContainer

public class EMFExcelTransformWithEdapt<E extends org.eclipse.emf.ecore.EObject> extends com.amalgamasimulation.emf.excel.EMFExcelTransform<E>
  • Field Summary

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

    resourceErrors, resourceWarnings
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
     
    protected
    EMFExcelTransformWithEdapt(com.amalgamasimulation.emf.excel.EMFSetting emfSetting)
     
     
    EMFExcelTransformWithEdapt(org.eclipse.emf.ecore.EClass rootEClass, org.eclipse.emf.ecore.EPackage... ePackages)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    addPackage(org.eclipse.emf.ecore.EPackage ePackage)
    EPackage - object that stores the description of the data model.
    createLoader(String filePath)
     
    setCustomSheetName(org.eclipse.emf.ecore.EReference eReference, String sheetName)
    There is a way to store data one to many.
    setRootClass(org.eclipse.emf.ecore.EClass rootEClass)
    Set the root class.

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

    createResourceSetInternal, createResourceSetInternal, createResourceSetInternal, createSaver

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

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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EMFExcelTransformWithEdapt

      public EMFExcelTransformWithEdapt(org.eclipse.emf.ecore.EClass rootEClass, org.eclipse.emf.ecore.EPackage... ePackages)
    • EMFExcelTransformWithEdapt

      public EMFExcelTransformWithEdapt()
    • EMFExcelTransformWithEdapt

      protected EMFExcelTransformWithEdapt(com.amalgamasimulation.emf.excel.EMFSetting emfSetting)
  • Method Details

    • setRootClass

      public EMFExcelTransformWithEdapt<E> setRootClass(org.eclipse.emf.ecore.EClass rootEClass)
      Description copied from class: com.amalgamasimulation.emf.excel.EMFTransform
      Set the root class. The root class is the class that stores all the objects of the data model.
      Overrides:
      setRootClass in class com.amalgamasimulation.emf.excel.EMFTransform<E extends org.eclipse.emf.ecore.EObject>
    • addPackage

      public EMFExcelTransformWithEdapt<E> addPackage(org.eclipse.emf.ecore.EPackage ePackage)
      Description copied from class: com.amalgamasimulation.emf.excel.EMFTransform
      EPackage - object that stores the description of the data model. It is needed to find out what classes exist in the data model for saving/loading.
      Overrides:
      addPackage in class com.amalgamasimulation.emf.excel.EMFTransform<E extends org.eclipse.emf.ecore.EObject>
    • setCustomSheetName

      public EMFExcelTransformWithEdapt<E> setCustomSheetName(org.eclipse.emf.ecore.EReference eReference, String sheetName)
      Description copied from class: com.amalgamasimulation.emf.excel.EMFTransform
      There is a way to store data one to many. This is when one object stores a list of others. This type of data is written to a separate sheet/table. This function sets the name for this sheet/table.
      Overrides:
      setCustomSheetName in class com.amalgamasimulation.emf.excel.EMFTransform<E extends org.eclipse.emf.ecore.EObject>
      Parameters:
      eReference - reference on one to many data
      sheetName - custom name
    • createLoader

      public EMFExcelLoaderWithEdapt<E> createLoader(String filePath)
      Specified by:
      createLoader in interface EMFLoaderFactory<E extends org.eclipse.emf.ecore.EObject>
      Overrides:
      createLoader in class com.amalgamasimulation.emf.excel.EMFExcelTransform<E extends org.eclipse.emf.ecore.EObject>