|Re: [Acceleo] OCL and Query utilisation [message #685843 is a reply to message #685464]
||Mon, 20 June 2011 07:03
| Stephane Begaudeau
Registered: April 2010
Location: Nantes (France)
stuart mackey wrote on Fri, 17 June 2011 16:50|
I 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?
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.
Stephane Begaudeau, Obeo
Acceleo Documentation: http://docs.obeonetwork.com/acceleo
Powered by FUDForum
. Page generated in 0.02364 seconds