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 ObjectModelClassgetAssociationClass()ObjectModelClassifiergetClassifier()Returns the classifier referenced by this attribute or null if it does not reference a model classifier.ObjectModelAttributegetReverseAttribute()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.StringgetReverseAttributeName()Return attribute reserver attribute name.intgetReverseMaxMultiplicity()max multiplicity of the reverse attributeStringgetType()Returns the type of this attribute.StringgetVisibility()Returns the visibility of this attribute.booleanhasAssociationClass()booleanisAggregate()Returns whether this attribute is an aggregate or not.booleanisComposite()Returns whether this attribute is a composite or not.booleanisFinal()booleanisNavigable()booleanisStatic()Return if this element has static declaration, only valid when getDeclaringElement is classifier.booleanisTransient()booleanreferenceClassifier()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:
getTypein interfaceObjectModelParameter- Returns:
- the type of this attribute.
-
isAggregate
boolean isAggregate()
Returns whether this attribute is an aggregate or not.- Returns:
trueif this attribute is an aggregate or not.
-
isComposite
boolean isComposite()
Returns whether this attribute is a composite or not.- Returns:
trueif this attribute is a composite or not.
-
getVisibility
String getVisibility()
Returns the visibility of this attribute. Possible values includes public, protected and private.- 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:
trueif this association has an associated association class, ot not.
-
isStatic
boolean isStatic()
Description copied from interface:ObjectModelElementReturn 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:
isStaticin interfaceObjectModelElement- Returns:
trueif this attribute is static or not.
-
isFinal
boolean isFinal()
- Returns:
trueif this attribute is final or not.
-
isTransient
boolean isTransient()
- Returns:
trueif this attribute is transient.
-
isNavigable
boolean isNavigable()
- Returns:
trueif this attribute is navigable.
-
-