Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Validating Ecore models with independent OCL fragments
Validating Ecore models with independent OCL fragments [message #1697430] Wed, 03 June 2015 20:48 Go to next message
Edouard R. Batot is currently offline Edouard R. BatotFriend
Messages: 100
Registered: March 2015
Senior Member
Hi folks !

Ed, how are you ? Enjoying the spring ?

Well, I'd like to test the models I've generated. I'd like to test them programmatically (no use of any UI) with OCL constraints generated programaticcally (I enjoy automation).

My question is : can anybody point me out a simple example to test a model (Ecore from XMI, with Resource etc.) with a String containing OCL constraint ?
Or, le cas échéant, a right API to tackle with that process...

I've got the org.eclipse.ocl.* in my build path, but still can change for a Dresden API, or anything if necessary/recomended.
Don't sell me tool or technology, please, I want it API style.

Thanks for your colaboration, have a great time.
Edouard



[Updated on: Wed, 03 June 2015 21:00]

Report message to a moderator

Re: Validating Ecore models with independent OCL fragments [message #1697431 is a reply to message #1697430] Wed, 03 June 2015 21:08 Go to previous messageGo to next message
Christian Damus is currently offline Christian DamusFriend
Messages: 1270
Registered: July 2009
Location: Canada
Senior Member

Hi, Edouard,

I would imagine that the JUnit tests in the Eclipse OCL project's git
repository have plenty of examples of evaluating OCL expressions on
instances of Ecore models loaded from XMI resources:

http://git.eclipse.org/c/ocl/org.eclipse.ocl.git/

HTH,

Christian


On 2015-06-03 20:48:15 +0000, Edoaurd Batot said:

> Hi folks !
>
> Ed, how are you ? Enjoying the spring ?
>
> Well, I'd like to test the models I've generated. I'd like to test them
> programmatically (no use of any UI) with OCL constraints generated
> programaticcally (I enjoy automation).
>
> My question is : can anybody point me out a simple example to test a
> model (Ecore from XMI, with Resource etc.) with a String containing OCL
> constraint ?
> Or, le cas échéant, a right API to tackle with that process...
>
> I've got the org.eclipse.ocl.* in my build path, but still can change
> for a Dresden API, or anything if necessary/recomended.
> Don't sell me tool or technology, please, I want it API style.
>
> Thanks for your colaboration, have a great time.
> Edouard
Re: Validating Ecore models with independent OCL fragments [message #1697436 is a reply to message #1697431] Wed, 03 June 2015 22:01 Go to previous message
Edouard R. Batot is currently offline Edouard R. BatotFriend
Messages: 100
Registered: March 2015
Senior Member
Quote:
http://git.eclipse.org/c/ocl/org.eclipse.ocl.git/

I like the guess, and your imagination sounds fertile, but... That's a pretty heavy direction, isn't it ?!



Previous Topic:container vs containment
Next Topic:[CDO] Builing cdo on builserver
Goto Forum:
  


Current Time: Fri Apr 19 00:47:08 GMT 2024

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

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

Back to the top