|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface AttributeFacade
Represents an attribute on a classifier.
Metafacade interface to be used by AndroMDA cartridges.
| Method Summary | |
|---|---|
java.lang.Object |
findTaggedValue(java.lang.String name,
boolean follow)
Searches the given feature for the specified tag. |
java.lang.String |
getDefaultValue()
The default value of the attribute. |
EnumerationFacade |
getEnumeration()
If the attribute is an enumeration literal this represents the owning enumeration. |
java.lang.String |
getEnumerationLiteralParameters()
Returns the enumeration literal parameters defined by tagged value as a comma separated list. |
java.lang.String |
getEnumerationValue()
The value for this attribute if it is an enumeration literal, null otherwise. |
java.lang.String |
getGetterName()
The name of the accessor operation that would retrieve this attribute's value. |
java.lang.String |
getGetterSetterTypeName()
The name of the type that is returned on the accessor and mutator operations, determined in part by the multiplicity. |
int |
getLower()
the lower value for the multiplicity |
ClassifierFacade |
getOwner()
Gets the classifer who is the owner of the attributes. |
java.lang.String |
getSetterName()
The name of the mutator operation that would retrieve this attribute's value. |
ClassifierFacade |
getType()
The classifier owning this attribute. |
int |
getUpper()
the upper value for the multiplicity (will be -1 for *) |
boolean |
isAddOnly()
True if this attribute can only be set. |
boolean |
isAttributeFacadeMetaType()
Indicates the metafacade type (used for metafacade mappings). |
boolean |
isChangeable()
True if this attribute can be modified. |
boolean |
isDefaultValuePresent()
Indicates if the default value is present. |
boolean |
isEnumerationLiteral()
True if this attribute is owned by an enumeration. |
boolean |
isEnumerationLiteralParametersExist()
Returns true if enumeration literal parameters exist (defined by tagged value) for the literal. |
boolean |
isEnumerationMember()
True if this attribute is owned by an enumeration but is defined as a member variable (NOT a literal). |
boolean |
isMany()
Whether or not this attribute has a multiplicity greater than 1. |
boolean |
isOrdered()
Indicates whether or not the attributes are ordered (if multiplicity is greater than 1). |
boolean |
isReadOnly()
Whether or not this attribute can be modified. |
boolean |
isRequired()
Whether or not the multiplicity of this attribute is 1. |
boolean |
isStatic()
Indicates if this attribute is 'static', meaning it has a classifier scope. |
| Method Detail |
|---|
boolean isAttributeFacadeMetaType()
true
java.lang.Object findTaggedValue(java.lang.String name,
boolean follow)
Searches the given feature for the specified tag.
If the follow boolean is set to true then the search will continue from the class attribute to the class itself and then up the class hiearchy.
java.lang.String getDefaultValue()
The default value of the attribute. This is the value given if no value is defined.
EnumerationFacade getEnumeration()
If the attribute is an enumeration literal this represents the owning enumeration. Can be empty.
java.lang.String getEnumerationLiteralParameters()
Returns the enumeration literal parameters defined by tagged value as a comma separated list.
java.lang.String getEnumerationValue()
The value for this attribute if it is an enumeration literal, null otherwise. The default value is returned as a String if it has been specified, if it's not specified this attribute's name is assumed.
java.lang.String getGetterName()
The name of the accessor operation that would retrieve this attribute's value.
java.lang.String getGetterSetterTypeName()
The name of the type that is returned on the accessor and mutator operations, determined in part by the multiplicity.
int getLower()
the lower value for the multiplicity
-only applicable for UML2
ClassifierFacade getOwner()
Gets the classifer who is the owner of the attributes.
java.lang.String getSetterName()
The name of the mutator operation that would retrieve this attribute's value.
ClassifierFacade getType()
The classifier owning this attribute.
int getUpper()
the upper value for the multiplicity (will be -1 for *)
-only applicable for UML2
boolean isAddOnly()
True if this attribute can only be set.
boolean isChangeable()
True if this attribute can be modified.
boolean isDefaultValuePresent()
Indicates if the default value is present.
boolean isEnumerationLiteral()
True if this attribute is owned by an enumeration.
boolean isEnumerationLiteralParametersExist()
Returns true if enumeration literal parameters exist (defined by tagged value) for the literal.
boolean isEnumerationMember()
True if this attribute is owned by an enumeration but is defined as a member variable (NOT a literal).
boolean isMany()
Whether or not this attribute has a multiplicity greater than 1.
boolean isOrdered()
Indicates whether or not the attributes are ordered (if multiplicity is greater than 1).
boolean isReadOnly()
Whether or not this attribute can be modified.
boolean isRequired()
Whether or not the multiplicity of this attribute is 1.
boolean isStatic()
Indicates if this attribute is 'static', meaning it has a classifier scope.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||