java.lang.Object
com.amalgamasimulation.emf.datastructure.sheets.EMFSheet<E>
Direct Known Subclasses:
EMFInstanceSheet, OneToManyRelationSheet

public abstract class EMFSheet<E> extends Object
  • Field Details

  • Constructor Details

    • EMFSheet

      protected EMFSheet(org.eclipse.emf.ecore.EClass eClass, String sheetName, IDataSource book)
  • Method Details

    • getSheetName

      public String getSheetName()
    • setRowValuesConverter

      public void setRowValuesConverter(Function<Map<String,String>,Map<String,String>> rowValuesConverter)
    • onColumnsLoaded

      protected void onColumnsLoaded(List<String> columnNames)
    • read

      public void read(com.amalgamasimulation.emf.excel.TableFileContext tableFileContext)
    • getLowerCamelCaseClassName

      protected String getLowerCamelCaseClassName(String className)
    • parseDateInternal

      protected LocalDateTime parseDateInternal(String initialValue)
    • getValueAndHandleException

      protected Object getValueAndHandleException(String originalStringValue, org.eclipse.emf.ecore.EClassifier classifier, EMFColumn<E> column, int rowIndex)
    • getValue

      protected Object getValue(String stringValue, org.eclipse.emf.ecore.EClassifier classifier, EMFColumn<E> column, int rowIndex) throws Exception
      Throws:
      Exception
    • parseLocalTime

      protected static LocalTime parseLocalTime(String stringValue)
    • write

      public abstract void write(DataStorage excelFile)
    • onRowLoaded

      protected abstract void onRowLoaded(int rowIndex, Map<String,String> valuesByColumnName)
    • afterReadingCompleted

      protected abstract void afterReadingCompleted()
    • getObjectsToWriteCount

      public abstract int getObjectsToWriteCount()
      Returns the number of objects (EObjects, etc.) to be written into this sheet.
    • toString

      public String toString()
      Overrides:
      toString in class Object