Class Diagram - Classes and packages Constraints

Class Diagram - Classes and packages Constraints Diese Vorlage bearbeiten

A constraint is an UML expression that constrains the semantics of an element, and it must always be true, or in other words, it is a restriction on an element that limits the usage of the element.

  • A constraint is one of three UML’s extensibility mechanisms: Steretypes, Tagged Values and Constraints. A constraint extends the semantics of a UML building block, allowing you to add new rules or modify existing ones.

  • A constraint is a condition (a Boolean expression) that restricts the extension of the associated element beyond what is imposed by the other language constructs applied to that element.

XOR

{xor} is a predefined UML constraint. The {XOR} means that class MilesAccount must have either an association to Person Owner or to Company Owner but not to both or none.

Erstellen Sie großartige Diagramme