net.sourceforge.nrl.parser.model.uml2
Class UML2Classifier

java.lang.Object
  extended by net.sourceforge.nrl.parser.model.AbstractModelElement
      extended by net.sourceforge.nrl.parser.model.AbstractClassifier
          extended by net.sourceforge.nrl.parser.model.uml2.UML2Classifier
All Implemented Interfaces:
IClassifier, IModelElement

public class UML2Classifier
extends AbstractClassifier

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
 
Constructor Summary
UML2Classifier(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.
 Classifier getUML2()
          Return the UML class wrapped by this class.
 void setUMLSuperClass(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, removeAttribute, removeAttributeNameMapping, setEnumeration
 
Methods inherited from class net.sourceforge.nrl.parser.model.AbstractModelElement
addChild, getContainingPackage, getDescendants, getName, getOriginalName, getParent, getQualifiedName, getUserData, isAssignableFrom, isSupplementary, setName, setOriginalName, setParent, setSupplementary, setUserData
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sourceforge.nrl.parser.model.IModelElement
getContainingPackage, getDescendants, getName, getOriginalName, getParent, getQualifiedName, getUserData, isAssignableFrom, isSupplementary, setUserData
 

Constructor Detail

UML2Classifier

public UML2Classifier(Classifier umlClassifier,
                      IPackage container)
Initialise a classifier from a UML2 Classifier

Parameters:
umlClassifier - the classifier
Method Detail

getDocumentation

public List<String> getDocumentation()
Produces the documentation from the enclosed comments on the UML classifier.

Returns:
the documentation as a list of strings, or an empty list

getElementType

public IModelElement.ElementType getElementType()
Description copied from interface: IModelElement
Return an enum indicating what type of element this is, to reduce the need to sub-cast prematurely.

Returns:
the element type

getUML2

public Classifier getUML2()
Return the UML class wrapped by this class.

Returns:
the UML class

setUMLSuperClass

public void setUMLSuperClass(Classifier umlSuperClass)
Set the superclass of this one in the UML model

Parameters:
umlSuperClass - the super class


Copyright © 2006-2010 Christian Nentwich and others