|
|
|
|
Re: [Acceleo] OCL and Query utilisation [message #685843 is a reply to message #685464] |
Mon, 20 June 2011 07:03  |
Eclipse User |
|
|
|
stuart mackey wrote on Fri, 17 June 2011 16:50I was puzzled by this too as a still new user. I think however the main distinction is that templates only produce text whereas a query can return typed data for further processing.
So, for example, I don't think you can write a template to produce a filtered list of items to be used repeatedly from other templates. You'd have to use a query for that.
Can someone more experienced confirm?
Hi,
It is correct, templates are creating strings and queries can return elements of your metamodels and elements of the OCL language like a "Set" (OCL) of "Package" (UML) for example.
Regards,
Stephane Begaudeau, Obeo
--
Twitter: @sbegaudeau
Blog: http://stephanebegaudeau.tumblr.com
Acceleo Documentation: http://docs.obeonetwork.com/acceleo
|
|
|
Powered by
FUDForum. Page generated in 0.06273 seconds