Find a class with a given Stereotype. [message #50850] |
Mon, 18 September 2006 19:23 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: firstname.name.gmail.com
Hello,
I try to understand a little bit how the emft query/statement works (doesn't
really want to use OCL). Up to now, I have created some basic queries (find a
class having a specific attribute). But now, I would like to retrieve all the
elements stereotyped by a given stereotype.
I know that a stereotype is applied on a specific element with an association
base_/extension_. But I don't know how to create this condition. I have
investigated on using #isApplied(Stereotype), but without success.
Best Regards
--
F. Lagarde
|
|
|
|
Re: Find a class with a given Stereotype. [message #51077 is a reply to message #51049] |
Tue, 19 September 2006 20:16 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: firstname.name.gmail.com
In the last post, on 09/19 around 05h, "Chris" (Chris McGee) wrote:
Chris> Hello François, Couldn't you use a condition something like this
Chris> in your query?
Chris> public class StereotypeAppliedCondition extends EObjectCondition {
Chris> public boolean isSatisfied(EObject eObj) { if (eObj instanceof
[...]
Chris> }
Chris> }
Hello,
Thanks a lot. I have finally realized my query by providing a specific
BooleanAdapter, but your solution sounds better.
I have to confess that I have some difficulties to write queries on EFeatures...
Hopping to become good enough to help others people.
--
F. Lagarde
|
|
|
|
|
Re: Find a class with a given Stereotype. [message #591409 is a reply to message #51049] |
Tue, 19 September 2006 20:16 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: firstname.name.gmail.com
In the last post, on 09/19 around 05h, "Chris" (Chris McGee) wrote:
Chris> Hello François, Couldn't you use a condition something like this
Chris> in your query?
Chris> public class StereotypeAppliedCondition extends EObjectCondition {
Chris> public boolean isSatisfied(EObject eObj) { if (eObj instanceof
[...]
Chris> }
Chris> }
Hello,
Thanks a lot. I have finally realized my query by providing a specific
BooleanAdapter, but your solution sounds better.
I have to confess that I have some difficulties to write queries on EFeatures...
Hopping to become good enough to help others people.
--
F. Lagarde
|
|
|
|
Powered by
FUDForum. Page generated in 0.04206 seconds