Abbreviation

TagValAccMult

Description

This validation rule checks if a tag has more than one value defined. If the stereotype's tag definition multiplicity is 1, only one value is allowed for a Tagged Value.

Severity

warning

Constrained Element

TaggedValue

Solvers

  • To fix this, make sure the number of values defined for a tag does not exceed the number defined for the stereotype's tag definition multiplicity.

Example

The Car stereotype contains a tag definition gearTransmission with the multiplicity set to one. The class Sedan with the applied stereotype Car has the gearTransmission tag specified with two values, which causes an error.
The error is resolved by removing one of the values.