I have the following problem in EWL:
I would like to know if a class has a certain stereotype.
Unfortunately my tries are not working like:
guard: (self.isKindOf(Class) and (self.getAppliedStereotype("x") <> null))
Assuming that you have defined the getAppliedStereotype() method (as
there's no such built-in method in Epsilon), the way to check whether it
has returned null is to use the isDefined() method: i.e.
self.getAppliedStereotype("x").isDefined()
Cheers,
Dimitris
Bak Attila wrote:
> Hi,
>
> I have the following problem in EWL:
> I would like to know if a class has a certain stereotype.
> Unfortunately my tries are not working like:
> guard: (self.isKindOf(Class) and (self.getAppliedStereotype("x") <> null))
>
> Please help!
> Thanks
> Regards,
> attila
>