Enumeration

An enumeration is a type defined by a set of literal. In UML, an enumeration is described by a class whose stereotype is <<enumeration>>.

The scope of an enumeration is the model in which it is defined. Two enumeration types may define the same literal. It is the context that indicates which enumeration type should be considered.

The attributes of the class define the literal ones. Only the name of an attribute is meaningful.

Properties
Name Name of the enumeration type. It is mandatory.
Visibility Public visibility is the only option.
Keywords Ignored
Stereotype Must be set to enumeration
Specializes A list of enumeration types that this type specializes. Multiple inheritance is not allowed. The set of literal of this type is augmented with the set of literal of the super type.
 
TOC ] Previous ] Next ]