|
|||||||||||
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()
AXmodelElement
Get the name for the model element.
getName
in interface AXmodelElement
public java.lang.String getNameForMethod()
AXmodelElement
Get the name of the model element beginning with an upper case letter
getNameForMethod
in interface AXmodelElement
public java.lang.String getNameForVariable()
AXmodelElement
Get the name of the model element beginning with a lower case letter
getNameForVariable
in interface AXmodelElement
public java.lang.String getNameForDefine()
AXmodelElement
Get the name of the model element in upper case letters.
getNameForDefine
in interface AXmodelElement
public java.lang.String getQualifiedName()
AXmodelElement
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
getQualifiedName
in interface AXmodelElement
public java.lang.String[] getWellKnownPackages()
AXmodelElement
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.
getWellKnownPackages
in interface AXmodelElement
AXmodelElement.getSufficientlyQualifiedName()
,
AXmodelElement.getSufficientlyQualifiedName(AXmodelElement)
public java.lang.String getSufficientlyQualifiedName()
AXmodelElement
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.
getSufficientlyQualifiedName
in interface AXmodelElement
AXmodelElement.getWellKnownPackages()
,
AXmodelElement.getSufficientlyQualifiedName(AXmodelElement)
public java.lang.String getSufficientlyQualifiedName(AXmodelElement ref)
AXmodelElement
Get 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 AXmodelElement
ref
- a reference elementAXmodelElement.getWellKnownPackages()
,
AXmodelElement.getSufficientlyQualifiedName()
public abstract java.lang.String getNamespaceName()
AXmodelElement
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).
getNamespaceName
in interface AXmodelElement
public AXpackage getPackage()
AXmodelElement
Get the package that contains this element.
getPackage
in interface AXmodelElement
public abstract java.lang.String getTaggedValue(java.lang.String tag)
AXmodelElement
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
getTaggedValue
in interface AXmodelElement
tag
-
public abstract java.lang.String getTaggedValue(java.lang.String tag, java.lang.String dflt)
AXmodelElement
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
getTaggedValue
in interface AXmodelElement
tag
- 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)
AXmodelElement
Get all tagged values for a given tag name.
getTaggedValues
in interface AXmodelElement
tag
-
public abstract java.util.List getTaggedValueTags()
AXmodelElement
Get all existing tag names of tagged values for this element.
getTaggedValueTags
in interface AXmodelElement
public abstract boolean existTaggedValue(java.lang.String tag)
AXmodelElement
Check weather a tagged value with the given tag name exists.
existTaggedValue
in interface AXmodelElement
tag
- public boolean isSameNamespace(AXmodelElement me)
AXmodelElement
Check weahter another model element has the same namespace than this element.
isSameNamespace
in interface AXmodelElement
me
- public boolean isSameNamespace(java.lang.String namespace)
AXmodelElement
Check weather this model elements namespace is identical to the specified namespace.
isSameNamespace
in interface AXmodelElement
namespace
- public abstract AXmodel getModel()
AXmodelElement
Get the model containing this element.
getModel
in interface AXmodelElement
public abstract java.lang.Object getRealElement()
AXmodelElement
Get the real element, this element wraps.
getRealElement
in interface AXmodelElement
public boolean equals(java.lang.Object o)
AXmodelElement
Two elements are considered equal if their qualified names are equal.
equals
in interface AXmodelElement
public java.lang.String toString()
public abstract java.lang.String getStereotype()
AXmodelElement
Get the stereotype of this element.
getStereotype
in interface AXmodelElement
public boolean hasStereotype(java.lang.String stereotype)
AXmodelElement
Check weather this element has the given stereotype.
Shortcut for (getStereotype() == null ? stereotype == null : getStereotype().equals(stereotype))
hasStereotype
in interface AXmodelElement
stereotype
- the stereotype to check
public java.lang.String getNameForCollectionMethod()
AXmodelElement
Get the name of the model element beginning with an upper case letter and with an additional 's' at the end.
getNameForCollectionMethod
in interface AXmodelElement
public java.lang.String getNameForCollectionVariable()
AXmodelElement
Get the name of the model element beginning with a lower case letter and with an additional 's' at the end.
getNameForCollectionVariable
in interface AXmodelElement
public java.lang.String getNameForCollectionDefine()
AXmodelElement
Get 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 |