Specifying body language for the constraints of model elements

In UML models, you can specify the language that is used to write the body of a constraint so that others who read the constraint can more easily understand its condition or restriction. The body can be written using a variety of languages, including natural languages such as English, programming languages such as Java™, a mathematical notation, or the Object Constraint Language (OCL). For more information about OCL, read the Unified Modeling Language 2.0 Superstructure specification that is available on the Object Management Group (OMG) Web site.

To specify a body language for a constraint:
  1. In the Model Explorer view or in the diagram editor, click a constraint.
  2. In the Properties view, click the General tab.
  3. On the General page, click BodyLanguage.
  4. In the Language list, click a language.

Parent topic: Using stereotypes and constraints to extend the meaning of model elements

Related concepts
Constraints

Related information
UML Resource Center on IBM developerWorks

Terms of use | Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.