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 void
collectAllSubTypes
(MuddleElementType elementType, Set<MuddleElementType> allSubTypes) void
Collection<?>
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.boolean
boolean
isInstantiable
(String type) boolean
isLoaded()
void
load()
protected MuddleElementType
boolean
Used to test whether an object is contained in this model.void
setElementId
(Object o, String id) void
boolean
store()
boolean
Methods 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, setStoredOnDisposal
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:IModel
Returns 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:IModel
Returns 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:IModel
Used 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
-