public interface IAttribute
| Modifier and Type | Field and Description |
|---|---|
static int |
UNBOUNDED
Constant for unbounded upper and lower occurrence
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
static final int UNBOUNDED
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 storedIModelElement getType()
boolean isRepeating()
boolean isStatic()
void setName(String name)
name - the new nameCopyright © 2006-2013. All Rights Reserved.