Class VirtualEmfModel
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.eol.emc.emf.virtual.VirtualEmfModel
- All Implemented Interfaces:
AutoCloseable,IModel
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.epsilon.eol.models.IModel
IModel.AmbiguityCheckResult -
Field Summary
FieldsFields inherited from class org.eclipse.epsilon.emc.emf.AbstractEmfModel
expand, modelImpl, PROPERTY_EXPAND, PROPERTY_PARALLELALLOF, registry, resourceLoadOptions, resourceStoreOptions, transactionSupportFields inherited from class org.eclipse.epsilon.eol.models.CachedModel
allContentsCache, kindCache, PROPERTY_CACHED, PROPERTY_CONCURRENT, typeCacheFields 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected org.eclipse.emf.ecore.EObjectcreateInstanceInModel(String type) booleanbooleanbooleanvoidload(StringProperties properties, IRelativePathResolver resolver) protected voidbooleanUsed to test whether an object is contained in this model.booleanstore()Methods inherited from class org.eclipse.epsilon.emc.emf.AbstractEmfModel
addMetamodelUri, allContentsFromModel, checkAmbiguity, classesForName, classForName, classForName, classForName, deleteElementInModel, disposeModel, getAllOfKindFromModel, getAllOfTypeFromModel, getAllTypeNamesOf, getCacheKeyForType, getContainerOf, getElementById, getElementId, getEnumerationValue, getFullyQualifiedName, getFullyQualifiedTypeNameOf, getInputStream, getModelImpl, getPackageRegistry, getResource, getResourceLoadOptions, getResources, getResourceStoreOptions, getTransactionSupport, getTypeNameOf, getTypeOf, hasAdapter, initCaches, isExpand, isInstantiable, isLoaded, isModelElement, isParallelAllOf, isPropertySet, knowsAboutProperty, knowsAboutProperty, putResourceLoadOption, putResourceStoreOption, setElementId, setExpand, setModelImpl, setParallelAllOf, setResource, setResourceLoadOptions, setResourceStoreOptions, store, store, store, validateMethods inherited from class org.eclipse.epsilon.eol.models.CachedModel
addToCache, allContents, clearCache, createInstance, deleteElement, dispose, getAllOfKind, getAllOfKindOrType, getAllOfType, isCachingEnabled, isConcurrent, load, removeFromCache, setCachingEnabled, setConcurrent, wrap, wrapUnmodifiableMethods inherited from class org.eclipse.epsilon.eol.models.Model
allInstances, createInstance, getAliases, getMetamodel, getName, getPropertyGetter, isReadOnLoad, isStoredOnDisposal, load, load, setName, setReadOnLoad, setStoredOnDisposal
-
Field Details
-
modelFile
-
modelFileUri
protected org.eclipse.emf.common.util.URI modelFileUri -
types
-
-
Constructor Details
-
VirtualEmfModel
public VirtualEmfModel()
-
-
Method Details
-
getPropertySetter
- Specified by:
getPropertySetterin interfaceIModel- Overrides:
getPropertySetterin classModel
-
isOfKind
public boolean isOfKind(Object instance, String metaClass) throws EolModelElementTypeNotFoundException - Specified by:
isOfKindin interfaceIModel- Overrides:
isOfKindin classAbstractEmfModel- Throws:
EolModelElementTypeNotFoundException
-
isOfType
public boolean isOfType(Object instance, String metaClass) throws EolModelElementTypeNotFoundException - Specified by:
isOfTypein interfaceIModel- Overrides:
isOfTypein classAbstractEmfModel- Throws:
EolModelElementTypeNotFoundException
-
hasType
- Specified by:
hasTypein interfaceIModel- Overrides:
hasTypein classAbstractEmfModel
-
createInstanceInModel
protected org.eclipse.emf.ecore.EObject createInstanceInModel(String type) throws EolModelElementTypeNotFoundException, EolNotInstantiableModelElementTypeException - Overrides:
createInstanceInModelin classAbstractEmfModel- Throws:
EolModelElementTypeNotFoundExceptionEolNotInstantiableModelElementTypeException
-
owns
Description copied from interface:IModelUsed to test whether an object is contained in this model.- Specified by:
ownsin interfaceIModel- Overrides:
ownsin classAbstractEmfModel- Parameters:
instance- the Java object to test.- Returns:
- true if and only if instance is contained by this model.
-
load
public void load(StringProperties properties, IRelativePathResolver resolver) throws EolModelLoadingException - Specified by:
loadin interfaceIModel- Overrides:
loadin classAbstractEmfModel- Throws:
EolModelLoadingException
-
loadModel
- Specified by:
loadModelin classCachedModel<org.eclipse.emf.ecore.EObject>- Throws:
EolModelLoadingException
-
store
public boolean store()
-