You can modify an object's properties from its property sheet. To open a constraint property sheet, double-click its diagram symbol or its Browser entry in the Constraints folder beneath an entity.
The General tab contains the following properties:
Property |
Description |
---|---|
Name |
Name of the constraint, which must be a no-colon-name. |
Code |
Code of the constraint, which must be a no-colon-name. |
Comment |
Descriptive label of the constraint. |
Stereotype |
Sub-classification used to extend the semantics of an object without changing its structure. It can be predefined or user-defined. |
ID |
ID of the constraint. Its value must be of type ID and unique within the model containing the constraint. |
Reference [KeyRef only] |
Name of a key or a unique constraint defined in the current model (or another model with a specified namespace). The Reference value must be a qualified name. |
Selector (XPath) |
An XML Path Language expression that selects a set of elements across which the values specified in the Fields tab must be unique. There can only be one selector (see Specifying a Constraint Selector) |
The Fields tab lists XPath expressions used to define the constraint (see XPath Abbreviated Syntax). If more than one field is listed, the combination of fields must be unique (see Specifying Constraint Fields).