| model1 UML Documentation |
| Summary:OperationsPropertiesComments | Detail:Operations |
The Namespace Class classifies and characterizes Elements that can contain other Elements. Along with containing the Elements, a Namespace defines a namespace, the allowable set of names and the naming constraints, for these elements.
Subclasses of the Namespace Class have mechanisms for effectively extending their namespace, without actually containing additional Elements. Thus Namespace can be viewed in terms of its two roles, as a container and as a namespace mechanism. Because only subclasses extend the namespace, the namespace and contents are coincident in the definition of the Namespace Class. Each Namespace has four collections (the latter three derivable) that are used in the MOF Models Constraints. These collections are:
| Operations | ||
| Class NamespaceFindElementsByTypeResult |
Returns all the Elements identified by the contents reference defined for this Namespace that are of the Class supplied. The returned list of Elements is a subset of the Elements contained by this Namespace. This operation can either return only those Elements that exactly match the specified class or those Elements that are instances of the specified class and one or more of its subclasses. Because Element is an abstract class, invoking this operation with the ofType argument specified as Element and the includeSubtypes argument set to false returns an empty list. Because Element is the base type for all instances that can be contained by a Namespace, invoking the operation with the ofType argument specified as Element, and includeSubtypes set to true, returns all the contained elements of the Namespace.Returns all the ModelElements identified by the contents reference defined for thisNamespace that are of the Class supplied. The returned list of ModelElements is a subset ofthe ModelElements contained by this Namespace. This operation can either return onlythose ModelElements that exactly match the specified class or those ModelElements thatare instances of the specified class and one or more of its subclasses.Because ModelElement is an abstract class, invoking this operation with the ofTypeargument specified as ModelElement and the includeSubtypes argument set to false returnsan empty list. Because ModelElement is the base type for all instances which can becontained by a Namespace, Invoking the operation with the ofType argument specified asModelElement, and includeSubtypes set to true, returns all the contained elements of theNamespace. |
|
| Class NamespaceLookupElementResult |
Searches for an element contained by this Namespace whose name is precisely equal (as a string) to the supplied name. The operation either returns an Element that satisfies the above, or raises ServiceException (NameNotFound). |
|
| Class NamespaceResolveQualifiedNameResult |
Searches for an Element contained within this Namespace that is identified by the supplied qualifiedName. The qualifiedName is interpreted as a 'path' starting from this Namespace. |
|
Properties:
| Alias | |
| Classifier Behavior | |
| Collections | |
| Is Abstract | true |
| Is Active | false |
| Is Leaf | false |
| Keywords | |
| Name | Namespace |
| Name Expression | |
| Owned Template Signature | |
| Owner | Package model1 |
| Owning Parameter | |
| Package | Package model1 |
| Packageable Element visibility | public |
| Qualified Name | model1::model1::Namespace |
| Representation | |
| Stereotype | |
| Template Parameter | |
| Visibility | public |
| Operation Details |
public Class NamespaceFindElementsByTypeResult findElementsByType( Primitive Type boolean, Primitive Type string )
Returns all the Elements identified by the contents reference defined for this Namespace that are of the Class supplied. The returned list of Elements is a subset of the Elements contained by this Namespace. This operation can either return only those Elements that exactly match the specified class or those Elements that are instances of the specified class and one or more of its subclasses.
Because Element is an abstract class, invoking this operation with the ofType argument specified as Element and the includeSubtypes argument set to false returns an empty list. Because Element is the base type for all instances that can be contained by a Namespace, invoking the operation with the ofType argument specified as Element, and includeSubtypes set to true, returns all the contained elements of the Namespace.Returns all the ModelElements identified by the contents reference defined for thisNamespace that are of the Class supplied. The returned list of ModelElements is a subset ofthe ModelElements contained by this Namespace. This operation can either return onlythose ModelElements that exactly match the specified class or those ModelElements thatare instances of the specified class and one or more of its subclasses.Because ModelElement is an abstract class, invoking this operation with the ofTypeargument specified as ModelElement and the includeSubtypes argument set to false returnsan empty list. Because ModelElement is the base type for all instances which can becontained by a Namespace, Invoking the operation with the ofType argument specified asModelElement, and includeSubtypes set to true, returns all the contained elements of theNamespace.
| Alias | |
| Body Condition | |
| Class | Class Namespace |
| Collections | |
| Concurrency | sequential |
| Datatype | |
| Is Abstract | false |
| Is Leaf | false |
| Is Ordered | false |
| isQuery | true |
| Is Query | true |
| Is Static | false |
| Is Unique | true |
| Keywords | |
| Lower | 1 |
| Lower Value | |
| Multiplicity | 1 |
| Name | findElementsByType |
| Name Expression | |
| Owned Template Signature | |
| Owner | Class Namespace |
| Owning Parameter | |
| Qualified Name | model1::model1::Namespace::findElementsByType |
| Stereotype | default |
| Template Parameter | |
| Type | Class NamespaceFindElementsByTypeResult |
| Upper | 1 |
| Upper Value | |
| Visibility | public |
public Class NamespaceLookupElementResult lookupElement( Primitive Type string )
Searches for an element contained by this Namespace whose name is precisely equal (as a string) to the supplied name. The operation either returns an Element that satisfies the above, or raises ServiceException (NameNotFound).
| Alias | |
| Body Condition | |
| Class | Class Namespace |
| Collections | |
| Concurrency | sequential |
| Datatype | |
| Is Abstract | false |
| Is Leaf | false |
| Is Ordered | false |
| isQuery | true |
| Is Query | true |
| Is Static | false |
| Is Unique | true |
| Keywords | |
| Lower | 1 |
| Lower Value | |
| Multiplicity | 1 |
| Name | lookupElement |
| Name Expression | |
| Owned Template Signature | |
| Owner | Class Namespace |
| Owning Parameter | |
| Qualified Name | model1::model1::Namespace::lookupElement |
| Stereotype | default |
| Template Parameter | |
| Type | Class NamespaceLookupElementResult |
| Upper | 1 |
| Upper Value | |
| Visibility | public |
public Class NamespaceResolveQualifiedNameResult resolveQualifiedName( Primitive Type string )
Searches for an Element contained within this Namespace that is identified by the supplied qualifiedName. The qualifiedName is interpreted as a 'path' starting from this Namespace.
| Alias | |
| Body Condition | |
| Class | Class Namespace |
| Collections | |
| Concurrency | sequential |
| Datatype | |
| Is Abstract | false |
| Is Leaf | false |
| Is Ordered | false |
| isQuery | true |
| Is Query | true |
| Is Static | false |
| Is Unique | true |
| Keywords | |
| Lower | 1 |
| Lower Value | |
| Multiplicity | 1 |
| Name | resolveQualifiedName |
| Name Expression | |
| Owned Template Signature | |
| Owner | Class Namespace |
| Owning Parameter | |
| Qualified Name | model1::model1::Namespace::resolveQualifiedName |
| Stereotype | default |
| Template Parameter | |
| Type | Class NamespaceResolveQualifiedNameResult |
| Upper | 1 |
| Upper Value | |
| Visibility | public |
| Comments |
Subclasses of the Namespace Class have mechanisms for effectively extending their namespace, without actually containing additional Elements. Thus Namespace can be viewed in terms of its two roles, as a container and as a namespace mechanism. Because only subclasses extend the namespace, the namespace and contents are coincident in the definition of the Namespace Class. Each Namespace has four collections (the latter three derivable) that are used in the MOF Models Constraints. These collections are:
| model1 UML Documentation |
| Summary:OperationsPropertiesComments | Detail:Operations |