The
UML-to-Java transformation
generates Java™ classes from the following UML sources:
- UML models
- Packages and their contents
- Non-nested classes and their contents
- Non-nested interfaces and their contents
- Non-nested enumerations
You
can select other elements, but they will not be transformed.
If you select a model or model elements
in the Project Explorer view instead of using the Transformation
Configuration editor, the model or elements that you select override the source
model or elements that you specify in the transformation configuration.Note: If
you enable the reverse transformation, you must specify a model as the transformation
source. The reverse transformation transforms Java source objects into UML objects and
stores these objects in the UML model that you specify.
You can specify a Java project, or a source folder in a Java project,
as the destination for the output of the UML-to-Java transformation.
The options are applied the next time that you run
the transformation.
Note: If you create a new transformation
configuration, you can specify this information on the
Source and
Target page of the New Transformation Configuration wizard.