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
- In the Palette, click Enum and click
an empty space in the diagram editor where you want to place the enum
type.
- In the New Enum Type wizard, in the Source
Folder field, specify the source folder for the new enum
type.
- 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.
- In the Name field, type a name for
the new enum type.
- 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.
- 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.
- Click Finish.