A constraint is a condition or restriction expressed in natural language text or in a machine readable language for the purpose of declaring some of the semantics of an element.
Properties
Rules
Name: The value shall be empty or may have any value.
The name of the constraint
Keywords: The value can be anything.
A keyword is a lightweight variant of a stereotype to extend the semantics of a model element. As opposite of stereotypes, keywords does not have do be defined in a profile. If several keywords are given, they should be separated by commas.
Stereotypes: The value can be anything.
A stereotype defines how a model element may be extended, and enables the use of platform or domain specific terminology or notation in place of, or in addition to, the ones used for the extended metaclass. Stereotypes should be given in the format 'profile::stererotype'. Stereotypes should be separated by commas.
Documentation: The value can be anything.
A textual description of the constraint.
Language: The value can be anything.
Specifies the languages in which the constraint is stated. The interpretation of the expression body depends on the languages. If the languages are unspecified, they might be implicit from the expression body or the context.
Body: The value can be anything.
The condition or the restriction of the constraint
Constrained Element: The value shall be a list of arbitrary number of unique values, where each value can be anything.
The ordered set of elements referenced by this constraint.