Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Can i add ocl to ecore with java code?
Can i add ocl to ecore with java code? [message #1010939] Mon, 18 February 2013 14:15 Go to next message
serhat gezgin is currently offline serhat gezginFriend
Messages: 243
Registered: January 2013
Location: Izmir
Senior Member
I want to add ocl to my .ecore metamodel with java code. But i cant find any example or tutorial.

So i want to ask is tihs possible or where can i find sample codes?
Re: Can i add ocl to ecore with java code? [message #1010987 is a reply to message #1010939] Mon, 18 February 2013 16:00 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7671
Registered: July 2009
Senior Member
Hi

You will find the 'specification' of the EAnnotations for OCL embedded
in Ecore at http://wiki.eclipse.org/MDT/OCLinEcore.

If you want code you can look at the MDT/OCL code that injects
EAnnotations at methods such as createConstraint, installDelegate in
org.eclipse.ocl.examples.pivot.ecore.Pivot2Ecore.

Regards

Ed Willink

On 18/02/2013 14:15, serhat gezgin wrote:
> I want to add ocl to my .ecore metamodel with java code. But i cant
> find any example or tutorial.
>
> So i want to ask is tihs possible or where can i find sample codes?
Previous Topic:Why does ECORE exists, when UML was there already?
Next Topic:How should I model this relationship.
Goto Forum:
  


Current Time: Thu Sep 26 13:46:16 GMT 2024

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

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

Back to the top