Class ConcreteModel
- java.lang.Object
-
- org.eclipse.epsilon.eol.models.Model
-
- org.eclipse.epsilon.emc.spreadsheets.SpreadsheetModel
-
- org.eclipse.epsilon.emc.spreadsheets.ConcreteModel
-
- All Implemented Interfaces:
AutoCloseable
,IModel
,ISearchableModel
public class ConcreteModel extends SpreadsheetModel
-
-
Field Summary
-
Fields inherited from class org.eclipse.epsilon.emc.spreadsheets.SpreadsheetModel
isLoaded, references, worksheets
-
Fields inherited from class org.eclipse.epsilon.eol.models.Model
aliases, ENV_PREFIX, name, PROPERTY_ALIASES, PROPERTY_NAME, PROPERTY_READONLOAD, PROPERTY_READONLY, PROPERTY_STOREONDISPOSAL, propertyGetter, propertySetter, readOnLoad, storeOnDisposal
-
-
Constructor Summary
Constructors Constructor Description ConcreteModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SpreadsheetWorksheet
createWorksheet(ISpreadsheetMetadata.SpreadsheetWorksheetMetadata worksheetMetadata)
The purpose of this method is to create a worksheet.protected void
deleteWorksheet(SpreadsheetWorksheet worksheet)
The purpose of this method is to delete the given worksheet from this spreadsheetCollection<SpreadsheetRow>
find(Variable iterator, ModuleElement ast, IEolContext context)
protected ISpreadsheetMetadata
getSpreadsheetMetadata()
The purpose of this method is to return an instance of the ISpreadsheetMetadata implementation for retrieving metadata for this spreadsheet modelprotected boolean
isMetadataConfigurationDefined()
protected void
loadSpreadsheet()
The purpose of this method is to load the spreadsheet.-
Methods inherited from class org.eclipse.epsilon.emc.spreadsheets.SpreadsheetModel
addReference, addWorksheet, allContents, createInstance, createInstance, createInstance, deleteElement, dispose, findOne, getAllOfKind, getAllOfType, getElementById, getElementId, getEnumerationValue, getPropertySetter, getReferences, getReferencesBySource, getReferencesBySource, getReferencesByTarget, getReferencesByTarget, getTypeNameOf, getTypeOf, getWorksheetByType, getWorksheets, hasType, isInstantiable, isLoaded, load, loadColumnsFromMetadata, loadConfigurationFile, loadReferenceFromConfigurationFile, loadWorksheetFromConfigurationFile, owns, setElementId, store, store
-
Methods inherited from class org.eclipse.epsilon.eol.models.Model
allInstances, getAliases, getFullyQualifiedTypeNameOf, getMetamodel, getName, getPropertyGetter, getTransactionSupport, isModelElement, isOfKind, isOfType, isPropertySet, isReadOnLoad, isStoredOnDisposal, knowsAboutProperty, load, load, load, setName, setReadOnLoad, setStoredOnDisposal
-
-
-
-
Method Detail
-
loadSpreadsheet
protected void loadSpreadsheet() throws Exception
Description copied from class:SpreadsheetModel
The purpose of this method is to load the spreadsheet.- Specified by:
loadSpreadsheet
in classSpreadsheetModel
- Throws:
Exception
-
getSpreadsheetMetadata
protected ISpreadsheetMetadata getSpreadsheetMetadata()
Description copied from class:SpreadsheetModel
The purpose of this method is to return an instance of the ISpreadsheetMetadata implementation for retrieving metadata for this spreadsheet model- Specified by:
getSpreadsheetMetadata
in classSpreadsheetModel
-
isMetadataConfigurationDefined
protected boolean isMetadataConfigurationDefined()
- Specified by:
isMetadataConfigurationDefined
in classSpreadsheetModel
- Returns:
- true if metadata has been provided, false otherwise
-
createWorksheet
protected SpreadsheetWorksheet createWorksheet(ISpreadsheetMetadata.SpreadsheetWorksheetMetadata worksheetMetadata) throws Exception
Description copied from class:SpreadsheetModel
The purpose of this method is to create a worksheet.- Specified by:
createWorksheet
in classSpreadsheetModel
- Returns:
- newly created worksheet
- Throws:
Exception
-
find
public Collection<SpreadsheetRow> find(Variable iterator, ModuleElement ast, IEolContext context) throws EolRuntimeException
- Specified by:
find
in interfaceISearchableModel
- Specified by:
find
in classSpreadsheetModel
- Throws:
EolRuntimeException
-
deleteWorksheet
protected void deleteWorksheet(SpreadsheetWorksheet worksheet)
Description copied from class:SpreadsheetModel
The purpose of this method is to delete the given worksheet from this spreadsheet- Specified by:
deleteWorksheet
in classSpreadsheetModel
-
-