In UML models, enumeration literals are model elements in class diagrams that represent named values in an enumeration.
You can add enumeration literals to an enumeration in your model to represent discrete values for the enumeration. Software applications can copy and store enumeration literals, and pass them as arguments in calls to operations.
Every enumeration literal in an enumeration must have a unique name that describes the value that it represents.
The diagram editor displays enumeration literals in class diagrams in the enumeration shape for which they are defined. The Model Explorer view displays enumeration literals under the enumeration for which they are defined.
Enumeration literals in the Model Explorer view | Enumeration literals in the diagram editor |
![]() |
![]() |
Parent topic: Class diagrams
Related tasks
Adding enumeration literals to enumerations
Sorting and filtering enumeration literals