Applying constraints to model elements

In UML models, you can apply a constraint to model elements to indicate that the constraint imposes a condition or restriction on the model elements.

To apply a constraint to a model element:

  1. In the Model Explorer view or in the diagram editor, right-click a model element; then click Add UML > Constraint.
  2. In the parentheses, type a description of the constraint and press Enter.
  3. In the Properties view, click the General tab.
  4. On the General page, in the Language list, click a language.

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

Related concepts
Model elements
Constraints
Stereotypes

Related reference
Model element stereotypes
Relationship stereotypes

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