Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » EWL Guard Querying Stereotype
EWL Guard Querying Stereotype [message #590531] Fri, 09 July 2010 12:04 Go to next message
Bak Attila is currently offline Bak AttilaFriend
Messages: 29
Registered: December 2009
Junior Member
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
Re: EWL Guard Querying Stereotype [message #590539 is a reply to message #590531] Fri, 09 July 2010 12:07 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Attila,

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
>
Previous Topic:Accessing MapInfo structure from ECL
Next Topic:EWL Guard Querying Stereotype
Goto Forum:
  


Current Time: Thu Mar 28 18:20:52 GMT 2024

Powered by FUDForum. Page generated in 0.02108 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top