DescriptionOCL is a descendant of Syntropy, a second-generation object-oriented analysis and design method. The OCL 1.4 definition specified a constraint language. In OCL 2.0, the definition has been extended to include general object query language definitions. OCL language statements are constructed in four parts:
OCL and UMLOCL supplements UML by providing expressions that have neither the ambiguities of natural language nor the inherent difficulty of using complex mathematics. OCL is also a navigation language for graph-based models. OCL and MOFOCL makes a Meta-Object Facility model more precise by associating assertions with its metaelements. OCL and QVTOf particular importance to Model Driven Engineering or model-driven architecture is the notion of Model transformation. The OMG has defined a specific standard for model transformation called MOF/QVT or in short QVT. Several model transformation languages like GReAT, VIATRA, or Tefkat are presently available, with different levels of compliance with the QVT standard. Many of these languages are built on top of OCL, which is the main part of the QVT-compliance. AlternativesAs a rule-based validation language, Schematron may be considered as an alternative to OCL. However Schematron works for XML trees while OCL makes it possible to navigate MOF-based models and metamodels (i.e. XMI trees). In other words, OCL has a similar relation to UML or MOF as Schematron has to XML. (Note that Schematron uses XPath to navigate inside the XML trees.) See also
External links
This article was originally based on material from the Free On-line Dictionary of Computing, which is licensed under the GFDL.
| |