Une image contenant texte, signe

Description générée automatiquement

Context Pattern Editor – Multiple Constraints

 

Multiple Constraints

Syntax:

.constraint (value).constraint(value)

It is possible to apply multiple constraints to a token, for example:

Package+,{ref}references:.metaclass(Dependency).stereotype(include)

Matches elements in the references list of a Package but only if they are dependencies with a stereotype of <<include>>

Editing Multiple Constraints

In the Context Pattern Editor, click the Edit Constraints button to open an editor for multiple constraints.

Note that the current Constraint Type is automatically set to MULTIPLE and any existing Constraint Value is moved into the new editor:

A screenshot of a computer

Description automatically generated

 

Each row is a constraint. The details of each row may be entered just like in the main pattern, including invoking a picker by clicking Select Constraint.