net.sourceforge.nrl.parser.model.uml2
Class UML2Package
java.lang.Object
net.sourceforge.nrl.parser.model.AbstractModelElement
net.sourceforge.nrl.parser.model.AbstractPackage
net.sourceforge.nrl.parser.model.uml2.UML2Package
- All Implemented Interfaces:
- IModelElement, IPackage
public class UML2Package
- extends AbstractPackage
A package implementation that wraps a UML2 Package objects.
- Author:
- Christian Nentwich
|
Method Summary |
List<String> |
getDocumentation()
Return any documentation associated with the UML package. |
org.eclipse.uml2.uml.Package |
getUML2()
Return the UML2 package wrapped by this class. |
Object |
getUserData(String key)
Return user data stored on this model element. |
protected void |
removeHyperModelArtifacts()
Remove group, sequence and choice artifacts from classifiers |
protected void |
resolve(List<String> warnings)
Resolve attribute and generalisation references, then discard the
internal UML 2 model references to save memory. |
| 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 |
UML2Package
public UML2Package(org.eclipse.uml2.uml.Package _package,
IPackage container)
getDocumentation
public List<String> getDocumentation()
- Return any documentation associated with the UML package.
- Returns:
- the documentation as a list of strings, or an empty list
getUML2
public org.eclipse.uml2.uml.Package getUML2()
- Return the UML2 package wrapped by this class.
- Returns:
- the package
getUserData
public Object getUserData(String key)
- Description copied from interface:
IModelElement
- Return user data stored on this model element. This can be used to attach and
retrieve processing information.
- Specified by:
getUserData in interface IModelElement- Overrides:
getUserData in class AbstractModelElement
- Parameters:
key - the key under which the data is stored
- Returns:
- the data or null if not present
resolve
protected void resolve(List<String> warnings)
- Resolve attribute and generalisation references, then discard the
internal UML 2 model references to save memory.
- Parameters:
warnings - the list to append warnings to
removeHyperModelArtifacts
protected void removeHyperModelArtifacts()
- Remove group, sequence and choice artifacts from classifiers
Copyright © 2006-2012. All Rights Reserved.