uk.ac.ucl.cs.uml.jmi.ModelManagement
Interface UMLPackage

All Superinterfaces:
Element, ExtObject, GeneralizableElement, ModelElement, Namespace, javax.jmi.reflect.RefBaseObject, javax.jmi.reflect.RefFeatured, javax.jmi.reflect.RefObject
All Known Subinterfaces:
Model, Subsystem
All Known Implementing Classes:
Model_Impl, Package_Impl, Subsystem_Impl

public interface UMLPackage
extends Namespace, GeneralizableElement

A package is a grouping of model elements. In the metamodel, Package is a subclass of Namespace and GeneralizableElement. A Package contains ModelElements like Packages, Classifiers, and Associations. A Package may also contain Constraints and Dependencies between ModelElements of the Package. Each ModelElement of a Package has a visibility relative to the Package stating if the ModelElement is available to ModelElements in other Packages with a Permission («access» or «import») or Generalization relationship to the Package. An «access» or «import» Permission from one Package to another allows public ModelElements in the target Package to be referenced by ModelElements in the source Package. They differ in that all public ModelElements in imported Packages are added to the Namespace within the importing Package, whereas the Namespace within an accessing Package is not affected at all. The ModelElements available in a Package are those in the contents of the Namespace within the Package, which consists of owned and imported ModelElements, together with public ModelElements in accessed Packages.


Method Summary
 Set allContents()
          The operation allContents results in a Set containing the ModelElements owned by or imported by the Package or one of its ancestors.
 Set allImportedElements()
          The operation allImportedElements results in a Set containing the ModelElements imported by the Package or one of its parents.
 Set contents()
          The operation contents results in a Set containing the ModelElements owned by or imported by the Package.
 Collection getImportedElement()
          The namespace defined by a package is extended by model elements in other, imported packages.
 
Methods inherited from interface uk.ac.ucl.cs.uml.jmi.Foundation.Core.Namespace
getAllSurroundingNamespaces, getAllVisibleElements, getContents, getOwnedElement
 
Methods inherited from interface uk.ac.ucl.cs.uml.jmi.Foundation.Core.ModelElement
getAsArgument, getBehavior, getClientDependency, getComment, getConstraint, getContainer, getDefaultElement, getIsSpecification, getName, getNamespace, getPackage, getPresentation, getReferenceTag, getSourceFlow, getStereotype, getSupplierDependency, getTaggedValue, getTargetFlow, getTemplate, getTemplateArgument, getTemplateParameter, getVisibility, setDefaultElement, setIsSpecification, setName, setNamespace, setTemplate, setVisibility
 
Methods inherited from interface uk.ac.ucl.cs.emofocl.jmi.reflect.extended.ExtObject
extAddObjectListener, extDeepCopy, extDeepCopy, extEquals, extRemoveObjectListener, extValueHash, extVisit
 
Methods inherited from interface javax.jmi.reflect.RefObject
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite
 
Methods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refGetValue, refInvokeOperation, refInvokeOperation, refSetValue, refSetValue
 
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
 
Methods inherited from interface uk.ac.ucl.cs.uml.jmi.Foundation.Core.GeneralizableElement
getGeneralization, getIsAbstract, getIsLeaf, getIsRoot, getSpecialization, setIsAbstract, setIsLeaf, setIsRoot
 
Methods inherited from interface uk.ac.ucl.cs.uml.jmi.Foundation.Core.ModelElement
getAsArgument, getBehavior, getClientDependency, getComment, getConstraint, getContainer, getDefaultElement, getIsSpecification, getName, getNamespace, getPackage, getPresentation, getReferenceTag, getSourceFlow, getStereotype, getSupplierDependency, getTaggedValue, getTargetFlow, getTemplate, getTemplateArgument, getTemplateParameter, getVisibility, setDefaultElement, setIsSpecification, setName, setNamespace, setTemplate, setVisibility
 
Methods inherited from interface uk.ac.ucl.cs.emofocl.jmi.reflect.extended.ExtObject
extAddObjectListener, extDeepCopy, extDeepCopy, extEquals, extRemoveObjectListener, extValueHash, extVisit
 
Methods inherited from interface javax.jmi.reflect.RefObject
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite
 
Methods inherited from interface javax.jmi.reflect.RefFeatured
refGetValue, refGetValue, refInvokeOperation, refInvokeOperation, refSetValue, refSetValue
 
Methods inherited from interface javax.jmi.reflect.RefBaseObject
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
 

Method Detail

getImportedElement

Collection getImportedElement()
                              throws javax.jmi.reflect.JmiException
The namespace defined by a package is extended by model elements in other, imported packages.

Throws:
javax.jmi.reflect.JmiException

contents

Set contents()
The operation contents results in a Set containing the ModelElements owned by or imported by the Package.


allImportedElements

Set allImportedElements()
The operation allImportedElements results in a Set containing the ModelElements imported by the Package or one of its parents.


allContents

Set allContents()
The operation allContents results in a Set containing the ModelElements owned by or imported by the Package or one of its ancestors.

Specified by:
allContents in interface Namespace