|Re: OCL constraints in Ecore problems view messages [message #762590 is a reply to message #762583]
||Thu, 08 December 2011 05:51
| Ed Willink
Registered: July 2009
The example I gave was a def: which is a Complete OCL syntax that allows
If you're using OCLinEcore then you need to define an extra 'ordinary'
operation that is visible by inheritance or by delegation to the
invariant. (Ecore does not support static operations, so you have to
make the helper a non-static operation and provide some object as the
self of the operation.)
On 08/12/2011 10:40, giovi wrote:
> hi Edward,
> Sorry for my incompetence but i can't understand where i have tu put
> helper you have suggested me. If i copy it in my ecore file with
> OClinEcore editor i receive an error...
> For my validation i could only use static messages but if i use the
> escape character _'my message' i don't receive error but validator not
> use my ocl constraint and if i open Validator class i see there are a
> validation rule for all words in my message but without ocl
> expression, in this example for 'my' and 'message'
Powered by FUDForum
. Page generated in 0.02820 seconds