Java-to-UML transformations

The Java-to-UML transformation transforms Java™ code into UML model elements.

Valid transformation sources

In the transformation configuration, you can select a single Java project as the source of the transformation.

Valid transformation targets

You can specify the following items as a transformation target:
  • Project or folder in the workspace
  • UML model

If you specify a project or folder in the workspace as the transformation target, the transformation creates a new UML model in the container that you specify. The name of the model is JavaUMLModel, and a time stamp is appended to the name to ensure that the model and file name are unique. The time stamp is the system time specified in seconds; for example, JavaUMLModel1164050609968.emx.

If you specify a UML model as the transformation target, the transformation creates a temporary UML model, and compares the temporary model to the target model that you specify.

Comparing and merging transformation output with target UML models

The Java-to-UML transformation uses the comparing and merging functionality to determine the differences between the target model and the temporary model that the transformation generates. When you run the Java-to-UML transformation, the Merge editor displays the differences between the two models. In the Merge editor dialog box, you can select the changes that the transformation merges into the target model.

Integration with team support

The transformation provides integration functionality with CVS, Rational® ClearCase®, and Rational ClearCase LT version control systems, which enables you to automatically check out files or add new files.

Related tasks
Transforming Java code into UML models
Enabling team capabilities
Specifying sources and targets for Java-to-UML transformations
Comparing and merging versions of a model
Related reference
Interpretation of source code by Java-to-UML transformations

Feedback