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

java.lang.Object
  extended by net.sourceforge.nrl.parser.model.AbstractModelElement
      extended by net.sourceforge.nrl.parser.model.AbstractPackage
          extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface net.sourceforge.nrl.parser.model.IModelElement
IModelElement.ElementType
 
Field Summary
 
Fields inherited from interface net.sourceforge.nrl.parser.model.IModelElement
OBJECT
 
Constructor Summary
UML2Package(org.eclipse.uml2.uml.Package _package, IPackage container)
           
 
Method Summary
protected  Map<org.eclipse.uml2.uml.Classifier,IClassifier> buildTypeMap()
           
 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 resolveTypes(Map<org.eclipse.uml2.uml.Classifier,IClassifier> classifierToUML2Classifier, 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.AbstractPackage
addElement, getContents, getElementByName, getElementType, getNumberOfElements, getSize, isAmbiguous, removeElement
 
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

UML2Package

public UML2Package(org.eclipse.uml2.uml.Package _package,
                   IPackage container)
Method Detail

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

resolveTypes

protected void resolveTypes(Map<org.eclipse.uml2.uml.Classifier,IClassifier> classifierToUML2Classifier,
                            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

buildTypeMap

protected Map<org.eclipse.uml2.uml.Classifier,IClassifier> buildTypeMap()

removeHyperModelArtifacts

protected void removeHyperModelArtifacts()
Remove group, sequence and choice artifacts from classifiers



Copyright © 2006-2013. All Rights Reserved.