public interface IReflectiveModel extends IModel
Modifier and Type | Method and Description |
---|---|
Object |
getContainerOf(Object object)
Returns the model element that contains the given model element, or
null if the given model element is top-level.
|
String |
getEnumerationLabelOf(Object literal)
Returns the enumeration label of the literal parameter.
|
String |
getEnumerationTypeOf(Object literal)
Returns the name of the enumeration type of the literal parameter.
|
Collection<String> |
getPropertiesOf(String type)
Returns a collection containing all of the properties that instances
of type know about.
|
IReflectivePropertySetter |
getPropertySetter() |
boolean |
hasPackage(String packageName)
Returns true iff this model contains a package with the given name.
|
boolean |
hasProperty(String type,
String property) |
boolean |
isEnumerationValue(Object object)
Returns true iff object is an enumeration value.
|
boolean |
preventLoadingOfExternalModelElements()
Prevents the loading of model elements that are referenced by
this model but are not contained in this model.
|
allContents, close, createInstance, createInstance, deleteElement, dispose, getAliases, getAllOfKind, getAllOfType, getElementById, getElementId, getEnumerationValue, getFullyQualifiedTypeNameOf, getMetamodel, getName, getPropertyGetter, getTransactionSupport, getTypeNameOf, getTypeOf, hasType, isInstantiable, isModelElement, isOfKind, isOfType, isPropertySet, isReadOnLoad, isStoredOnDisposal, knowsAboutProperty, load, load, load, load, owns, setElementId, setName, setReadOnLoad, setStoredOnDisposal, store, store
boolean preventLoadingOfExternalModelElements()
Object getContainerOf(Object object)
object
- The model element whose container is to be found.Collection<String> getPropertiesOf(String type) throws EolModelElementTypeNotFoundException
type
- The type of model object whose properties are to be determined.EolModelElementTypeNotFoundException
- when this model has no such typeIReflectivePropertySetter getPropertySetter()
getPropertySetter
in interface IModel
boolean hasProperty(String type, String property) throws EolModelElementTypeNotFoundException
boolean isEnumerationValue(Object object)
String getEnumerationTypeOf(Object literal) throws EolNotAnEnumerationValueException
EolEnumerationTypeNotFoundException
- when the enumeration type of literal is
not present in this modelEolNotAnEnumerationValueException
- when literal is not an enumeration valueString getEnumerationLabelOf(Object literal) throws EolNotAnEnumerationValueException
EolEnumerationTypeNotFoundException
- when the enumeration type of literal is
not present in this modelEolNotAnEnumerationValueException
- when literal is not an enumeration valueboolean hasPackage(String packageName)
packageName
- Copyright © 2020. All rights reserved.