Creating nested interfaces

In UML visualization, you can create Java interfaces that are enclosed in other types (nested interfaces) from within the diagram editor.

To create a nested interface:

  1. On the diagram editor tool palette, click Interface and click an empty space inside the class diagram.

  2. In the New Java Interface wizard, in the Source Folder box, select the source folder in which you want the new interface to reside.

  3. Select the Enclosing type option and click Browse.

  4. In the Enclosing Type Selection window, select the type in which to enclose the new interface, and then click Add and OK.

  5. In the Name box, type the name for the new interface.

  6. Select one of the following access modifiers:

    • public

    • default

    • private

    • protected

  7. Click Add next to the Extended Interfaces box and, in the Extended Interfaces Selection window, select the extended interfaces, and then click Add and OK.

  8. Click Finish.

 

Parent topic

Creating Java elements

 

Related tasks

Creating Java packages
Creating top-level Java classes
Creating nested Java classes
Creating top-level Java interfaces