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
ConstructorsModifierConstructorDescriptionprotectedEMFExcelTransformWithEdapt(com.amalgamasimulation.emf.excel.EMFSetting emfSetting) EMFExcelTransformWithEdapt(org.eclipse.emf.ecore.EClass rootEClass, org.eclipse.emf.ecore.EPackage... ePackages) -
Method Summary
Modifier and TypeMethodDescriptionaddPackage(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, createSaverMethods inherited from class com.amalgamasimulation.emf.excel.EMFTransform
addClassWithIgnoredIdentifiers, addCustomTableHandler, addDistributionFlattenings, addIgnoredClass, addIgnoredStructuralFeature, clearErrorsAndWarnings, getEmfSetting, getErrors, getErrorsAndWarnings, getWarnings, setColumnHeaderProvider, setCustomSheetName, setCustomUniqIdOnSheet, setValuesConverter
-
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
Description copied from class:com.amalgamasimulation.emf.excel.EMFTransformSet the root class. The root class is the class that stores all the objects of the data model.- Overrides:
setRootClassin classcom.amalgamasimulation.emf.excel.EMFTransform<E extends org.eclipse.emf.ecore.EObject>
-
addPackage
Description copied from class:com.amalgamasimulation.emf.excel.EMFTransformEPackage - 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:
addPackagein classcom.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.EMFTransformThere 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:
setCustomSheetNamein classcom.amalgamasimulation.emf.excel.EMFTransform<E extends org.eclipse.emf.ecore.EObject>- Parameters:
eReference- reference on one to many datasheetName- custom name
-
createLoader
- Specified by:
createLoaderin interfaceEMFLoaderFactory<E extends org.eclipse.emf.ecore.EObject>- Overrides:
createLoaderin classcom.amalgamasimulation.emf.excel.EMFExcelTransform<E extends org.eclipse.emf.ecore.EObject>
-