public interface IModelElement
| Modifier and Type | Interface and Description |
|---|---|
static class |
IModelElement.ElementType
A short summary of what sort of model element this is.
|
| Modifier and Type | Field and Description |
|---|---|
static IModelElement |
OBJECT
The parent of all NRL model elements.
|
| Modifier and Type | Method and Description |
|---|---|
IPackage |
getContainingPackage()
Return the package containing this model element
|
List<IModelElement> |
getDescendants(boolean transitive)
Return a list of elements that inherit fromm this.
|
List<String> |
getDocumentation()
Return any documentation associated with the element.
|
IModelElement.ElementType |
getElementType()
Return an enum indicating what type of element this is, to reduce the need to
sub-cast prematurely.
|
String |
getName()
Return the model element's name.
|
String |
getOriginalName()
Some elements have to be renamed on loading.
|
IModelElement |
getParent()
Return the parent, if there is an inheritance relationship, or null if none.
|
String |
getQualifiedName()
Return a fully qualified name for this element, listing all the package it is
contained in.
|
Object |
getUserData(String key)
Return user data stored on this model element.
|
boolean |
isAssignableFrom(IModelElement other)
Return true if the model element can be assigned the value of another in an
expression.
|
boolean |
isSupplementary()
Returns a flag indicating whether the element is a supplementary element loaded
from a type library or dependent model.
|
void |
setUserData(String key,
Object data)
Set user data to be stored on this model element.
|
static final IModelElement OBJECT
IPackage getContainingPackage()
List<String> getDocumentation()
IModelElement.ElementType getElementType()
String getName()
IModelElement getParent()
List<IModelElement> getDescendants(boolean transitive)
transitive - if true, return children of children recursivelyString getOriginalName()
In all other cases, the method returns the same as getName().
String getQualifiedName()
Object getUserData(String key)
key - the key under which the data is storedboolean isAssignableFrom(IModelElement other)
other - the assigned objectboolean isSupplementary()
Copyright © 2006-2013. All Rights Reserved.