UML.Semantic.Foundation.Core
Class Namespace

java.lang.Object
  |
  +--UML.Semantic.Foundation.Core.ModelElement
        |
        +--UML.Semantic.Foundation.Core.Namespace
All Implemented Interfaces:
Element, ElementAtt, LinkAtt
Direct Known Subclasses:
Collaboration, GeneralizableElement

public abstract class Namespace
extends ModelElement

A namespace is a part of a model in which each name has a unique meaning. 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.


Constructor Summary
Namespace()
          Constructor.
 
Method Summary
 void add(ModelElement elem)
          Adds an element into the Dictionary.
 java.util.Vector allContents()
          Gets a set of identifier of all the elements contained in this namespace and in its contained namespaces and so on.
protected  java.util.Vector allContents(ModelElement elem)
          Gets a set of identifier of all the elements contained in this namespace and in its contained namespaces and so on.
 boolean check()
          Checks if well-formedness rules are respected in this model element.
 void getInfo()
          Gets info on Namespace.
 java.util.Vector getOwnedElement()
          Gets the set of owned elements identifiers.
 java.util.Vector subContents()
          Gets a set of identifier of all the elements contained in the sub-namespaces of this namespace.
 
Methods inherited from class UML.Semantic.Foundation.Core.ModelElement
add, getBindingList, getConstraintList, getElementType, getErrors, getHref, getId, getIdentification, getIdref, getIndex, getIsOwned, getLabel, getLocator, getName, getNamespace, getNamespaceId, getStereotype, getTemplate, getTemplateParameterList, getTitle, getUuid, getUuidref, getVisibility, getVisibilitySymbol, getWarnings, setElementType, setErrors, setHref, setId, setIdref, setIndex, setIsOwned, setLabel, setName, setNamespace, setTemplate, setTitle, setUuid, setUuidref, setVisibility, setWarnings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Namespace

public Namespace()
Constructor.

Method Detail

add

public void add(ModelElement elem)
Adds an element into the Dictionary.

Overrides:
add in class ModelElement
See Also:
Dictionary

getOwnedElement

public java.util.Vector getOwnedElement()
Gets the set of owned elements identifiers.


subContents

public java.util.Vector subContents()
Gets a set of identifier of all the elements contained in the sub-namespaces of this namespace.


allContents

protected java.util.Vector allContents(ModelElement elem)
Gets a set of identifier of all the elements contained in this namespace and in its contained namespaces and so on.


allContents

public java.util.Vector allContents()
Gets a set of identifier of all the elements contained in this namespace and in its contained namespaces and so on.


check

public boolean check()
Checks if well-formedness rules are respected in this model element.

Overrides:
check in class ModelElement
Returns:
True if check was successful, false otherwise.

getInfo

public void getInfo()
Gets info on Namespace.

Overrides:
getInfo in class ModelElement