| Modifier and Type | Field and Description |
|---|---|
protected ArrayList<ArrayList<Object>> |
equivalents |
protected Collection<IModel> |
models |
aliases, name, PROPERTY_ALIASES, PROPERTY_NAME, PROPERTY_READONLOAD, PROPERTY_STOREONDISPOSAL, readOnLoad, storeOnDisposal| Constructor and Description |
|---|
CompositeModel(Collection<IModel> models) |
CompositeModel(Collection<IModel> models,
MatchTrace matchTrace) |
CompositeModel(String name,
Collection<IModel> models) |
| Modifier and Type | Method and Description |
|---|---|
Collection<?> |
allContents()
Returns a collection containing all of the objects contained in
this model.
|
Object |
createInstance(String type) |
void |
deleteElement(Object instance) |
void |
dispose() |
protected void |
findEquivalents(MatchTrace matchTrace) |
Collection<Object> |
getAllOfKind(String type) |
Collection<Object> |
getAllOfType(String type) |
Object |
getElementById(String id) |
String |
getElementId(Object instance) |
Object |
getEnumerationValue(String enumeration,
String label) |
Collection<Object> |
getEquivalents(Object instance) |
IPropertyGetter |
getPropertyGetter() |
IPropertySetter |
getPropertySetter() |
String |
getTypeNameOf(Object instance)
Returns a string representing the type of the instance object.
|
Object |
getTypeOf(Object instance) |
boolean |
hasType(String type) |
boolean |
isInstantiable(String type) |
boolean |
isModelElement(Object instance)
Used to test whether a Java object can be contained by this model.
|
void |
load() |
boolean |
owns(Object instance)
Used to test whether an object is contained in this model.
|
protected void |
removeDuplicates(Collection<Object> original) |
void |
removeDuplicates(Collection<Object> original,
Collection<Object> equivalents) |
void |
setElementId(Object instance,
String newId) |
boolean |
store() |
boolean |
store(String location) |
allInstances, createInstance, getAliases, getFullyQualifiedTypeNameOf, getMetamodel, getName, getTransactionSupport, isOfKind, isOfType, isReadOnLoad, isStoredOnDisposal, knowsAboutProperty, load, load, load, setName, setReadOnLoad, setStoredOnDisposalprotected Collection<IModel> models
public CompositeModel(Collection<IModel> models)
public CompositeModel(String name, Collection<IModel> models)
public CompositeModel(Collection<IModel> models, MatchTrace matchTrace)
protected void findEquivalents(MatchTrace matchTrace)
public Collection<Object> getEquivalents(Object instance)
public void removeDuplicates(Collection<Object> original, Collection<Object> equivalents)
protected void removeDuplicates(Collection<Object> original)
public Collection<?> allContents()
IModelpublic Object createInstance(String type) throws EolModelElementTypeNotFoundException, EolNotInstantiableModelElementTypeException
public void deleteElement(Object instance) throws EolRuntimeException
EolRuntimeExceptionpublic Collection<Object> getAllOfKind(String type) throws EolModelElementTypeNotFoundException
public Collection<Object> getAllOfType(String type) throws EolModelElementTypeNotFoundException
public Object getEnumerationValue(String enumeration, String label) throws EolEnumerationValueNotFoundException
public String getTypeNameOf(Object instance)
IModelinstance - The model object whose type is to be determined.public boolean hasType(String type)
public boolean isInstantiable(String type)
public boolean isModelElement(Object instance)
IModelisModelElement in interface IModelisModelElement in class Modelinstance - the Java object to test.public void load()
throws EolModelLoadingException
EolModelLoadingExceptionpublic boolean owns(Object instance)
IModelinstance - the Java object to test.public void dispose()
public boolean store(String location)
public boolean store()
public IPropertyGetter getPropertyGetter()
getPropertyGetter in interface IModelgetPropertyGetter in class Modelpublic IPropertySetter getPropertySetter()
getPropertySetter in interface IModelgetPropertySetter in class ModelCopyright © 2016. All rights reserved.