UML Constraints
A constraint is a semantic condition or restriction applied to a model
element.
A model element can have several constraints. A constraint is stated in free text;
such as «positive value» or «value > 0».
Adding new Constraints
To add a UML constraint:
- Select UML constraint and from the edit toolbar click Add > UML constraint.
- Change the default name provided by overwriting it. Press Enter.
Applying a constraint to a model element
In the object’s properties window (for example, table or class), click the UML constraints
tab. Click Link, choose a constraint from the UML constraint window and
click Select.
Constraints display
Although you can apply a constraint to any model object, only the following objects
allow constraints display: classes, fields, methods, associations and association ends.
The constraints name is displayed within braces. To display the constraints, Format
> Project Styles > Tab referring to the type of object the constraint is applied to. For
further information on Graphical Features, see Using styles.