net.sourceforge.nrl.parser.model.uml2
Class UML2DataType
java.lang.Object
net.sourceforge.nrl.parser.model.AbstractModelElement
net.sourceforge.nrl.parser.model.AbstractClassifier
net.sourceforge.nrl.parser.model.uml2.UML2DataType
- All Implemented Interfaces:
- IClassifier, IDataType, IModelElement
public class UML2DataType
- extends AbstractClassifier
- implements IDataType
A data type that wraps a UML2 DataType object.
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 |
UML2DataType
public UML2DataType(DataType dataType,
IPackage container)
getDocumentation
public List<String> getDocumentation()
- Produces the documentation from the enclosed comments on the UML data
type.
- Specified by:
getDocumentation
in interface IModelElement
- 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.
- Specified by:
getElementType
in interface IModelElement
- Returns:
- the element type
getUML2
public DataType getUML2()
getUmlSuperClassifier
public Classifier getUmlSuperClassifier()
isBuiltIn
public boolean isBuiltIn()
- Description copied from interface:
IDataType
- Return true if this is a built-in NRL type
- Specified by:
isBuiltIn
in interface IDataType
- Returns:
- true if built-in
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