OCL - Brief Introduction
Table of contents
XMLdation implements validation rules for ISO20022 and other XML messages using OCL.
OCL (Object Constraint Language) is a query and constraint language defined by the OMG (www.omg.org).
Example of OCL:
The bankCode in the Bank data structure below represents a BIC. It must be 8 or 11 characters long. You can express this validation rule in OCL as follows:
OCL is a non-proprietary, standards-based rules language. It is supported in modelling environments e.g. MagicDraw, IBM Rational Software Architect and Eclipse. ISO20022 XML messages are designed in these modelling environments.
You will find a section on OCL Resources on the Nomos Software Website: http://nomos-software.com/resources/ocl-resources
OCL Book: "The Object Constraint language: Getting Your Models Ready for MDA (2nd Edition)", Jos Warmer and Anneke Kleppe, Addison Wesley
OCL Quick Reference: http://www.cs.utep.edu/cheon/cs3360/project/proj1/ocl-ref-short.pdf