How to use the Toolkit
Here you can find a few usage example to learn, how to work with the OCL Toolkit.
- Explanation of the code generator of the OCL Toolkit (will open in a new window)
This example screencast written by Ronny Brandt explains how to use the JavaCodeGenerator
- How to use OCL22SQL (will open in a new window)
This screencast written by Michael Thiele and Claas Wilke explains how to use the tool OCL22SQL which generates SQL tables and views from a given UML/OCL model.
- The Royals and Loyals model
Attention:
This example uses the Dresden OCL1 Toolkit Release 1.1 which is outdated by now.
The model presented here is taken (with some modifications) from the book
"The Object Constraint Language: Precise Modeling With UML" by J. Warmer and A. Kleppe,
where it serves as a showcase for the use of OCL constraints. It has been implemented in
Java to demonstrate the abilities of the Dresden OCL Toolkit.