UML Xor Constraint

The XOR constraint relationship connects two elements that represent two exclusive alternatives - only one of them is actually used.

The XOR constraint connector is depicted as a dashed line. It connects two elements (e.g. associations, classes) in the diagram. The meaning of XOR constraint is that only of the interconnected elements can be used at a time.

XOR constraint between two associations
XOR constraint between two associations

How to add an XOR constraint to the diagram

You can insert an XOR constraint to the diagram this way:

  • Click on the Constraint Connector tool in the Common group in the toolbox
  • Drag from a target element to another one to connect them
  • The constraint is inserted into the diagram
Inserting XOR constraint between two associations
Inserting XOR constraint between two associations

New Comment

Comment