Package org.nuiton.eugene.models.object
Interface ObjectModelAttribute
-
- All Superinterfaces:
ObjectModelElement
,ObjectModelParameter
,WithTagValuesOrStereotypes
- All Known Implementing Classes:
ObjectModelAttributeImpl
public interface ObjectModelAttribute extends ObjectModelParameter
Abstraction for the attribute node of object model trees. This object presents all information concerning the given attribute. Created: 14 janv. 2004- Author:
- Cédric Pineau - pineau@codelutin.com
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectModelClass
getAssociationClass()
ObjectModelClassifier
getClassifier()
Returns the classifier referenced by this attribute or null if it does not reference a model classifier.ObjectModelAttribute
getReverseAttribute()
Returns the attribute used to reference this class at the other end of the association or null if this is not an association, or if it is not bi-directionnal.String
getReverseAttributeName()
Return attribute reserver attribute name.int
getReverseMaxMultiplicity()
max multiplicity of the reverse attributeString
getType()
Returns the type of this attribute.String
getVisibility()
Returns the visibility of this attribute.boolean
hasAssociationClass()
boolean
isAggregate()
Returns whether this attribute is an aggregate or not.boolean
isComposite()
Returns whether this attribute is a composite or not.boolean
isFinal()
boolean
isNavigable()
boolean
isStatic()
Return if this element has static declaration, only valid when getDeclaringElement is classifier.boolean
isTransient()
boolean
referenceClassifier()
Returns whether this attribute reference a model classifier or not.-
Methods inherited from interface org.nuiton.eugene.models.object.ObjectModelElement
getComments, getDeclaringElement, getDescription, getDocumentation, getName, getSourceDocumentation
-
Methods inherited from interface org.nuiton.eugene.models.object.ObjectModelParameter
getDefaultValue, getMaxMultiplicity, getMinMultiplicity, isOrdered, isUnique
-
Methods inherited from interface org.nuiton.eugene.models.extension.tagvalue.WithTagValuesOrStereotypes
addStereotype, addTagValue, getStereotypes, getTagValue, getTagValues, hasStereotype, hasTagValue, removeStereotype, removeTagValue
-
-
-
-
Method Detail
-
getType
String getType()
Returns the type of this attribute.- Specified by:
getType
in interfaceObjectModelParameter
- Returns:
- the type of this attribute.
-
isAggregate
boolean isAggregate()
Returns whether this attribute is an aggregate or not.- Returns:
true
if this attribute is an aggregate or not.
-
isComposite
boolean isComposite()
Returns whether this attribute is a composite or not.- Returns:
true
if this attribute is a composite or not.
-
getVisibility
String getVisibility()
Returns the visibility of this attribute. Possible values includespublic
,protected
andprivate
.- Returns:
- the visibility of this attribute.
-
referenceClassifier
boolean referenceClassifier()
Returns whether this attribute reference a model classifier or not.- Returns:
- a boolean indicating whether this attribute reference a model classifier or not.
-
getClassifier
ObjectModelClassifier getClassifier()
Returns the classifier referenced by this attribute or null if it does not reference a model classifier.- Returns:
- the ObjectModelClassfifier referenced by this attribute or null if it does not reference a model classifier.
-
getReverseAttribute
ObjectModelAttribute getReverseAttribute()
Returns the attribute used to reference this class at the other end of the association or null if this is not an association, or if it is not bi-directionnal.- Returns:
- the ObjectModelAttribute used to reference this class at the other end of the association or null if this is not an association, or if it is not bi-directionnal.
- See Also:
getClassifier()
-
getReverseAttributeName
String getReverseAttributeName()
Return attribute reserver attribute name.- Returns:
- reverse attribute name or null
-
getReverseMaxMultiplicity
int getReverseMaxMultiplicity()
max multiplicity of the reverse attribute- Returns:
- max multiplicity of the reverse attribute
-
getAssociationClass
ObjectModelClass getAssociationClass()
- Returns:
- a ObjectModelClass corresponding to the association class associated with this association, or null if there is none.
-
hasAssociationClass
boolean hasAssociationClass()
- Returns:
true
if this association has an associated association class, ot not.
-
isStatic
boolean isStatic()
Description copied from interface:ObjectModelElement
Return if this element has static declaration, only valid when getDeclaringElement is classifier. Not possible for the moment to have static innerClass (from XMI 1.2 and 2.1).- Specified by:
isStatic
in interfaceObjectModelElement
- Returns:
true
if this attribute is static or not.
-
isFinal
boolean isFinal()
- Returns:
true
if this attribute is final or not.
-
isTransient
boolean isTransient()
- Returns:
true
if this attribute is transient.
-
isNavigable
boolean isNavigable()
- Returns:
true
if this attribute is navigable.
-
-