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