Package org.eclipse.epsilon.emc.muddle
Class MuddleModel
java.lang.Object
org.eclipse.epsilon.eol.models.Model
org.eclipse.epsilon.emc.muddle.MuddleModel
- All Implemented Interfaces:
AutoCloseable,IModel
- Direct Known Subclasses:
GraphmlModel
-
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.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.protected voidcollectAllSubTypes(MuddleElementType elementType, Set<MuddleElementType> allSubTypes) voidCollection<?>getAllOfKind(String type) Collection<?>getAllOfType(String type) protected Set<MuddleElementType>getAllSubTypes(MuddleElementType elementType) getElementById(String id) getEnumerationValue(String arg0, String arg1) Returns a string representing the type of the instance object.booleanbooleanisInstantiable(String type) booleanisLoaded()voidload()protected MuddleElementTypebooleanUsed to test whether an object is contained in this model.voidsetElementId(Object o, String id) voidbooleanstore()booleanMethods inherited from class org.eclipse.epsilon.eol.models.Model
allInstances, createInstance, dispose, getAliases, getFullyQualifiedTypeNameOf, getMetamodel, getName, getPropertyGetter, getPropertySetter, getTransactionSupport, getTypeOf, isModelElement, isOfKind, isOfType, isPropertySet, isReadOnLoad, isStoredOnDisposal, knowsAboutProperty, load, 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
-
Field Details
-
muddle
-
unusedFeatures
-
-
Constructor Details
-
MuddleModel
public MuddleModel()
-
-
Method Details
-
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.
-
getUnusedFeatures
-
createInstance
public Object createInstance(String t) throws EolModelElementTypeNotFoundException, EolNotInstantiableModelElementTypeException -
deleteElement
- Throws:
EolRuntimeException
-
getAllOfKind
-
getAllSubTypes
-
collectAllSubTypes
protected void collectAllSubTypes(MuddleElementType elementType, Set<MuddleElementType> allSubTypes) -
getAllOfType
-
getElementById
-
getElementId
-
getEnumerationValue
public Object getEnumerationValue(String arg0, String arg1) throws EolEnumerationValueNotFoundException -
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:
o- The model object whose type is to be determined.- Returns:
- the name of the type of the model object, instance.
-
hasType
-
isInstantiable
-
owns
Description copied from interface:IModelUsed to test whether an object is contained in this model.- Parameters:
o- the Java object to test.- Returns:
- true if and only if instance is contained by this model.
-
setElementId
-
store
public boolean store() -
store
-
muddleElementTypeForName
-
setMuddle
-
getMuddle
-
load
- Throws:
EolModelLoadingException
-
isLoaded
public boolean isLoaded()- Since:
- 1.6
-