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 #545848] 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 #545852 is a reply to message #545848] Fri, 09 July 2010 12:07 Go to previous messageGo to next 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
>
Re: EWL Guard Querying Stereotype [message #545854 is a reply to message #545852] Fri, 09 July 2010 12:28 Go to previous messageGo to next message
Bak Attila is currently offline Bak AttilaFriend
Messages: 29
Registered: December 2009
Junior Member
Thanks! Works like a charm! Smile
I just wanted to thank you for this wonderful project Epsilon!
Great Job keep up the superb work!

regards,
attila
Re: EWL Guard Querying Stereotype [message #545864 is a reply to message #545854] Fri, 09 July 2010 13:09 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Great! Many thanks for your feedback :)

Cheers,
Dimitris

Bak Attila wrote:
> Thanks! Works like a charm! :)
> I just wanted to thank you for this wonderful project Epsilon!
> Great Job keep up the superb work!
>
> regards,
> attila
Re: EWL Guard Querying Stereotype [message #590556 is a reply to message #545852] Fri, 09 July 2010 12:28 Go to previous message
Bak Attila is currently offline Bak AttilaFriend
Messages: 29
Registered: December 2009
Junior Member
Thanks! Works like a charm! :)
I just wanted to thank you for this wonderful project Epsilon!
Great Job keep up the superb work!

regards,
attila
Re: EWL Guard Querying Stereotype [message #590563 is a reply to message #545854] Fri, 09 July 2010 13:09 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Great! Many thanks for your feedback :)

Cheers,
Dimitris

Bak Attila wrote:
> Thanks! Works like a charm! :)
> I just wanted to thank you for this wonderful project Epsilon!
> Great Job keep up the superb work!
>
> regards,
> attila
Previous Topic:EWL Guard Querying Stereotype
Next Topic:[Eugenia] Newbie question. Problems in the generated editor with the Folder Item.
Goto Forum:
  


Current Time: Sat Apr 20 04:20:44 GMT 2024

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

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

Back to the top