Class EMFSheet<E>
java.lang.Object
com.amalgamasimulation.emf.datastructure.sheets.EMFSheet<E>
- Direct Known Subclasses:
EMFInstanceSheet,OneToManyRelationSheet
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final IDataSourceprotected Map<String, LocalDateTime> protected final org.eclipse.emf.ecore.EClassprotected static List<Function<String, LocalDateTime>> protected intprotected static final intprotected String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedEMFSheet(org.eclipse.emf.ecore.EClass eClass, String sheetName, IDataSource book) -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidprotected StringgetLowerCamelCaseClassName(String className) abstract intReturns the number of objects (EObjects, etc.) to be written into this sheet.protected ObjectgetValue(String stringValue, org.eclipse.emf.ecore.EClassifier classifier, EMFColumn<E> column, int rowIndex) protected ObjectgetValueAndHandleException(String originalStringValue, org.eclipse.emf.ecore.EClassifier classifier, EMFColumn<E> column, int rowIndex) protected voidonColumnsLoaded(List<String> columnNames) protected abstract voidonRowLoaded(int rowIndex, Map<String, String> valuesByColumnName) protected LocalDateTimeparseDateInternal(String initialValue) protected static LocalTimeparseLocalTime(String stringValue) voidread(com.amalgamasimulation.emf.excel.TableFileContext tableFileContext) voidtoString()abstract voidwrite(DataStorage excelFile)
-
Field Details
-
PARSED_VALUES_CACHE_SIZE
protected static final int PARSED_VALUES_CACHE_SIZE- See Also:
-
eClass
protected final org.eclipse.emf.ecore.EClass eClass -
sheetName
-
book
-
columns
-
cachedDates
-
rowValuesConverter
-
formatters
-
lastFormatterIndex
protected int lastFormatterIndex
-
-
Constructor Details
-
EMFSheet
-
-
Method Details
-
getSheetName
-
setRowValuesConverter
-
onColumnsLoaded
-
read
public void read(com.amalgamasimulation.emf.excel.TableFileContext tableFileContext) -
getLowerCamelCaseClassName
-
parseDateInternal
-
getValueAndHandleException
-
getValue
protected Object getValue(String stringValue, org.eclipse.emf.ecore.EClassifier classifier, EMFColumn<E> column, int rowIndex) throws Exception - Throws:
Exception
-
parseLocalTime
-
write
-
onRowLoaded
-
afterReadingCompleted
protected abstract void afterReadingCompleted() -
getObjectsToWriteCount
public abstract int getObjectsToWriteCount()Returns the number of objects (EObjects, etc.) to be written into this sheet. -
toString
-