Class EMFPartOneClassFile
java.lang.Object
com.amalgamasimulation.emf.datastructure.IDataSource
com.amalgamasimulation.emf.datastructure.EMFExcelFile
com.amalgamasimulation.emf.datastructure.EMFPartOneClassFile
- Direct Known Subclasses:
EMFPartCSVArchive
An Excel file that contains only a part of the whole scenario data that is
related to some selected EClass of objects.
The EMFPartExcelFile class is used to augment tabular data editing done via
the UI of a desktop application with editing in Excel.
Exporting/importing a partial scenario should work faster than that of the
whole scenario.
Besides, partial export allows users to focus on editing only the data they
are interested in. A partially exported scenario typically contains 3-7 Excel
sheets, while the data model of a complex application may be large enough to
map to 50+ Excel sheets.
-
Field Summary
FieldsFields inherited from class com.amalgamasimulation.emf.datastructure.EMFExcelFile
MAX_ROWS_PER_WORKSHEETFields inherited from class com.amalgamasimulation.emf.datastructure.IDataSource
eClasses, eObjectsContext, rootEClass, sheets, transform -
Constructor Summary
ConstructorsConstructorDescriptionEMFPartOneClassFile(com.amalgamasimulation.emf.excel.EMFTransform<?> transform, com.amalgamasimulation.emf.excel.EObjectsContext eObjectsContext, org.eclipse.emf.ecore.EClass oneClassLoaded) -
Method Summary
Modifier and TypeMethodDescriptionprotected MainClassPartEditSheetcreatePartEditSheet(org.eclipse.emf.ecore.EClass eClass, org.eclipse.emf.ecore.EReference reference, IDataSource book, boolean onlyAttributies) 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) Methods inherited from class com.amalgamasimulation.emf.datastructure.EMFExcelFile
checkCanWrite, writeMethods inherited from class com.amalgamasimulation.emf.datastructure.IDataSource
addError, addSheetForEClass, addWarning, getContainmentReferences, getEObjectsContext, getErrors, getReferencedClasses, getRootEClass, getSheets, getSubTypes, getTransform, getWarnings
-
Field Details
-
oneClassLoaded
protected final org.eclipse.emf.ecore.EClass oneClassLoaded
-
-
Constructor Details
-
EMFPartOneClassFile
public EMFPartOneClassFile(com.amalgamasimulation.emf.excel.EMFTransform<?> transform, com.amalgamasimulation.emf.excel.EObjectsContext eObjectsContext, org.eclipse.emf.ecore.EClass oneClassLoaded)
-
-
Method Details
-
initRootEClassAndSheets
protected void initRootEClassAndSheets()- Overrides:
initRootEClassAndSheetsin classIDataSource
-
createPartEditSheet
protected MainClassPartEditSheet createPartEditSheet(org.eclipse.emf.ecore.EClass eClass, org.eclipse.emf.ecore.EReference reference, IDataSource book, boolean onlyAttributies) -
preRead
protected boolean preRead(AtomicReference<String> currentSheetName, com.amalgamasimulation.emf.excel.TableFileContext tableFileContext) Description copied from class:IDataSourceCalls EMFInstanceSheet.preRead() for all EMFInstanceSheets.- Overrides:
preReadin classIDataSource- 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) - Overrides:
readin classIDataSource
-