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:
- In the Model Explorer view
or in the diagram editor, right-click a model element; then click .
- In the parentheses, type a description of the constraint
and press Enter.
- In the Properties view, click the General tab.
- On the General page, in the Language list,
click a language.