|
|
|
|
|
Re: [Acceleo] Parameters of one operation [message #664828 is a reply to message #663884] |
Tue, 12 April 2011 08:41 |
|
Hi,
First of all, this query should not work:
[query private getBagAllParams(c : Class) : Bag(Parameter) = c.ownedOperation->ownedParameter -> asBag() /]
It may be a typo of your message in this newsgroup but it should be:
[query private getBagAllParams(c : Class) : Bag(Parameter) = c.ownedOperation.ownedParameter -> asBag() /]
The message invalid result is returned if your query return a "null". The class "GccomMantUnidadesHelper" may be a class with methods without parameters. To solve your problem, you could try something like this:
[query private getBagAllParams(c : Class) : Bag(Parameter) = c.ownedOperation->select(ownedParameter->size() > 0).ownedParameter->asBag() /]
Stephane Begaudeau, Obeo
--
Twitter: @sbegaudeau
Acceleo wiki: http://wiki.eclipse.org/Acceleo
Blogs: http://stephanebegaudeau.tumblr.com & http://sbegaudeau.tumblr.com
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04567 seconds