Enumerations

The Enum element allows to define the possible values of a measure with the ENUM format. Accepted attribute is:

  • id to define the enumeration ID

The Enum element accepts the sub-element Value which accepts the following attributes:

  • id to define the option ID

  • value to define the option value

Example of enumeration definition with corresponding measure
<Measure measureId="CRITICAL_FACTOR" format="ENUM" enumId="CRITICAL_FACTOR" />

<Enum id="CRITICAL_FACTOR">
  <Value id="NONE" value="0" />
  <Value id="A" value="1" />
  <Value id="B" value="2" />
  <Value id="C" value="3" />
  <Value id="D" value="4" />
</Enum>

Options can be translated using the following syntax in a properties file:

ENUM_VALUE.NONE.NAME=Level None
ENUM_VALUE.A.NAME=Level A/Low
ENUM_VALUE.B.NAME=Level B/Mild
ENUM_VALUE.C.NAME=Level C/High
ENUM_VALUE.D.NAME=Level D/Critical