Adding enumeration literals to enumerations

In your UML model, you can add enumeration literals to an enumeration to show the named identifiers that represent the values of the enumeration.

To see enumeration literals in an enumeration, the enumeration literals compartment must be visible.
To add an enumeration literal to an enumeration:
  1. In the diagram editor, right-click the enumeration; then click Add UML > Enumeration Literal.
  2. Type a name for the enumeration literal and press Enter.
Tip: You can also add enumeration literals to enumerations in the Model Explorer view.
Related concepts
Enumerations
Enumeration literals
Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.