Class DecoratorEmfModel
- 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.decorator.DecoratorEmfModel
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IModel
,IReflectiveModel
public class DecoratorEmfModel extends EmfModel
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.epsilon.emc.emf.EmfModel
EmfModel.CachedContentsAdapter
-
-
Field Summary
-
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 DecoratorEmfModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<DecoratorDescriptor>
getDecoratorDescriptors()
protected java.util.List<org.eclipse.emf.ecore.EClass>
getDecoratorEClasses(java.util.Collection<org.eclipse.emf.ecore.EPackage> ePackages)
IReflectivePropertySetter
getPropertySetter()
protected boolean
isDecorator(org.eclipse.emf.ecore.EClass e)
protected boolean
isDecoratorFor(org.eclipse.emf.ecore.EObject candidateDecorator, java.lang.Object target, org.eclipse.emf.ecore.EReference eReference)
protected boolean
isHook(org.eclipse.emf.ecore.EReference e)
boolean
knowsAboutProperty(java.lang.Object instance, java.lang.String property)
Returnstrue
if this instance could have this property at some point.-
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, load, loadModel, 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, getAllOfKindFromModel, getAllOfTypeFromModel, getAllTypeNamesOf, getCacheKeyForType, getContainerOf, getElementById, getElementId, getEnumerationValue, getFullyQualifiedName, getFullyQualifiedTypeNameOf, getInputStream, getModelImpl, getPackageRegistry, getResource, getResources, getTransactionSupport, getTypeNameOf, getTypeOf, hasAdapter, hasType, initCaches, isExpand, isInstantiable, isLoaded, isModelElement, isOfKind, isOfType, isParallelAllOf, isPropertySet, 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, hasType, isInstantiable, isModelElement, isOfKind, isOfType, isPropertySet, isReadOnLoad, isStoredOnDisposal, load, load, load, owns, setElementId, setName, setReadOnLoad, setStoredOnDisposal, store
-
Methods inherited from interface org.eclipse.epsilon.eol.models.IReflectiveModel
getContainerOf
-
-
-
-
Method Detail
-
getDecoratorEClasses
protected java.util.List<org.eclipse.emf.ecore.EClass> getDecoratorEClasses(java.util.Collection<org.eclipse.emf.ecore.EPackage> ePackages)
-
getDecoratorDescriptors
protected java.util.List<DecoratorDescriptor> getDecoratorDescriptors()
-
knowsAboutProperty
public boolean knowsAboutProperty(java.lang.Object instance, java.lang.String property)
Description copied from interface:IModel
Returnstrue
if this instance could have this property at some point.- Specified by:
knowsAboutProperty
in interfaceIModel
- Overrides:
knowsAboutProperty
in classAbstractEmfModel
-
isDecorator
protected boolean isDecorator(org.eclipse.emf.ecore.EClass e)
-
isHook
protected boolean isHook(org.eclipse.emf.ecore.EReference e)
-
isDecoratorFor
protected boolean isDecoratorFor(org.eclipse.emf.ecore.EObject candidateDecorator, java.lang.Object target, org.eclipse.emf.ecore.EReference eReference)
-
getPropertySetter
public IReflectivePropertySetter getPropertySetter()
- Specified by:
getPropertySetter
in interfaceIModel
- Specified by:
getPropertySetter
in interfaceIReflectiveModel
- Overrides:
getPropertySetter
in classEmfModel
-
-