Package org.eclipse.epsilon.emc.emf.m0
Class EmfM0Model
- java.lang.Object
-
- org.eclipse.epsilon.eol.models.Model
-
- org.eclipse.epsilon.eol.models.CachedModel<org.eclipse.emf.ecore.EObject>
-
- org.eclipse.epsilon.emc.emf.AbstractEmfModel
-
- org.eclipse.epsilon.emc.emf.EmfModel
-
- org.eclipse.epsilon.emc.emf.m0.EmfM0Model
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IModel
,IReflectiveModel
public class EmfM0Model extends EmfModel
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.epsilon.emc.emf.EmfModel
EmfModel.CachedContentsAdapter
-
-
Field Summary
Fields Modifier and Type Field Description protected IEolModule
eolModule
protected java.io.File
m0SpecificationFile
-
Fields inherited from class org.eclipse.epsilon.emc.emf.EmfModel
fileBasedMetamodels, fileBasedMetamodelTimestamps, isMetamodelFileBased, metamodelFileUris, metamodelUris, modelUri, packages, PROPERTY_FILE_BASED_METAMODEL_URI, PROPERTY_IS_METAMODEL_FILE_BASED, PROPERTY_METAMODEL_FILE, PROPERTY_METAMODEL_URI, PROPERTY_MODEL_FILE, PROPERTY_MODEL_URI, PROPERTY_REUSE_UNMODIFIED_FILE_BASED_METAMODELS, reuseUnmodifiedFileBasedMetamodels, useExtendedMetadata
-
Fields inherited from class org.eclipse.epsilon.emc.emf.AbstractEmfModel
expand, modelImpl, PROPERTY_EXPAND, PROPERTY_PARALLELALLOF, registry, transactionSupport
-
Fields inherited from class org.eclipse.epsilon.eol.models.CachedModel
allContentsCache, kindCache, PROPERTY_CACHED, PROPERTY_CONCURRENT, typeCache
-
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 EmfM0Model()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Collection<org.eclipse.emf.ecore.EObject>
getAllOfKindFromModel(java.lang.String metaClass)
protected java.util.Collection<org.eclipse.emf.ecore.EObject>
getAllOfTypeFromModel(java.lang.String metaClass)
java.lang.Object
getCacheKeyForType(java.lang.String type)
Returns an identity for the given type, which will be used byCachedModel
as a key for the memoization of model elements by type.IEolModule
getEolModule()
Operation
getHelper(java.lang.String name)
java.io.File
getM0SpecificationFile()
IReflectivePropertySetter
getPropertySetter()
boolean
hasType(java.lang.String type)
void
load(StringProperties properties, IRelativePathResolver resolver)
Load the model using the set of properties specified by the first argument.protected void
loadModel()
void
setEolModule(IEolModule eolModule)
void
setM0SpecificationFile(java.io.File specification)
-
Methods inherited from class org.eclipse.epsilon.emc.emf.EmfModel
addToCache, createResourceSet, determinePackagesFrom, forceAddToCache, forceRemoveFromCache, getEnumerationLabelOf, getEnumerationTypeOf, getMetamodel, getMetamodelFiles, getMetamodelFileUris, getMetamodelUris, getModelFile, getModelFileUri, getPropertiesOf, hasPackage, hasProperty, isEnumerationValue, isMetamodelFileBased, isReuseUnmodifiedFileBasedMetamodels, loadModelFromUri, preventLoadingOfExternalModelElements, removeFromCache, setCachingEnabled, setMetamodelFile, setMetamodelFileBased, setMetamodelFiles, setMetamodelFileUri, setMetamodelFileUris, setMetamodelUri, setMetamodelUris, setModelFile, setModelFileUri, setReuseUnmodifiedFileBasedMetamodels, setupContainmentChangeListeners, store, toString
-
Methods inherited from class org.eclipse.epsilon.emc.emf.AbstractEmfModel
addMetamodelUri, allContentsFromModel, classForName, classForName, classForName, createInstanceInModel, deleteElementInModel, disposeModel, getAllTypeNamesOf, getContainerOf, getElementById, getElementId, getEnumerationValue, getFullyQualifiedName, getFullyQualifiedTypeNameOf, getInputStream, getModelImpl, getPackageRegistry, getResource, getResources, getTransactionSupport, getTypeNameOf, getTypeOf, hasAdapter, initCaches, isExpand, isInstantiable, isLoaded, isModelElement, isOfKind, isOfType, isParallelAllOf, isPropertySet, knowsAboutProperty, knowsAboutProperty, owns, setElementId, setExpand, setModelImpl, setParallelAllOf, setResource, store, store, store
-
Methods inherited from class org.eclipse.epsilon.eol.models.CachedModel
allContents, clearCache, createInstance, deleteElement, dispose, getAllOfKind, getAllOfKindOrType, getAllOfType, isCachingEnabled, isConcurrent, load, setConcurrent, wrap
-
Methods inherited from class org.eclipse.epsilon.eol.models.Model
allInstances, createInstance, getAliases, getName, getPropertyGetter, isReadOnLoad, isStoredOnDisposal, load, load, setName, setReadOnLoad, setStoredOnDisposal
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.epsilon.eol.models.IModel
allContents, close, createInstance, createInstance, deleteElement, dispose, getAliases, getAllOfKind, getAllOfType, getElementById, getElementId, getEnumerationValue, getFullyQualifiedTypeNameOf, getName, getPropertyGetter, getTransactionSupport, getTypeNameOf, getTypeOf, isInstantiable, isModelElement, isOfKind, isOfType, isPropertySet, isReadOnLoad, isStoredOnDisposal, knowsAboutProperty, load, load, load, owns, setElementId, setName, setReadOnLoad, setStoredOnDisposal, store
-
Methods inherited from interface org.eclipse.epsilon.eol.models.IReflectiveModel
getContainerOf
-
-
-
-
Field Detail
-
m0SpecificationFile
protected java.io.File m0SpecificationFile
-
eolModule
protected IEolModule eolModule
-
-
Method Detail
-
load
public void load(StringProperties properties, IRelativePathResolver resolver) throws EolModelLoadingException
Description copied from class:EmfModel
Load the model using the set of properties specified by the first argument.- Specified by:
load
in interfaceIModel
- Overrides:
load
in classEmfModel
- Throws:
EolModelLoadingException
- See Also:
EmfModel.PROPERTY_MODEL_URI
,EmfModel.PROPERTY_IS_METAMODEL_FILE_BASED
,AbstractEmfModel.PROPERTY_EXPAND
, Rationale for deprecating the FILE properties.
-
loadModel
protected void loadModel() throws EolModelLoadingException
- Overrides:
loadModel
in classEmfModel
- Throws:
EolModelLoadingException
-
getHelper
public Operation getHelper(java.lang.String name)
-
getPropertySetter
public IReflectivePropertySetter getPropertySetter()
- Specified by:
getPropertySetter
in interfaceIModel
- Specified by:
getPropertySetter
in interfaceIReflectiveModel
- Overrides:
getPropertySetter
in classEmfModel
-
getAllOfTypeFromModel
protected java.util.Collection<org.eclipse.emf.ecore.EObject> getAllOfTypeFromModel(java.lang.String metaClass) throws EolModelElementTypeNotFoundException
- Overrides:
getAllOfTypeFromModel
in classAbstractEmfModel
- Throws:
EolModelElementTypeNotFoundException
-
getCacheKeyForType
public java.lang.Object getCacheKeyForType(java.lang.String type) throws EolModelElementTypeNotFoundException
Description copied from class:CachedModel
Returns an identity for the given type, which will be used byCachedModel
as a key for the memoization of model elements by type.- Overrides:
getCacheKeyForType
in classAbstractEmfModel
- Throws:
EolModelElementTypeNotFoundException
-
getAllOfKindFromModel
protected java.util.Collection<org.eclipse.emf.ecore.EObject> getAllOfKindFromModel(java.lang.String metaClass) throws EolModelElementTypeNotFoundException
- Overrides:
getAllOfKindFromModel
in classAbstractEmfModel
- Throws:
EolModelElementTypeNotFoundException
-
hasType
public boolean hasType(java.lang.String type)
- Specified by:
hasType
in interfaceIModel
- Overrides:
hasType
in classAbstractEmfModel
-
getM0SpecificationFile
public java.io.File getM0SpecificationFile()
-
setM0SpecificationFile
public void setM0SpecificationFile(java.io.File specification)
-
getEolModule
public IEolModule getEolModule()
-
setEolModule
public void setEolModule(IEolModule eolModule)
-
-