Constraint Properties

To view or edit a constraint's properties, double-click its Browser or list entry. The property sheet tabs and fields listed here are those available by default, before any customization of the interface by you or an administrator.

The General tab contains the following properties:

Property

Description

Name/Code/Comment

Identify the object. The name should clearly convey the object's purpose to non-technical users, while the code, which is used for generating code or scripts, may be abbreviated, and should not normally include spaces. Neither the name nor code should contain colons. You can optionally add a comment to provide more detailed information about the object. By default the code is generated from the name by applying the naming conventions specified in the model options. To decouple name-code synchronization, click to release the = button to the right of the Code field.

Stereotype

Extends the semantics of the object. You can enter a stereotype directly in this field, or add stereotypes to the list by specifying them in an extension file.

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)

Keywords

Provide a way of loosely grouping objects through tagging. To enter multiple keywords, separate them with commas.

Fields Tab

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).