Creating nested interfaces

You can use Unified Modeling Language (UML) class diagrams to create Java™ interfaces that are enclosed in other types (nested interfaces).

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 field, type the name for the new interface.
  6. Select an access modifier (public, default, private, or protected).
  7. Click Add next to the Extended Interfaces box and, in the Extended Interfaces Selection window, select the extended interfaces; then click Add and OK.
  8. Click Finish.
Related concepts
Classes
Classifiers
Related tasks
Creating Java packages
Adding classes and interfaces to Java packages
Creating top-level Java classes
Creating nested Java classes
Creating top-level Java interfaces
Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.