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
Procedure
- In the Palette, click Interface and click an empty space inside the class diagram.
- In the New Java Interface wizard, in the Source Folder field, specify the source folder for the new interface.
- 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.
- Clear the Enclosing type check box.
- In the Name field, type a name for the new interface.
- Under Modifiers, select either the public or default access modifier.
- Click Add beside the Extended Interfaces field.
- In the Extended Interfaces Selection window, select the extended interfaces and click Add, and OK.
- Click Finish.