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:
- 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 box, type the name for the new interface.
- Select one of the following access modifiers:
- public
- default
- private
- protected
- 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.
- 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