Package org.eclipse.epsilon.eol.models
Class EmptyModel
java.lang.Object
org.eclipse.epsilon.eol.models.Model
org.eclipse.epsilon.eol.models.EmptyModel
- All Implemented Interfaces:
AutoCloseable,IModel
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.epsilon.eol.models.IModel
IModel.AmbiguityCheckResult -
Field Summary
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 -
Method Summary
Modifier and TypeMethodDescriptionCollection<?>Returns a collection containing all of the objects contained in this model.createInstance(String metaClass) voiddeleteElement(Object instance) voiddispose()Collection<?>getAllClasses(boolean onlyConcrete) Collection<?>getAllOfKind(String metaClass) Collection<?>getAllOfType(String metaClass) Collection<?>getAllSubtypes(String metaClass) Collection<?>getAllSupertypes(String metaClass) getClassOf(Object instance) getElementById(String id) getElementId(Object instance) getEnumerationValue(String enumeration, String label) getPropertiesOf(String type) getTypeNameOf(Object instance) Returns a string representing the type of the instance object.booleanbooleanisInstantiable(String metaClass) booleanisLoaded()booleanisModelElement(Object instance) Used to test whether a Java object can be contained by this model.voidload()voidload(StringProperties properties, IRelativePathResolver resolver) booleanUsed to test whether an object is contained in this model.voidsetElementId(Object instance, String newId) booleanstore()booleanMethods inherited from class org.eclipse.epsilon.eol.models.Model
allInstances, createInstance, getAliases, getFullyQualifiedTypeNameOf, getMetamodel, getName, getPropertyGetter, getPropertySetter, getTransactionSupport, isOfKind, isOfType, isPropertySet, isReadOnLoad, isStoredOnDisposal, knowsAboutProperty, load, load, setName, setReadOnLoad, setStoredOnDisposalMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.epsilon.eol.models.IModel
checkAmbiguity, close
-
Constructor Details
-
EmptyModel
public EmptyModel()
-
-
Method Details
-
load
- Throws:
EolModelLoadingException
-
getMetaModel
-
getEnumerationValue
-
getAllOfType
-
getAllOfKind
-
getAllSupertypes
-
getAllSubtypes
-
getAllClasses
-
getTypeOf
-
getTypeNameOf
Description copied from interface:IModelReturns a string representing the type of the instance object. The value returned by this function can be passed to createInstance to instantiate another object of the same type as instance.- Parameters:
instance- The model object whose type is to be determined.- Returns:
- the name of the type of the model object, instance.
-
getPropertiesOf
-
createInstance
public Object createInstance(String metaClass) throws EolModelElementTypeNotFoundException, EolNotInstantiableModelElementTypeException -
getElementById
-
getElementId
-
setElementId
-
deleteElement
-
getClassOf
-
owns
Description copied from interface:IModelUsed to test whether an object is contained in this model.- Parameters:
instance- the Java object to test.- Returns:
- true if and only if instance is contained by this model.
-
store
-
store
public boolean store() -
dispose
public void dispose() -
allContents
Description copied from interface:IModelReturns a collection containing all of the objects contained in this model.- Returns:
- all of the objects contained in this model.
-
isInstantiable
-
hasType
-
load
public void load(StringProperties properties, IRelativePathResolver resolver) throws EolModelLoadingException - Specified by:
loadin interfaceIModel- Overrides:
loadin classModel- Throws:
EolModelLoadingException
-
isModelElement
Description copied from interface:IModelUsed to test whether a Java object can be contained by this model. For example, EMF models can contain instances of EObject, but not instances of just Object.- Specified by:
isModelElementin interfaceIModel- Overrides:
isModelElementin classModel- Parameters:
instance- the Java object to test.- Returns:
- true if and only if instance can be contained by this model.
-
isLoaded
public boolean isLoaded()- Since:
- 1.6
-