You can use domain modeling class diagrams to create Java interfaces that are enclosed in other types
(nested interfaces).
Before you begin
You must have a domain modeling class diagram open.
About this task
To create a nested interface, complete the following steps:
Procedure
- On the diagram editor tool palette, click Interface and
click an empty space inside the class diagram.
- In the New Java Interface wizard,
in the Source Folder box, select the source
folder in which you want the new interface to reside.
- Select the Enclosing type option
and click Browse.
- In the Enclosing Type Selection window,
select the type in which to enclose the new interface, and then click Add and OK.
- In the Name field, type the name
for the new interface.
- Select an access modifier (public, default, private, or
protected).
- Click Add next to the Extended
Interfaces box and, in the Extended Interfaces
Selection window, select the extended interfaces; then
click Add and OK.
- Click Finish.