|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.nrl.parser.model.AbstractAttribute
net.sourceforge.nrl.parser.model.uml2.UML2Attribute
public class UML2Attribute
Extension of a standard attribute that holds a UML2 typed element reference.
| Field Summary |
|---|
| Fields inherited from interface net.sourceforge.nrl.parser.model.IAttribute |
|---|
UNBOUNDED |
| Constructor Summary | |
|---|---|
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)
|
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class net.sourceforge.nrl.parser.model.AbstractAttribute |
|---|
getName, getOriginalName, getOwner, getType, isRepeating, setName, setOriginalName, setOwner, setType, setUserData |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UML2Attribute(org.eclipse.uml2.uml.NamedElement namedElement)
resolve(Map) is called.
namedElement - the element
public 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)
| Method Detail |
|---|
public List<String> getDocumentation()
public int getMinOccurs()
IAttribute
public int getMaxOccurs()
IAttribute
public boolean isStatic()
IAttribute
public org.eclipse.uml2.uml.Type getUMLType()
public Object getUserData(String key)
IAttribute
getUserData in interface IAttributegetUserData in class AbstractAttributekey - the key under which the data is stored
protected void resolve(Map<org.eclipse.uml2.uml.Classifier,IClassifier> umlClassToModelElement)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||