OCL Based on New Presentation of the OCL-Syntax

  • Authors:
  • Bernhard Rumpe

  • Affiliations:
  • -

  • Venue:
  • Object Modeling with the OCL, The Rationale behind the Object Constraint Language
  • Year:
  • 2002

Quantified Score

Hi-index 0.00

Visualization

Abstract

The Object Constraint Language (OCL) is a part of the Unified Modeling Language (UML) - an emerging standard language for object-oriented analysis and design. OCL is designed as a formal language for specifying constraints that cannot be expressed conveniently using UML's diagrammatic notation.This article describes results of a careful analysis of the syntactic structure of OCL, resulting in a number of improvements of the OCL-syntax. In particular, a new and better readable grammar describing OCL is defined. The paper enhances not only the language OCL itself, but in particular its presentation.Given the new grammar, a Java-style variant of OCL with essentially the same abstract grammar is defined, which should be more comfortable to Java-programmers.