Abbreviation

TagMult1

Description

This validation rule checks if the number of specified Tagged Values does not exceed the multiplicity defined for the Tag Definition.

Severity

error

Constrained Element

Tagged Value

Solvers

  • Remove last value(s) - removes the Tag Value(s) starting from the last one, leaving only the number of values corresponding to the specified multiplicity.  
  • Increase multiplicity - increases the Tag Definition's multiplicity to match the number of Tagged Values.

Example

Stereotype Car has a Tag Definition gearTransmission with the multiplicity set to one. The Class Model 1 with the applied stereotype Car has the Tag gearTransmission specified with two values, which causes an error.
The error is resolved via the Remove last value(s) solver.