Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 13:33 Go to next message
Frank W is currently offline Frank WFriend
Messages: 3
Registered: January 2012
Junior Member
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 14:35 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7670
Registered: July 2009
Senior Member
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: Tue Sep 24 15:01:17 GMT 2024

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

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

Back to the top