|Re: EWL Guard Querying Stereotype [message #590539 is a reply to message #590531]
||Fri, 09 July 2010 08:07
| Dimitrios Kolovos
Registered: July 2009
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.
Bak Attila wrote:
> 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!
Powered by FUDForum
. Page generated in 0.01609 seconds