Class EMFInstanceSheet
java.lang.Object
com.amalgamasimulation.emf.datastructure.sheets.EMFSheet<org.eclipse.emf.ecore.EObject>
com.amalgamasimulation.emf.datastructure.sheets.EMFInstanceSheet
- Direct Known Subclasses:
FullyContainedEClassSheet,RootEClassSheet,SingleContainedEClassSheet
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected org.eclipse.emf.ecore.EReferenceFields inherited from class com.amalgamasimulation.emf.datastructure.sheets.EMFSheet
book, cachedDates, columns, eClass, formatters, lastFormatterIndex, PARSED_VALUES_CACHE_SIZE, rowValuesConverter, sheetName -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEMFInstanceSheet(org.eclipse.emf.ecore.EClass eClass, org.eclipse.emf.ecore.EReference reference, IDataSource book) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected booleanassignValuesAndTryFindContainer(org.eclipse.emf.ecore.EObject eObject, Map<String, String> valuesByColumnNames, int rowIndex) protected abstract List<org.eclipse.emf.ecore.EObject> EMFColumn<org.eclipse.emf.ecore.EObject> intReturns the number of objects (EObjects, etc.) to be written into this sheet.protected voidonColumnsLoaded(List<String> columnNames) protected voidonRowLoaded(int rowIndex, Map<String, String> valuesByColumnNames) voidpreRead(com.amalgamasimulation.emf.excel.TableFileContext tableFileContext) protected abstract voidsetContents(org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EObject contents) protected voidsetNewValueInEObject(Object newValue, org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature structuralFeature) protected abstract voidtryPlaceIntoRootObject(org.eclipse.emf.ecore.EObject contents) voidwrite(DataStorage excelFile) Methods inherited from class com.amalgamasimulation.emf.datastructure.sheets.EMFSheet
getLowerCamelCaseClassName, getSheetName, getValue, getValueAndHandleException, parseDateInternal, parseLocalTime, read, setRowValuesConverter, toString
-
Field Details
-
reference
protected org.eclipse.emf.ecore.EReference reference -
preread
protected boolean preread
-
-
Constructor Details
-
EMFInstanceSheet
protected EMFInstanceSheet(org.eclipse.emf.ecore.EClass eClass, org.eclipse.emf.ecore.EReference reference, IDataSource book)
-
-
Method Details
-
setContents
protected abstract void setContents(org.eclipse.emf.ecore.EObject container, org.eclipse.emf.ecore.EObject contents) -
tryPlaceIntoRootObject
protected abstract void tryPlaceIntoRootObject(org.eclipse.emf.ecore.EObject contents) -
getEObjectsToWrite
-
onColumnsLoaded
- Overrides:
onColumnsLoadedin classEMFSheet<org.eclipse.emf.ecore.EObject>
-
getColumns
-
getIdColumn
-
write
-
getObjectsToWriteCount
public int getObjectsToWriteCount()Description copied from class:EMFSheetReturns the number of objects (EObjects, etc.) to be written into this sheet.- Specified by:
getObjectsToWriteCountin classEMFSheet<org.eclipse.emf.ecore.EObject>
-
preRead
public void preRead(com.amalgamasimulation.emf.excel.TableFileContext tableFileContext) -
assignValuesAndTryFindContainer
-
setNewValueInEObject
protected void setNewValueInEObject(Object newValue, org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature structuralFeature) -
onRowLoaded
- Specified by:
onRowLoadedin classEMFSheet<org.eclipse.emf.ecore.EObject>
-
afterReadingCompleted
protected void afterReadingCompleted()- Specified by:
afterReadingCompletedin classEMFSheet<org.eclipse.emf.ecore.EObject>
-