hello
i want to access the name of the stereotype an element refers to. i thougth that is very easy but i could not figure it out.
if anybody knows help please post an ocl-expression or the metattributs which can help
This manually traverses the stereotype using UML helper functions.
Unfortunately this requires an oclAsType to restore the 'known' type and
this is a problem in the traditional Ecore OCL implementation when that
type is a Collection.
My current thinking is that the OCL meta-model loader should treat
profiles in the same way as Complete OCL so that OCL expressions are
evaluated on the merged meta-model thereby allowing a type safe
instanceClassName := self.instanceClassName;
For now, I think getAppliedStereotype or custom Java may be your only
option.
Regards
Ed Willink
On 14/10/2011 13:57, stoehm wrote:
> hello
> i want to access the name of the stereotype an element refers to. i
> thougth that is very easy but i could not figure it out. if anybody
> knows help please post an ocl-expression or the metattributs which can
> help
>
> best regards
> stoehm