public class UML2Attribute extends AbstractAttribute
UNBOUNDED| Constructor and Description |
|---|
UML2Attribute(org.eclipse.uml2.uml.NamedElement namedElement)
Initialise the attribute using a UML2 named element object.
|
UML2Attribute(org.eclipse.uml2.uml.NamedElement namedElement,
int minOccurs,
int maxOccurs) |
UML2Attribute(org.eclipse.uml2.uml.NamedElement namedElement,
String nameOverride) |
UML2Attribute(org.eclipse.uml2.uml.NamedElement namedElement,
String nameOverride,
int minOccurs,
int maxOccurs) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getDocumentation()
Extract the documentation from the UML 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).
|
org.eclipse.uml2.uml.Type |
getUMLType() |
Object |
getUserData(String key)
Return user data stored on this attribute.
|
boolean |
isStatic()
Returns true if the attribute is static, or if it is an enum value.
|
protected void |
resolve(Map<org.eclipse.uml2.uml.Classifier,IClassifier> umlClassToModelElement)
Resolve the types of the attribute
|
getName, getOriginalName, getOwner, getType, isRepeating, setName, setOriginalName, setOwner, setType, setUserDatapublic UML2Attribute(org.eclipse.uml2.uml.NamedElement namedElement)
resolve(Map) is called.namedElement - the elementpublic UML2Attribute(org.eclipse.uml2.uml.NamedElement namedElement,
String nameOverride)
public UML2Attribute(org.eclipse.uml2.uml.NamedElement namedElement,
int minOccurs,
int maxOccurs)
public UML2Attribute(org.eclipse.uml2.uml.NamedElement namedElement,
String nameOverride,
int minOccurs,
int maxOccurs)
public List<String> getDocumentation()
public int getMinOccurs()
IAttributepublic int getMaxOccurs()
IAttributepublic boolean isStatic()
IAttributepublic org.eclipse.uml2.uml.Type getUMLType()
public Object getUserData(String key)
IAttributegetUserData in interface IAttributegetUserData in class AbstractAttributekey - the key under which the data is storedprotected void resolve(Map<org.eclipse.uml2.uml.Classifier,IClassifier> umlClassToModelElement)
Copyright © 2006-2013. All Rights Reserved.