public abstract class Model extends Object implements IModel
| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
aliases |
protected String |
name |
static String |
PROPERTY_ALIASES |
static String |
PROPERTY_NAME |
static String |
PROPERTY_READONLOAD |
static String |
PROPERTY_STOREONDISPOSAL |
protected boolean |
readOnLoad |
protected boolean |
storeOnDisposal |
| Constructor and Description |
|---|
Model() |
| Modifier and Type | Method and Description |
|---|---|
Collection<?> |
allInstances() |
Object |
createInstance(String type,
Collection<Object> parameters) |
void |
dispose() |
List<String> |
getAliases() |
String |
getFullyQualifiedTypeNameOf(Object instance)
Returns a string representing the fully-qualified type of the instance object.
|
Metamodel |
getMetamodel(StringProperties properties,
IRelativePathResolver resolver) |
String |
getName() |
IPropertyGetter |
getPropertyGetter() |
IPropertySetter |
getPropertySetter() |
IModelTransactionSupport |
getTransactionSupport() |
Object |
getTypeOf(Object instance) |
boolean |
isModelElement(Object instance)
Used to test whether a Java object can be contained by this model.
|
boolean |
isOfKind(Object instance,
String metaClass) |
boolean |
isOfType(Object instance,
String metaClass) |
boolean |
isPropertySet(Object instance,
String property)
Returns
true if this instance has an explicit value for this property. |
boolean |
isReadOnLoad() |
boolean |
isStoredOnDisposal() |
boolean |
knowsAboutProperty(Object instance,
String property)
Returns
true if this instance could have this property at some point. |
void |
load(StringProperties properties) |
void |
load(StringProperties properties,
IRelativePathResolver resolver) |
void |
load(StringProperties properties,
String basePath) |
void |
setName(String name) |
void |
setReadOnLoad(boolean readOnLoad) |
void |
setStoredOnDisposal(boolean storedOnDisposal) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitallContents, createInstance, deleteElement, getAllOfKind, getAllOfType, getElementById, getElementId, getEnumerationValue, getTypeNameOf, hasType, isInstantiable, load, owns, setElementId, store, storepublic static final String PROPERTY_NAME
public static final String PROPERTY_READONLOAD
public static final String PROPERTY_STOREONDISPOSAL
public static final String PROPERTY_ALIASES
protected String name
protected boolean storeOnDisposal
protected boolean readOnLoad
public List<String> getAliases()
getAliases in interface IModelpublic void load(StringProperties properties, String basePath) throws EolModelLoadingException
load in interface IModelEolModelLoadingExceptionpublic void load(StringProperties properties) throws EolModelLoadingException
load in interface IModelEolModelLoadingExceptionpublic void load(StringProperties properties, IRelativePathResolver resolver) throws EolModelLoadingException
load in interface IModelEolModelLoadingExceptionpublic Object createInstance(String type, Collection<Object> parameters) throws EolModelElementTypeNotFoundException, EolNotInstantiableModelElementTypeException
createInstance in interface IModelEolModelElementTypeNotFoundExceptionEolNotInstantiableModelElementTypeExceptionpublic Collection<?> allInstances()
public boolean isOfKind(Object instance, String metaClass) throws EolModelElementTypeNotFoundException
isOfKind in interface IModelEolModelElementTypeNotFoundExceptionpublic boolean isOfType(Object instance, String metaClass) throws EolModelElementTypeNotFoundException
isOfType in interface IModelEolModelElementTypeNotFoundExceptionpublic String getFullyQualifiedTypeNameOf(Object instance)
IModelgetFullyQualifiedTypeNameOf in interface IModelinstance - The model object whose type is to be determined.public boolean isModelElement(Object instance)
IModelisModelElement in interface IModelinstance - the Java object to test.public boolean isReadOnLoad()
isReadOnLoad in interface IModelpublic boolean isStoredOnDisposal()
isStoredOnDisposal in interface IModelpublic void setReadOnLoad(boolean readOnLoad)
setReadOnLoad in interface IModelpublic void setStoredOnDisposal(boolean storedOnDisposal)
setStoredOnDisposal in interface IModelpublic IPropertyGetter getPropertyGetter()
getPropertyGetter in interface IModelpublic IPropertySetter getPropertySetter()
getPropertySetter in interface IModelpublic boolean knowsAboutProperty(Object instance, String property)
IModeltrue if this instance could have this property at some point.knowsAboutProperty in interface IModelpublic IModelTransactionSupport getTransactionSupport()
getTransactionSupport in interface IModelpublic Metamodel getMetamodel(StringProperties properties, IRelativePathResolver resolver)
getMetamodel in interface IModelpublic boolean isPropertySet(Object instance, String property) throws EolRuntimeException
IModeltrue if this instance has an explicit value for this property.
This would be equivalent to eIsSet in EMF.isPropertySet in interface IModelEolRuntimeExceptionCopyright © 2016. All rights reserved.