public abstract class AbstractModelElement extends Object implements IModelElement
IModelElement.ElementTypeOBJECT| Constructor and Description |
|---|
AbstractModelElement(String name,
IPackage container) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(IModelElement child) |
IPackage |
getContainingPackage()
Return the package containing this model element
|
List<IModelElement> |
getDescendants(boolean transitive)
Return a list of elements that inherit fromm this.
|
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 |
setName(String name) |
void |
setOriginalName(String name) |
void |
setParent(IModelElement parent) |
void |
setSupplementary(boolean supplementary) |
void |
setUserData(String key,
Object data)
Set user data to be stored on this model element.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDocumentation, getElementTypepublic void addChild(IModelElement child)
public IPackage getContainingPackage()
IModelElementgetContainingPackage in interface IModelElementpublic String getName()
IModelElementgetName in interface IModelElementpublic IModelElement getParent()
IModelElementgetParent in interface IModelElementpublic List<IModelElement> getDescendants(boolean transitive)
IModelElementgetDescendants in interface IModelElementtransitive - if true, return children of children recursivelypublic String getOriginalName()
IModelElement
In all other cases, the method returns the same as IModelElement.getName().
getOriginalName in interface IModelElementpublic String getQualifiedName()
IModelElementgetQualifiedName in interface IModelElementpublic Object getUserData(String key)
IModelElementgetUserData in interface IModelElementkey - the key under which the data is storedpublic boolean isAssignableFrom(IModelElement other)
IModelElementisAssignableFrom in interface IModelElementother - the assigned objectpublic boolean isSupplementary()
IModelElementisSupplementary in interface IModelElementpublic void setName(String name)
public void setOriginalName(String name)
public void setParent(IModelElement parent)
public void setSupplementary(boolean supplementary)
public void setUserData(String key, Object data)
IModelElementsetUserData in interface IModelElementkey - the key under which the data is storeddata - the dataCopyright © 2006-2013. All Rights Reserved.