|Re: generate OCL code from "OCL ecore instance" [message #1170672 is a reply to message #1170383]
||Mon, 04 November 2013 15:18
| aurel pestell
Registered: October 2013
Sorry, that was not clear. I'll explain what I am trying
to achieve instead:
Brievly, in my project, I generate an ecore metamodel programmatically.
I generate it using an ATL transformation that transform
an instance of a Xtext AST instance model to an instance
of the Ecore.ecore metamodel (see http://www.eclipse.org/forums/index.php/t/542586/).
It works just perfectly.
Now, I need to enrich it with a validation system.
The thing is that I also need to generate it programmatically.
So I was wondering if I could use the same strategy with the
OCL.ecore metmodel shipped with "org.eclipse.ocl".
Thank you for your reply.
[Updated on: Mon, 04 November 2013 15:20]
Report message to a moderator
|Re: generate OCL code from "OCL ecore instance" [message #1171908 is a reply to message #1171838]
||Tue, 05 November 2013 10:16
| Ed Willink
Registered: July 2009
are XMI and being successfully used for model transformation.
On 05/11/2013 14:16, aurel pestell wrote:
> Hi Ed,
> I am reading the documentation on help.eclipse.org about the pivot
> metamodel and it says:
>> From the specification perspective, the pivot metamodel
>> is UML-aligned
>> supports modeling of the OCL standard library
>> supports 'merging' of additional Complete OCL definitions
>> supports an interchangeable XMI representation
>> supports a fully reflective oclType()
> Does it mean model instances will be serializable into XMI ?
> Anyway, I'll make some tests with your tips in mind and reply back here.
> Big thank !
Powered by FUDForum
. Page generated in 0.04628 seconds