Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » UML2 & OCL version compatibility
UML2 & OCL version compatibility [message #625460] Wed, 14 November 2007 11:46
Ted Poole is currently offline Ted PooleFriend
Messages: 10
Registered: July 2009
Junior Member
I'm using the UML2 code generation off my ecore (because of all the
extras like derived unions, subsets, ocl etc), and I would like to
provide an OCL expression as the implementation of a query method.

In my ecore, I have created an EAnnotation on my EOperation, and set the
'source' to "http://www.eclipse.org/uml2/1.1.0/GenModel". I then create
a DetailsEntry in the EAnnotation with 'key' = "body" and
'value'="result = <my ocl expression>".

When I generate the model code, I do get a body generated for the
operation which seems to be using the OCL api to execute my OCL
expression - as expected.

The problem is that the generated code doesn't compile because it seems
t be using an OCL API that doesn't match up with what I have installed.

I've installed the latest releases of UML2 (2.1.1) and OCL (1.1.1) but
still I have the problem. Is the UML2 codegen producing code that calls
onto an older version of the OCL API?

Cheers,
Ted Poole
Previous Topic:How to programmatically add an element as an owned element of another
Next Topic:Programmatically retrieving applicable profiles
Goto Forum:
  


Current Time: Thu Sep 26 03:14:02 GMT 2024

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

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

Back to the top