|
||||||||||
| 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. |
|
| Method Summary | |
|---|---|
protected String |
cleanUpName(String name)
Given the attribute name, clean it up by removing illegal characters like dots. |
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.NamedElement |
getUML2()
Return the UML2 Property this attribute was created from. |
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,IModelElement> 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| Method Detail |
|---|
protected String cleanUpName(String name)
name - the name
public List<String> getDocumentation()
public int getMinOccurs()
IAttribute
public int getMaxOccurs()
IAttribute
public boolean isStatic()
IAttribute
public org.eclipse.uml2.uml.NamedElement getUML2()
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,IModelElement> umlClassToModelElement)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||