Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » mdt/ocl context-free ocl condition
mdt/ocl context-free ocl condition [message #1286576] Sun, 06 April 2014 19:29 Go to next message
chadi assem is currently offline chadi assem
Messages: 26
Registered: March 2012
Junior Member
Hi,
is there a way to specify a context-free ocl query using the mdt/ocl? emf
query ocl provides a similar mechanism.
thanks.
Re: mdt/ocl context-free ocl condition [message #1287000 is a reply to message #1286576] Mon, 07 April 2014 09:26 Go to previous message
Ed Willink is currently offline Ed Willink
Messages: 4114
Registered: July 2009
Senior Member
HI

Your question makes very little sense to me.

The context defines self, and without self you can only evaluate numeric
expressions.

FWIW, the Classic Eclipse OCL throws an NPE when evaluating on a null
self so you cannot do pure numeric evaluation. The Pivot OCL is more
tolerant so you can use it as a calculator.

Regards

Ed Willink


On 06/04/2014 20:29, Sohaib wrote:
> Hi,
> is there a way to specify a context-free ocl query using the mdt/ocl?
> emf query ocl provides a similar mechanism.
> thanks.
Previous Topic:Problem using OCLType in stereotype invariant
Next Topic:mdt/ocl context-free ocl condition
Goto Forum:
  


Current Time: Fri Oct 31 14:27:33 GMT 2014

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

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