Applying UML-to-Java transformation profiles

To see a list of potential problems that can occur in the Java™ code that the transformation generates, apply the UML-to-Java 1.4 transformation profile or the UML-to-Java 5.0 transformation profile to the source UML model. After you apply the profile, you can run the model validation feature, or run the transformation. See the Problems view for warnings about invalid model elements.

You must be in the Modeling perspective.

You should not apply more than one UML-to-Java transformation profile to your source model.

To apply a UML-to-Java transformation profile to a source model:

  1. From the Deployed Profile list, select the appropriate profile.
  2. In the Properties view, click the Profiles tab.
  3. On the Profiles page, click Add Profile.
  4. In the Select Profile window, click Deployed Profile.
  5. From the Deployed Profile list, select either UML-to-Java 1.4 transformation or UML-to-Java 5.0 transformation.
  6. Click OK.
  7. Click File > Save.
The next time that you run the model validation feature, or run the UML-to-Java transformation, the Problems view displays warnings about invalid model elements.
Related concepts
UML-to-Java transformations
Related tasks
Running and rerunning UML-to-Java transformations
Related reference
Interpretation of UML elements by UML-to-Java transformations
Related information
Validating UML models and diagrams

Feedback