|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.armax.ax.devtools.uml.AXmodelElementAbstract
Abstract base class of all model elements.
Provides general implementation of the AXmodelElement
interface part that is independant of the wrapped model.
| Field Summary |
| Fields inherited from interface de.armax.ax.devtools.uml.AXmodelElement |
INTERFACE |
| Constructor Summary | |
AXmodelElementAbstract()
|
|
| Method Summary | |
boolean |
equals(java.lang.Object o)
Two elements are considered equal if their qualified names are equal. |
abstract boolean |
existTaggedValue(java.lang.String tag)
Check weather a tagged value with the given tag name exists. |
abstract AXmodel |
getModel()
Get the model containing this element. |
abstract 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 |
abstract 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. |
abstract java.lang.Object |
getRealElement()
Get the real element, this element wraps. |
abstract 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. |
abstract java.lang.String |
getTaggedValue(java.lang.String tag)
Get a tagged value for a given tag name. |
abstract java.lang.String |
getTaggedValue(java.lang.String tag,
java.lang.String dflt)
Get a tagged value for a given tag name. |
abstract java.util.List |
getTaggedValues(java.lang.String tag)
Get all tagged values for a given tag name. |
abstract 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. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AXmodelElementAbstract()
| Method Detail |
public abstract java.lang.String getName()
AXmodelElementGet the name for the model element.
getName in interface AXmodelElementpublic java.lang.String getNameForMethod()
AXmodelElementGet the name of the model element beginning with an upper case letter
getNameForMethod in interface AXmodelElementpublic java.lang.String getNameForVariable()
AXmodelElementGet the name of the model element beginning with a lower case letter
getNameForVariable in interface AXmodelElementpublic java.lang.String getNameForDefine()
AXmodelElementGet the name of the model element in upper case letters.
getNameForDefine in interface AXmodelElementpublic java.lang.String getQualifiedName()
AXmodelElementGet 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
getQualifiedName in interface AXmodelElementpublic java.lang.String[] getWellKnownPackages()
AXmodelElementMethod 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.
getWellKnownPackages in interface AXmodelElementAXmodelElement.getSufficientlyQualifiedName(),
AXmodelElement.getSufficientlyQualifiedName(AXmodelElement)public java.lang.String getSufficientlyQualifiedName()
AXmodelElementGet 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.
getSufficientlyQualifiedName in interface AXmodelElementAXmodelElement.getWellKnownPackages(),
AXmodelElement.getSufficientlyQualifiedName(AXmodelElement)public java.lang.String getSufficientlyQualifiedName(AXmodelElement ref)
AXmodelElementGet the qualified name of this model element if needed.
This is the same as AXmodelElement.getQualifiedName() without a parameter except that
this method temporarily adds the namespace of the argument reference element to the well known
packages
getSufficientlyQualifiedName in interface AXmodelElementref - a reference elementAXmodelElement.getWellKnownPackages(),
AXmodelElement.getSufficientlyQualifiedName()public abstract java.lang.String getNamespaceName()
AXmodelElementGet 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).
getNamespaceName in interface AXmodelElementpublic AXpackage getPackage()
AXmodelElementGet the package that contains this element.
getPackage in interface AXmodelElementpublic abstract java.lang.String getTaggedValue(java.lang.String tag)
AXmodelElementGet 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
getTaggedValue in interface AXmodelElementtag -
public abstract java.lang.String getTaggedValue(java.lang.String tag,
java.lang.String dflt)
AXmodelElementGet 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
getTaggedValue in interface AXmodelElementtag - dflt - a default value that will be returned if no tagged value with
name tag existspublic abstract java.util.List getTaggedValues(java.lang.String tag)
AXmodelElementGet all tagged values for a given tag name.
getTaggedValues in interface AXmodelElementtag -
public abstract java.util.List getTaggedValueTags()
AXmodelElementGet all existing tag names of tagged values for this element.
getTaggedValueTags in interface AXmodelElementpublic abstract boolean existTaggedValue(java.lang.String tag)
AXmodelElementCheck weather a tagged value with the given tag name exists.
existTaggedValue in interface AXmodelElementtag - public boolean isSameNamespace(AXmodelElement me)
AXmodelElementCheck weahter another model element has the same namespace than this element.
isSameNamespace in interface AXmodelElementme - public boolean isSameNamespace(java.lang.String namespace)
AXmodelElementCheck weather this model elements namespace is identical to the specified namespace.
isSameNamespace in interface AXmodelElementnamespace - public abstract AXmodel getModel()
AXmodelElementGet the model containing this element.
getModel in interface AXmodelElementpublic abstract java.lang.Object getRealElement()
AXmodelElementGet the real element, this element wraps.
getRealElement in interface AXmodelElementpublic boolean equals(java.lang.Object o)
AXmodelElementTwo elements are considered equal if their qualified names are equal.
equals in interface AXmodelElementpublic java.lang.String toString()
public abstract java.lang.String getStereotype()
AXmodelElementGet the stereotype of this element.
getStereotype in interface AXmodelElementpublic boolean hasStereotype(java.lang.String stereotype)
AXmodelElementCheck weather this element has the given stereotype.
Shortcut for (getStereotype() == null ? stereotype == null : getStereotype().equals(stereotype))
hasStereotype in interface AXmodelElementstereotype - the stereotype to check
public java.lang.String getNameForCollectionMethod()
AXmodelElementGet the name of the model element beginning with an upper case letter and with an additional 's' at the end.
getNameForCollectionMethod in interface AXmodelElementpublic java.lang.String getNameForCollectionVariable()
AXmodelElementGet the name of the model element beginning with a lower case letter and with an additional 's' at the end.
getNameForCollectionVariable in interface AXmodelElementpublic java.lang.String getNameForCollectionDefine()
AXmodelElementGet the name of the model element in upper case letters and with an additional 'S' at the end.
getNameForCollectionDefine in interface AXmodelElement
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||