|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IReflectiveModel
Method Summary | |
---|---|
java.lang.Object |
getContainerOf(java.lang.Object object)
Returns the model element that contains the given model element, or null if the given model element is top-level. |
java.lang.String |
getEnumerationLabelOf(java.lang.Object literal)
Returns the enumeration label of the literal parameter. |
java.lang.String |
getEnumerationTypeOf(java.lang.Object literal)
Returns the name of the enumeration type of the literal parameter. |
java.util.Collection<java.lang.String> |
getPropertiesOf(java.lang.String type)
Returns a collection containing all of the properties that instances of type know about. |
IReflectivePropertySetter |
getPropertySetter()
|
boolean |
hasPackage(java.lang.String packageName)
Returns true iff this model contains a package with the given name. |
boolean |
hasProperty(java.lang.String type,
java.lang.String property)
|
boolean |
isEnumerationValue(java.lang.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. |
Methods inherited from interface org.eclipse.epsilon.eol.models.IModel |
---|
allContents, createInstance, createInstance, deleteElement, dispose, getAliases, getAllOfKind, getAllOfType, getElementById, getElementId, getEnumerationValue, getFullyQualifiedTypeNameOf, getName, getPropertyGetter, getTransactionSupport, getTypeNameOf, getTypeOf, hasType, isInstantiable, isModelElement, isOfKind, isOfType, isReadOnLoad, isStoredOnDisposal, knowsAboutProperty, load, load, owns, setElementId, setName, setReadOnLoad, setStoredOnDisposal, store, store |
Method Detail |
---|
boolean preventLoadingOfExternalModelElements()
java.lang.Object getContainerOf(java.lang.Object object)
object
- The model element whose container is to be found.
java.util.Collection<java.lang.String> getPropertiesOf(java.lang.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(java.lang.String type, java.lang.String property) throws EolModelElementTypeNotFoundException
EolModelElementTypeNotFoundException
boolean isEnumerationValue(java.lang.Object object)
java.lang.String getEnumerationTypeOf(java.lang.Object literal) throws EolNotAnEnumerationValueException
EolEnumerationTypeNotFoundException
- when the enumeration type of literal is
not present in this model
EolNotAnEnumerationValueException
- when literal is not an enumeration valuejava.lang.String getEnumerationLabelOf(java.lang.Object literal) throws EolNotAnEnumerationValueException
EolEnumerationTypeNotFoundException
- when the enumeration type of literal is
not present in this model
EolNotAnEnumerationValueException
- when literal is not an enumeration valueboolean hasPackage(java.lang.String packageName)
packageName
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |