Generating getter and setter methods with the UML-to-EJB transformation

You can specify that the UML-to-EJB transformation generate a field with getter and setter methods for each UML property. If the isLeaf (final) or isReadOnly property is set to true, no setter is generated. If the isDerived property is set to true, the setter implementation is empty.

Before you apply the UML-to-EJB transformation, you should read the information that is available at Modeling > Transform > Configure Transformations. From the Transformations/Configurations list, click UML to EJB, and on the Transformation Description page, select View Transformation Documentation.

You must be in the Modeling perspective.

Generating getter and setter methods with the UML-to-EJB transformation:
  1. Click Modeling > Transform > Configure Transformations.
  2. In the Configure Transformations window, from the Transformations/Configurations list, select a transformation configuration.
  3. Click the Advanced tab.
  4. On the Advanced page, select the Generate getters and setters check box.
  5. Click Apply.
  6. Click Close.
Feedback
(C) Copyright IBM Corporation 2004, 2005. All Rights Reserved.