Before you generate the transformation source code, in the Generalize Classes project, examine the contents of the src folder. These packages and files were generated when you created the project; other files are created when you edit the Generalize_Classes.mapping file.
You can incrementally add mapping rules and generate implementations for the mapping rules in a mapping declaration. You do not have to define all mapping rules before you can generate the transformation source code. For example, after you complete this tutorial, you might add mapping rules that create a realization relationship from the implementation class to the interface.
When you generate the transformation source code, for each mapping declaration in the mapping model, the transformation authoring framework generates a Java source file with the name nTransform.java, where n represents the name of a mapping declaration. Collectively, these Java files compose the transformation code. In addition to generating the implementation code for the transformation, the transformation authoring framework also generates code to register the transformation with the transformation service.
To generate and compile the transformation source code:
Review the files in the src/generalize_classes.transforms folder of the project. A Java transform is generated for each mapping declaration in the mapping model. In the MainTransform.java file, the MainTransform method adds an instance of each generated transform in the order that you specify in the Outline view.
You can now configure a runtime workbench.