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

public abstract class EMFInstanceSheet extends EMFSheet<org.eclipse.emf.ecore.EObject>
  • 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

      protected abstract List<org.eclipse.emf.ecore.EObject> getEObjectsToWrite()
    • onColumnsLoaded

      protected void onColumnsLoaded(List<String> columnNames)
      Overrides:
      onColumnsLoaded in class EMFSheet<org.eclipse.emf.ecore.EObject>
    • getColumns

      public List<EMFColumn<org.eclipse.emf.ecore.EObject>> getColumns()
    • getIdColumn

      public EMFColumn<org.eclipse.emf.ecore.EObject> getIdColumn()
    • write

      public void write(DataStorage excelFile)
      Specified by:
      write in class EMFSheet<org.eclipse.emf.ecore.EObject>
    • getObjectsToWriteCount

      public int getObjectsToWriteCount()
      Description copied from class: EMFSheet
      Returns the number of objects (EObjects, etc.) to be written into this sheet.
      Specified by:
      getObjectsToWriteCount in class EMFSheet<org.eclipse.emf.ecore.EObject>
    • preRead

      public void preRead(com.amalgamasimulation.emf.excel.TableFileContext tableFileContext)
    • assignValuesAndTryFindContainer

      protected boolean assignValuesAndTryFindContainer(org.eclipse.emf.ecore.EObject eObject, Map<String,String> valuesByColumnNames, int rowIndex)
    • setNewValueInEObject

      protected void setNewValueInEObject(Object newValue, org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EStructuralFeature structuralFeature)
    • onRowLoaded

      protected void onRowLoaded(int rowIndex, Map<String,String> valuesByColumnNames)
      Specified by:
      onRowLoaded in class EMFSheet<org.eclipse.emf.ecore.EObject>
    • afterReadingCompleted

      protected void afterReadingCompleted()
      Specified by:
      afterReadingCompleted in class EMFSheet<org.eclipse.emf.ecore.EObject>