Should the OCL allInstances() feature apply to stereotypes? [message #626800] |
Wed, 16 July 2008 14:51 |
Eclipse User |
|
|
|
Hi,
Should the OCL allInstances() feature apply to stereotypes?
In other words, if I've created a stereotype 'S' extending Class in
profile 'P', should I be able to write an OCL constraint that uses the
expression:
P::S.allInstances()
and expect it to find all of the Classes in my model to which 'S' has
been applied?
Although the UML v2.1.2 specification talks about instances of an
instance "S" of Stereotype (section 18.3.8, semantics), it's not clear
to me whether or not a Class stereotyped as 'S' should or should not be
considered an instance of 'S'.
Thanks,
Linda
|
|
|
Powered by
FUDForum. Page generated in 0.05688 seconds