Creating Java enum types in domain modeling class diagrams

You can use domain modeling class diagrams to create Java enumeration types to visually develop applications.

Before you begin

You must have a domain modeling class diagram open.

About this task

To create a Java enum type, complete the following steps:

Procedure

  1. In the Palette, click Enum and click an empty space in the diagram editor where you want to place the enum type.
  2. In the New Enum Type wizard, in the Source Folder field, specify the source folder for the new enum type.
  3. Complete one of the following steps:
    • In the Package field, specify the package to contain the new enum type.
    • Select Enclosing type and specify a type in which to enclose the new enum type.
  4. In the Name field, type a name for the new enum type.
  5. In the Modifiers field, select one or more access modifiers for the new enum type. Private and protected access modifiers are available only if you specify an enclosing type.
  6. In the Interfaces area, click Add; then, in the Implemented Interfaces Selection window, select the interfaces that the new enum type implements and click Add.
  7. Click Finish.

Feedback