|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IModelElement
A model element has a name and an optional parent element through inheritance.
Nested Class Summary | |
---|---|
static class |
IModelElement.ElementType
A short summary of what sort of model element this is. |
Method Summary | |
---|---|
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. |
Method Detail |
---|
IPackage getContainingPackage()
List<String> getDocumentation()
IModelElement.ElementType getElementType()
String getName()
IModelElement getParent()
List<IModelElement> getDescendants(boolean transitive)
transitive
- if true, return children of children recursively
String 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 stored
boolean isAssignableFrom(IModelElement other)
other
- the assigned object
boolean isSupplementary()
void setUserData(String key, Object data)
key
- the key under which the data is storeddata
- the data
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |