Creating nested Java classes

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

To create a nested Java class:
  1. In the Palette, click Class and click an empty space inside the class diagram.
  2. In the New Java Class wizard, in the Source Folder field, specify the source folder for the new class.
  3. Select the Enclosing type check box and type a name of the enclosing type in the field.
  4. In the Name field, type a name for the new class.
  5. Under Modifiers, select access modifiers for the new class.
  6. In the Superclass field, specify the superclass for the new class.
  7. Click Add.
  8. In the Implemented Interfaces Selection window, select the interfaces for the new class to implement and click OK.
  9. Select method stubs to create in the new class.
  10. Click Finish.
Related concepts
Classes
Classifiers
Related tasks
Creating Java packages
Adding classes and interfaces to Java packages
Creating top-level Java classes
Creating top-level Java interfaces
Creating nested interfaces
Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.