|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Metamodel for UML model elements.
This is the base interface for all model elements.
Field Summary | |
static java.lang.String |
INTERFACE
The qualified name of this interface. |
Method Summary | |
boolean |
equals(java.lang.Object o)
Two elements are considered equal if their qualified names are equal. |
boolean |
existTaggedValue(java.lang.String tag)
Check weather a tagged value with the given tag name exists. |
AXmodel |
getModel()
Get the model containing this element. |
java.lang.String |
getName()
Get the name for the model element. |
java.lang.String |
getNameForCollectionDefine()
Get the name of the model element in upper case letters and with an additional 'S' at the end. |
java.lang.String |
getNameForCollectionMethod()
Get the name of the model element beginning with an upper case letter and with an additional 's' at the end. |
java.lang.String |
getNameForCollectionVariable()
Get the name of the model element beginning with a lower case letter and with an additional 's' at the end. |
java.lang.String |
getNameForDefine()
Get the name of the model element in upper case letters. |
java.lang.String |
getNameForMethod()
Get the name of the model element beginning with an upper case letter |
java.lang.String |
getNameForVariable()
Get the name of the model element beginning with a lower case letter |
java.lang.String |
getNamespaceName()
Get the namespace name for this model element. |
AXpackage |
getPackage()
Get the package that contains this element. |
java.lang.String |
getQualifiedName()
Get the qualified name of the model element. |
java.lang.Object |
getRealElement()
Get the real element, this element wraps. |
java.lang.String |
getStereotype()
Get the stereotype of this element. |
java.lang.String |
getSufficientlyQualifiedName()
Get the qualified name of this model element if needed. |
java.lang.String |
getSufficientlyQualifiedName(AXmodelElement ref)
Get the qualified name of this model element if needed. |
java.lang.String |
getTaggedValue(java.lang.String tag)
Get a tagged value for a given tag name. |
java.lang.String |
getTaggedValue(java.lang.String tag,
java.lang.String dflt)
Get a tagged value for a given tag name. |
java.util.List |
getTaggedValues(java.lang.String tag)
Get all tagged values for a given tag name. |
java.util.List |
getTaggedValueTags()
Get all existing tag names of tagged values for this element. |
java.lang.String[] |
getWellKnownPackages()
Method used to compare this model elements namespace against namespaces to determine weather elements need to be fully qualified or not. |
boolean |
hasStereotype(java.lang.String stereotype)
Check weather this element has the given stereotype. |
boolean |
isSameNamespace(AXmodelElement me)
Check weahter another model element has the same namespace than this element. |
boolean |
isSameNamespace(java.lang.String namespace)
Check weather this model elements namespace is identical to the specified namespace. |
Field Detail |
public static final java.lang.String INTERFACE
The qualified name of this interface.
Method Detail |
public java.lang.String getName()
Get the name for the model element.
public java.lang.String getNameForMethod()
Get the name of the model element beginning with an upper case letter
public java.lang.String getNameForCollectionMethod()
Get the name of the model element beginning with an upper case letter and with an additional 's' at the end.
public java.lang.String getNameForVariable()
Get the name of the model element beginning with a lower case letter
public java.lang.String getNameForCollectionVariable()
Get the name of the model element beginning with a lower case letter and with an additional 's' at the end.
public java.lang.String getNameForDefine()
Get the name of the model element in upper case letters.
public java.lang.String getNameForCollectionDefine()
Get the name of the model element in upper case letters and with an additional 'S' at the end.
public java.lang.String getQualifiedName()
Get the qualified name of the model element.
The qualified name is the namespace name followed by a dot and the name of the model ellement
public java.lang.String[] getWellKnownPackages()
Method used to compare this model elements namespace against namespaces to determine weather elements need to be fully qualified or not.
This may include the java.lang package or any packages that figure in the import statement of a class.
getSufficientlyQualifiedName()
,
getSufficientlyQualifiedName(AXmodelElement)
public java.lang.String getSufficientlyQualifiedName()
Get the qualified name of this model element if needed.
A model element is supposed to need a fully qualified name if its namespace is not contained in the well known packages.
getWellKnownPackages()
,
getSufficientlyQualifiedName(AXmodelElement)
public java.lang.String getSufficientlyQualifiedName(AXmodelElement ref)
Get the qualified name of this model element if needed.
This is the same as getQualifiedName()
without a parameter except that
this method temporarily adds the namespace of the argument reference element to the well known
packages
ref
- a reference elementgetWellKnownPackages()
,
getSufficientlyQualifiedName()
public java.lang.String getNamespaceName()
Get the namespace name for this model element.
This includes the names of all nested UML namespaces separated by dots (as it is well known for java packages).
public AXpackage getPackage()
Get the package that contains this element.
public java.lang.String getTaggedValue(java.lang.String tag)
Get a tagged value for a given tag name.
If more than one tagged value with the same tag name exist for this model element, the first one is returned
tag
-
public java.lang.String getTaggedValue(java.lang.String tag, java.lang.String dflt)
Get a tagged value for a given tag name.
If no such tagged value exists, the default value is returned.
If more than one tagged value with the same tag name exist for this model element, the first one is returned
tag
- dflt
- a default value that will be returned if no tagged value with
name tag existspublic java.util.List getTaggedValues(java.lang.String tag)
Get all tagged values for a given tag name.
tag
-
public java.util.List getTaggedValueTags()
Get all existing tag names of tagged values for this element.
public boolean existTaggedValue(java.lang.String tag)
Check weather a tagged value with the given tag name exists.
tag
- public boolean isSameNamespace(AXmodelElement me)
Check weahter another model element has the same namespace than this element.
me
- public boolean isSameNamespace(java.lang.String namespace)
Check weather this model elements namespace is identical to the specified namespace.
namespace
- public AXmodel getModel()
Get the model containing this element.
public java.lang.Object getRealElement()
Get the real element, this element wraps.
public boolean equals(java.lang.Object o)
Two elements are considered equal if their qualified names are equal.
o
- public java.lang.String getStereotype()
Get the stereotype of this element.
public boolean hasStereotype(java.lang.String stereotype)
Check weather this element has the given stereotype.
Shortcut for (getStereotype() == null ? stereotype == null : getStereotype().equals(stereotype))
stereotype
- the stereotype to check
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |