Creating top-level Java interfaces

In UML visualization, you can create Java interfaces that are not enclosed in other types (top-level interfaces).

To create a top-level Java interface:

  1. In the Palette, click Interface and click an empty space inside the class diagram.

  2. In the New Java Interface wizard, in the Source Folder field, specify the source folder for the new interface.

  3. In the Package field, specify the package to contain the new interface. If you want the new interface to be created in the default package, leave this field empty.

  4. Clear the Enclosing type check box.

  5. In the Name field, type a name for the new interface.

  6. Under Modifiers, select either the public or default access modifier.

  7. Click Add beside the Extended Interfaces field.

  8. In the Extended Interfaces Selection window, select the extended interfaces and click Add, and OK.

  9. Click Finish.

 

Parent topic

Creating Java elements

 

Related tasks

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