Class IDataSource
java.lang.Object
com.amalgamasimulation.emf.datastructure.IDataSource
- Direct Known Subclasses:
EMFCSVArchive,EMFExcelFile
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<org.eclipse.emf.ecore.EClass> protected final com.amalgamasimulation.emf.excel.EObjectsContextprotected org.eclipse.emf.ecore.EClassprotected final com.amalgamasimulation.emf.excel.EMFTransform<?> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedIDataSource(com.amalgamasimulation.emf.excel.EMFTransform<?> transform, com.amalgamasimulation.emf.excel.EObjectsContext eObjectsContext) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddError(org.eclipse.emf.ecore.resource.Resource.Diagnostic error) protected voidaddSheetForEClass(org.eclipse.emf.ecore.EClass eClass) voidaddWarning(org.eclipse.emf.ecore.resource.Resource.Diagnostic warning) List<org.eclipse.emf.ecore.EReference> getContainmentReferences(org.eclipse.emf.ecore.EClass eClass) com.amalgamasimulation.emf.excel.EObjectsContextList<org.eclipse.emf.ecore.resource.Resource.Diagnostic> Set<org.eclipse.emf.ecore.EClass> org.eclipse.emf.ecore.EClassList<org.eclipse.emf.ecore.EClass> getSubTypes(org.eclipse.emf.ecore.EClass eClass) com.amalgamasimulation.emf.excel.EMFTransform<?> List<org.eclipse.emf.ecore.resource.Resource.Diagnostic> protected voidprotected booleanpreRead(AtomicReference<String> currentSheetName, com.amalgamasimulation.emf.excel.TableFileContext tableFileContext) Calls EMFInstanceSheet.preRead() for all EMFInstanceSheets.voidread(com.amalgamasimulation.emf.excel.TableFileContext tableFileContext) abstract <R extends DataStorage<?>>
voidwrite(R dataStorage)
-
Field Details
-
eObjectsContext
protected final com.amalgamasimulation.emf.excel.EObjectsContext eObjectsContext -
eClasses
-
transform
protected final com.amalgamasimulation.emf.excel.EMFTransform<?> transform -
sheets
-
rootEClass
protected org.eclipse.emf.ecore.EClass rootEClass
-
-
Constructor Details
-
IDataSource
protected IDataSource(com.amalgamasimulation.emf.excel.EMFTransform<?> transform, com.amalgamasimulation.emf.excel.EObjectsContext eObjectsContext)
-
-
Method Details
-
write
-
initRootEClassAndSheets
protected void initRootEClassAndSheets() -
addSheetForEClass
protected void addSheetForEClass(org.eclipse.emf.ecore.EClass eClass) -
getSubTypes
-
getContainmentReferences
public List<org.eclipse.emf.ecore.EReference> getContainmentReferences(org.eclipse.emf.ecore.EClass eClass) -
getSheets
-
getEObjectsContext
public com.amalgamasimulation.emf.excel.EObjectsContext getEObjectsContext() -
getReferencedClasses
-
getTransform
public com.amalgamasimulation.emf.excel.EMFTransform<?> getTransform() -
addError
public void addError(org.eclipse.emf.ecore.resource.Resource.Diagnostic error) -
addWarning
public void addWarning(org.eclipse.emf.ecore.resource.Resource.Diagnostic warning) -
getRootEClass
public org.eclipse.emf.ecore.EClass getRootEClass() -
preRead
protected boolean preRead(AtomicReference<String> currentSheetName, com.amalgamasimulation.emf.excel.TableFileContext tableFileContext) Calls EMFInstanceSheet.preRead() for all EMFInstanceSheets.- Parameters:
currentSheetName- Contains the name of the current EMFInstanceSheet whose EMFInstanceSheet.preRead() method is being called. The currentSheetName must be updated in this method before each EMFInstanceSheet.preRead() call.
-
read
public void read(com.amalgamasimulation.emf.excel.TableFileContext tableFileContext) -
getWarnings
-
getErrors
-