Ecore is both a model and a meta-model, so any constraint defined in an
Ecore instance constitutes an example. Thus, the
org.eclipse.ocl.ecore.tests JUnit test suite has numerous examples
demonstrating pretty nearly everything you can do with OCL.
That's about it for examples that you will find in the OCL component,
itself. Other Eclipse projects such as GMF use OCL (GMF uses it to a
fairly considerable degree). You might have a look, there.
> Hi all :D
> Can someone show me code examples using OCL on meta-models (other example
> different to "OCL Interpreter").