Transforming Java getter and setter methods into UML operations

You can specify that a transformation transform Java™ getter and setter methods into UML operations. If you do not want to display the UML operations for Java getters and setters in your target UML model when you run the Java-to-UML transformation, do not select this check box.

This option modifies the same transformation property as the Generate getters and setters option in the UML-to-Java transformation. If you select one of the check boxes, it is equivalent to clearing the other. If you do not want to display the UML operations for Java getters and setters in your target UML model when you run the Java-UML transformation, but you want to generate Java getters and setters when if you enable and then run the UML-to-Java transformation, do not select this check box.

To transform Java getter and setter methods into UML operations:

  1. In the Project Explorer view, right-click a transformation configuration file; then click Open.
  2. Click the Java to UML options tab.
  3. On the Java to UML Options page, select the Generate getters and setters check box.
  4. Click File > Save.
The next time that you run the transformation, for each Java getter and setter method in the transformation source, the transformation generates a UML operation in the corresponding UML class.
Note: If you create a new transformation configuration, you can specify this information on the Java to UML options page of the New Transformation Configuration wizard.

Feedback