Creating top-level Java interfaces in domain modeling class diagrams

You can use domain modeling class diagrams to create Java™ interfaces that are not enclosed in other types (top-level interfaces) Java application code.

Before you begin

You must have a domain modeling class diagram open.


  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.