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, wait
allContents, createInstance, deleteElement, getAllOfKind, getAllOfType, getElementById, getElementId, getEnumerationValue, getTypeNameOf, hasType, isInstantiable, load, owns, setElementId, store, store
public 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 IModel
public void load(StringProperties properties, String basePath) throws EolModelLoadingException
load
in interface IModel
EolModelLoadingException
public void load(StringProperties properties) throws EolModelLoadingException
load
in interface IModel
EolModelLoadingException
public void load(StringProperties properties, IRelativePathResolver resolver) throws EolModelLoadingException
load
in interface IModel
EolModelLoadingException
public Object createInstance(String type, Collection<Object> parameters) throws EolModelElementTypeNotFoundException, EolNotInstantiableModelElementTypeException
createInstance
in interface IModel
EolModelElementTypeNotFoundException
EolNotInstantiableModelElementTypeException
public Collection<?> allInstances()
public boolean isOfKind(Object instance, String metaClass) throws EolModelElementTypeNotFoundException
isOfKind
in interface IModel
EolModelElementTypeNotFoundException
public boolean isOfType(Object instance, String metaClass) throws EolModelElementTypeNotFoundException
isOfType
in interface IModel
EolModelElementTypeNotFoundException
public String getFullyQualifiedTypeNameOf(Object instance)
IModel
getFullyQualifiedTypeNameOf
in interface IModel
instance
- The model object whose type is to be determined.public boolean isModelElement(Object instance)
IModel
isModelElement
in interface IModel
instance
- the Java object to test.public boolean isReadOnLoad()
isReadOnLoad
in interface IModel
public boolean isStoredOnDisposal()
isStoredOnDisposal
in interface IModel
public void setReadOnLoad(boolean readOnLoad)
setReadOnLoad
in interface IModel
public void setStoredOnDisposal(boolean storedOnDisposal)
setStoredOnDisposal
in interface IModel
public IPropertyGetter getPropertyGetter()
getPropertyGetter
in interface IModel
public IPropertySetter getPropertySetter()
getPropertySetter
in interface IModel
public boolean knowsAboutProperty(Object instance, String property)
IModel
true
if this instance could have this property at some point.knowsAboutProperty
in interface IModel
public IModelTransactionSupport getTransactionSupport()
getTransactionSupport
in interface IModel
public Metamodel getMetamodel(StringProperties properties, IRelativePathResolver resolver)
getMetamodel
in interface IModel
public boolean isPropertySet(Object instance, String property) throws EolRuntimeException
IModel
true
if this instance has an explicit value for this property.
This would be equivalent to eIsSet in EMF.isPropertySet
in interface IModel
EolRuntimeException
Copyright © 2016. All rights reserved.