Skip to main content



      Home
Home » Modeling » OCL » Question on Java code generator in Eclipse Juno
Question on Java code generator in Eclipse Juno [message #877334] Sat, 26 May 2012 09:33 Go to next message
Eclipse UserFriend
Hi,
I have a question on the new code generator in Eclipse Juno (see wiki.eclipse.org/MDT/OCL/New_and_Noteworthy/Juno#Milestone_3), there it says: "This new direct OCL 2 Java Code Generator Component supports genmodelling of direct Java code for OCL delegate annotations". Does that mean that this new code generator will only work for OCL expressions in Ecore models (I hope my question makes sense, I'm a bit confused by all this technical lingo)? Basically I'm looking for a way to generate Java legacy code from OCL constraints stored in UML (class) models. With "legacy" I mean Java code that works without using a framework like EMF or similar. The Dresden OCL implementation supports such code generation, but the generated Java code is not that easy to integrate in your own code (and their code generation is largely undocumented).
Re: Question on Java code generator in Eclipse Juno [message #877358 is a reply to message #877334] Sat, 26 May 2012 10:35 Go to previous message
Eclipse UserFriend
Hi

The code generator generates code for all loaded pivot models, which may
arise from embedded OCL or independent Complete OCL documents, or indeed
manually injected OCL.

On 26/05/2012 14:33, Frank W wrote:
> Hi,
> I have a question on the new code generator in Eclipse Juno (see
> wiki.eclipse.org/MDT/OCL/New_and_Noteworthy/Juno#Milestone_3), there
> it says: "This new direct OCL 2 Java Code Generator Component supports
> genmodelling of direct Java code for OCL delegate annotations". Does
> that mean that this new code generator will only work for OCL
> expressions in Ecore models (I hope my question makes sense, I'm a bit
> confused by all this technical lingo)? Basically I'm looking for a way
> to generate Java legacy code from OCL constraints stored in UML
> (class) models. With "legacy" I mean Java code that works without
> using a framework like EMF or similar. The Dresden OCL implementation
> supports such code generation, but the generated Java code is not that
> easy to integrate in your own code (and their code generation is
> largely undocumented).
Previous Topic:OCL as an "object reference graph"
Next Topic:[Announce] Eclipse OCL 4.0.0 (Juno) RC2 is now available
Goto Forum:
  


Current Time: Sat Jul 05 10:52:48 EDT 2025

Powered by FUDForum. Page generated in 0.04728 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top