Page last modified 18:01, 8 May 2012 by nomos

OCL - Brief Introduction

    Table of contents
    No headers

    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:

    bankCode.size() = 8 or bankCode.size() = 11

     

    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.


    OCL References

    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

    http://www.amazon.com/dp/0321179366?tag=modellangupor-20&camp=14573&creative=327641&linkCode=as1&creativeASIN=0321179366&adid=1MM93YM6GZC0RP76DKYZ&&ref-refURL=http%3A%2F%2Fmodeling-languages.com%2Flist-ocl-books%2F

    OCL Quick Reference: http://www.cs.utep.edu/cheon/cs3360/project/proj1/ocl-ref-short.pdf

    Menu