|[OCLinEcore] Validation of OCL constraints [message #1008654]
||Wed, 13 February 2013 12:44
| Cedric Moonen
Registered: August 2009
I am creating some OCL validation rules on my meta-model using OCLinEcore. I followed what is described on this page but the @extends annotation described there doesn't do exactly what it is "supposed" to do: it doesn't make the generated class extend OCLinEcoreEObjectValidator but instead it makes implement it (although it is a class and not an interface), which ends up in a compilation error (you have to manual correct the file to fix the problem at each generation of the model code).
Additionally, I was trying to have custom error messages when my OCL rule fails and followed the syntax described here. This works fine, since my custom message is displayed but the error is now a warning. Is this normal ?
On a side note, I am using GMF to create instances of my domain model.
Powered by FUDForum
. Page generated in 0.09161 seconds