Namespaces



Date view Thread view Subject view Author view Attachment view

From: Bogumila Hnatkowska (hnatkowska@ci.pwr.wroc.pl)
Date: Wed 07 Apr 2004 - 12:04:33 BST


Hi to All,

I have trouble with understanding the meaning of additional opeations
for metaclass Namespace in UML 1.5, i.e. contents and allContents.

The first is not consistent with OCL grammar (union should have only one
parameter), and the second is a synonim for the first.

Context Namespace

[1] The operation contents results in a Set containing all ModelElements
contained by the Namespace.
contents : Set(ModelElement)
contents = self.ownedElement -> union(self.namespace, contents)

??? Does it meant that contents results in the namespace itself and its
contents and recursivelu the contents of its contents ???

[2] The operation allContents results in a Set containing all
ModelElements contained by the
Namespace.
allContents : Set(ModelElement);
allContents = self.contents

Thanks in advance
Bogumila Hnatkowska

Date view Thread view Subject view Author view Attachment view