|
www.sdmetrics.com | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--sdmetrics.model.ModelElement
Represent a model element in a UML design. An instance of this class stores the following information for a model element:
| Field Summary | |
static java.lang.String |
QualifierSep
Seperator string used to build fully qualified element names. |
| Constructor Summary | |
ModelElement(sdmetrics.model.MetaModelElement type)
|
|
| Method Summary | |
java.lang.String |
getFullName()
Return the fully qualified name of this model element. |
boolean |
getLinksIgnored()
Test if cross-references to this element should be ignored according to the filter settings. |
java.lang.String |
getName()
Get the name of this model element. |
java.util.Collection |
getOwnedElements()
Get the model elements owned by this element. |
ModelElement |
getOwner()
Get the owner of this model element. |
ModelElement |
getRefAttribute(int num)
Retrieve the model element referenced by a cross-reference attribute. |
java.util.HashSet |
getRelations(java.lang.String relname)
Return the set of model elements that have a certain cross-reference attribute pointing to this model element. |
int |
getRunningID()
Return the running ID of the model element. |
java.util.Collection |
getSetAttribute(int num)
Retrieve the set stored by a multi-valued attribute. |
int |
getType()
Return the ID of the metamodel element of which this element is an instance. |
java.lang.String |
getXMIID()
Get the XMI ID of this model element. |
java.lang.String |
getXMLAttribute(int num)
Retrieve the value of an attribute for this model element. |
java.lang.String |
getXMLAttribute(java.lang.String name)
Retrieve the value of an attribute for this model element. |
java.lang.String |
toString()
Return the XMI ID of the model element as its string representation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String QualifierSep
| Constructor Detail |
public ModelElement(sdmetrics.model.MetaModelElement type)
type - The metamodel element type of which this element is an instance.| Method Detail |
public java.util.HashSet getRelations(java.lang.String relname)
relname - Name of the cross-reference attribute.
public java.lang.String getXMLAttribute(int num)
num - Index of the attribute.
public java.lang.String getXMLAttribute(java.lang.String name)
name - Name of the attribute.
public ModelElement getRefAttribute(int num)
num - Index of the cross-reference attribute.
null if no model element is referenced or the reference
should be ignored as per filter settings; else the model element is returned.public java.util.Collection getSetAttribute(int num)
num - Index of the multi-valued attribute.
public boolean getLinksIgnored()
true if the cross-references to this element
should be ignored, else false.public int getType()
public int getRunningID()
public java.lang.String getFullName()
public ModelElement getOwner()
null for root model elements.public java.util.Collection getOwnedElements()
public java.lang.String getXMIID()
public java.lang.String getName()
public java.lang.String toString()
toString in class java.lang.Object
|
www.sdmetrics.com | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||