uk.ac.ucl.cs.uml.jmi.Foundation.Core
Interface Namespace

All Superinterfaces:
Element, ExtObject, ModelElement, javax.jmi.reflect.RefBaseObject, javax.jmi.reflect.RefFeatured, javax.jmi.reflect.RefObject
All Known Subinterfaces:
Actor, Artifact, AssociationUMLClass, Classifier, ClassifierInState, ClassifierRole, Collaboration, Component, DataType, Enumeration, Model, Node, Primitive, ProgrammingLanguageDataType, Signal, Subsystem, UMLClass, UMLException, UMLInterface, UMLPackage, UseCase
All Known Implementing Classes:
Actor_Impl, Artifact_Impl, AssociationUMLClass_Impl, Class_Impl, Classifier_Impl, ClassifierInState_Impl, ClassifierRole_Impl, Collaboration_Impl, Component_Impl, DataType_Impl, Enumeration_Impl, Exception_Impl, Interface_Impl, Model_Impl, Namespace_Impl, Node_Impl, Package_Impl, Primitive_Impl, ProgrammingLanguageDataType_Impl, Signal_Impl, Subsystem_Impl, UseCase_Impl

public interface Namespace
extends ModelElement

A namespace is a part of a model that contains a set of ModelElements each of whose names designates a unique element within the namespace. In the metamodel, a Namespace is a ModelElement that can own other ModelElements, like Associations and Classifiers. The name of each owned ModelElement must be unique within the Namespace. Moreover, each contained ModelElement is owned by at most one Namespace. The concrete subclasses of Namespace have additional constraints on which kind of elements may be contained. Namespace is an abstract metaclass. Note that explicit parts of a model element, such as the features of a Classifier, are not modeled as owned elements in a namespace. A namespace is used for unstructured contents such as the contents of a package or a class declared inside the scope of another class.


Method Summary
 Set allContents()
          The operation allContents results in a Set containing all ModelElements contained by the Namespace.
 Set getAllSurroundingNamespaces()
          The operation allSurroundingNamespaces results in a Set containing all surrounding Namespaces.
 Set getAllVisibleElements()
          The operation allVisibleElements results in a Set containing all ModelElements visible outside of the Namespace.
 Set getContents()
          The operation contents results in a Set containing all ModelElements contained by the Namespace.
 Collection getOwnedElement()
          (association class ElementOwnership) A set of ModelElements owned by the Namespace.
 
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

getOwnedElement

Collection getOwnedElement()
                           throws javax.jmi.reflect.JmiException
(association class ElementOwnership) A set of ModelElements owned by the Namespace. Its visibility attribute states whether the element is visible outside the namespace.

Throws:
javax.jmi.reflect.JmiException

getContents

Set getContents()
                throws javax.jmi.reflect.JmiException
The operation contents results in a Set containing all ModelElements contained by the Namespace.

Throws:
javax.jmi.reflect.JmiException

getAllVisibleElements

Set getAllVisibleElements()
                          throws javax.jmi.reflect.JmiException
The operation allVisibleElements results in a Set containing all ModelElements visible outside of the Namespace.

Throws:
javax.jmi.reflect.JmiException

getAllSurroundingNamespaces

Set getAllSurroundingNamespaces()
                                throws javax.jmi.reflect.JmiException
The operation allSurroundingNamespaces results in a Set containing all surrounding Namespaces.

Throws:
javax.jmi.reflect.JmiException

allContents

Set allContents()
The operation allContents results in a Set containing all ModelElements contained by the Namespace.