|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IAttribute
An attribute has a name, a type and a multiplicity. The type is a model element.
| Field Summary | |
|---|---|
static int |
UNBOUNDED
Constant for unbounded upper and lower occurrence |
| Method Summary | |
|---|---|
List<String> |
getDocumentation()
Return any documentation associated with the attribute. |
int |
getMaxOccurs()
Return the maximum number of occurrences of the attribute (0 or more). |
int |
getMinOccurs()
Return the minimum number of occurrences of the attribute (0 or more). |
String |
getName()
Return the attribute's name. |
String |
getOriginalName()
Some attributes have to be renamed on loading. |
IClassifier |
getOwner()
Return the classifier that owns the attribute. |
IModelElement |
getType()
Return the type. |
Object |
getUserData(String key)
Return user data stored on this attribute. |
boolean |
isRepeating()
Returns true if the attribute can occur more than once, i.e. |
boolean |
isStatic()
Returns true if the attribute is static, or if it is an enum value. |
void |
setName(String name)
Set the attribute name |
void |
setUserData(String key,
Object data)
Set user data to be stored on this attribute. |
| Field Detail |
|---|
static final int UNBOUNDED
| Method Detail |
|---|
List<String> getDocumentation()
String getName()
int getMinOccurs()
int getMaxOccurs()
String getOriginalName()
In all other cases, the method returns the same as getName().
IClassifier getOwner()
Object getUserData(String key)
key - the key under which the data is stored
IModelElement getType()
boolean isRepeating()
boolean isStatic()
void setName(String name)
name - the new name
void setUserData(String key,
Object data)
key - the key under which the data is storeddata - the data
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||