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
Edoaurd Batot is currently offline Edoaurd BatotFriend
Messages: 91
Registered: March 2015
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 W. Damus is currently offline Christian W. DamusFriend
Messages: 1195
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
Edoaurd Batot is currently offline Edoaurd BatotFriend
Messages: 91
Registered: March 2015
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: Tue Aug 20 05:15:19 GMT 2019

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

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

Back to the top