Adding enumeration literals to enumerations

In your UML model, you can add enumeration literals to an enumeration to specify the possible values of the enumeration.

Before you begin

To see enumeration literals in an enumeration, the enumeration literals compartment must be visible.

About this task

To add an enumeration literal to an enumeration:

Procedure

  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.

What to do next

Tip: You can also add enumeration literals to enumerations in the Project Explorer view.

Feedback