Creating top-level Java interfaces

You can use Unified Modeling Language (UML) class diagrams to 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 or leave this filed empty if your want the new interface to be created in the default package.
  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.
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 nested interfaces
Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.