attribute query [message #39257] |
Thu, 27 September 2007 10:05 |
Eclipse User |
|
|
|
Originally posted by: nickkirtley.gmail.com
hi,
I have a query:
self.attribute->collect(a : Property | a.aggregation).oclAsType(Property)
this returns:
composite
none
none
shared
in the case of the model that I'm querying.
I want to pick shared, (an aggregation between two components), I don't
want to pick it based on name or anything specific to this case, I want to
pick it based on that the attribute kind is shared.
How can I do this?
NICK
|
|
|
Re: attribute query [message #39320 is a reply to message #39257] |
Thu, 27 September 2007 13:54 |
Eclipse User |
|
|
|
Originally posted by: cdamus.ca.ibm.com
Hi, Nick,
What do you mean by "pick"?
Do you mean:
self.attribute->select(a | a.aggregation = AggregationKind::shared)
This results in a collection of Propertys that are shared.
Cheers,
Christian
nick kirtley wrote:
> hi,
>
> I have a query:
>
> self.attribute->collect(a : Property | a.aggregation).oclAsType(Property)
>
> this returns:
>
> composite
> none
> none
> shared
>
> in the case of the model that I'm querying.
>
>
> I want to pick shared, (an aggregation between two components), I don't
> want to pick it based on name or anything specific to this case, I want to
> pick it based on that the attribute kind is shared.
>
> How can I do this?
>
> NICK
|
|
|
Powered by
FUDForum. Page generated in 0.03512 seconds