|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.nrl.parser.model.AbstractModelElement
net.sourceforge.nrl.parser.model.AbstractClassifier
net.sourceforge.nrl.parser.model.uml2.UML2Classifier
public class UML2Classifier
Extension of a standard model element that holds a reference to a UML2 class.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface net.sourceforge.nrl.parser.model.IModelElement |
---|
IModelElement.ElementType |
Field Summary |
---|
Fields inherited from class net.sourceforge.nrl.parser.model.AbstractClassifier |
---|
nameToAttribute |
Fields inherited from interface net.sourceforge.nrl.parser.model.IModelElement |
---|
OBJECT |
Constructor Summary | |
---|---|
UML2Classifier(org.eclipse.uml2.uml.Classifier umlClassifier,
IPackage container)
Initialise a classifier from a UML2 Classifier |
Method Summary | |
---|---|
List<String> |
getDocumentation()
Produces the documentation from the enclosed comments on the UML classifier. |
IModelElement.ElementType |
getElementType()
Return an enum indicating what type of element this is, to reduce the need to sub-cast prematurely. |
org.eclipse.uml2.uml.Classifier |
getUML2()
Return the UML class wrapped by this class. |
Object |
getUserData(String key)
Return user data stored on this model element. |
protected void |
removeHyperModelArtifacts()
|
protected void |
resolve(Map<org.eclipse.uml2.uml.Classifier,IClassifier> umlClassToModelElement,
List<String> warnings)
Resolve the types of all attributes stored on this class. |
void |
setUMLSuperClass(org.eclipse.uml2.uml.Classifier umlSuperClass)
Set the superclass of this one in the UML model |
Methods inherited from class net.sourceforge.nrl.parser.model.AbstractClassifier |
---|
addAttribute, getAttributeByName, getAttributes, getAttributes, hasAttribute, hasNonStaticAttributes, hasStaticAttributes, isEnumeration, rebuildAttributeNameMap, removeAttribute, removeAttributeNameMapping, setEnumeration |
Methods inherited from class net.sourceforge.nrl.parser.model.AbstractModelElement |
---|
addChild, getContainingPackage, getDescendants, getName, getOriginalName, getParent, getQualifiedName, isAssignableFrom, isSupplementary, setName, setOriginalName, setParent, setSupplementary, setUserData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sourceforge.nrl.parser.model.IModelElement |
---|
getContainingPackage, getDescendants, getName, getOriginalName, getParent, getQualifiedName, isAssignableFrom, isSupplementary, setUserData |
Constructor Detail |
---|
public UML2Classifier(org.eclipse.uml2.uml.Classifier umlClassifier, IPackage container)
umlClassifier
- the classifierMethod Detail |
---|
public List<String> getDocumentation()
public IModelElement.ElementType getElementType()
IModelElement
public org.eclipse.uml2.uml.Classifier getUML2()
public Object getUserData(String key)
IModelElement
getUserData
in interface IModelElement
getUserData
in class AbstractModelElement
key
- the key under which the data is stored
protected void resolve(Map<org.eclipse.uml2.uml.Classifier,IClassifier> umlClassToModelElement, List<String> warnings)
a
- mapping from uml classes to model element instanceswarnings
- the list to append warnings toprotected void removeHyperModelArtifacts()
public void setUMLSuperClass(org.eclipse.uml2.uml.Classifier umlSuperClass)
umlSuperClass
- the super class
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |