Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forums[Xpand & Xtend] OCL to Java
https://www.eclipse.org/forums/index.php/mv/msg/201987/645409/#msg_645409
does anyone know how I can generate Java Code from OCL constraints, which are in my models?
I know that there is some eclipse project which can transform OCL to Java, but is it also possible to use it within the context of Xpand/Xtend or at least in the MWE workflow?
I hope someone can help me out.
Best regards,
Muba]]>Muba 2010-12-17T07:44:23-00:00Re: [Xpand & Xtend] OCL to Java
https://www.eclipse.org/forums/index.php/mv/msg/201987/645466/#msg_645466
You should really ask OCL: questions on the OCL forum, CCed.
I don't know of any OCL to Java capabilitu within Eclipse, but it is
high on the wish list for the Eclipse OCL project (but post Indigo) now
that OCL integrates much better with EMF and is re-used by Acceleo,
QVTo, GMF, Modisco ...
Xpand/Xtend do not use OCL, rather a pragmatic language with many
similarities. For instance OCL's "->" for collection navigation is
replaced by ".", which has some attractions but has major
incompatibilities with respect to implicit collect.
Anyone who wants to contribute to OCL to Java support is very welcome.
Regards
Ed Willink
On 17/12/2010 07:44, Muba wrote:
> Hi,
>
> does anyone know how I can generate Java Code from OCL constraints,
> which are in my models?
>
> I know that there is some eclipse project which can transform OCL to
> Java, but is it also possible to use it within the context of
> Xpand/Xtend or at least in the MWE workflow?
>
> I hope someone can help me out.
>
> Best regards,
> Muba]]>Ed Willink2010-12-17T10:31:15-00:00