Description
Constructs::EnumerationLiteral reuses the definition of Enumeration from Basic. It adds a specialization to
Constructs::NamedElement.
Attributes
No additional attributes.
Associations
Constraints
No additional constraints.
Semantics
An EnumerationLiteral defines an element of the run-time extension of an enumeration data type.
An EnumerationLiteral has a name that can be used to identify it within its enumeration datatype.
The enumeration literal
name is scoped within and must be unique within its enumeration.
Enumeration literal names are not global and must be
qualified for general use.
The run-time values corresponding to enumeration literals can be compared for equality.
Notation
An EnumerationLiteral is typically shown as a name, one to a line, in the a compartment of the enumeration notation. See
"Enumeration (as specialized)".
Examples
See"Enumeration (as specialized)".