Home > Model Transformation > Model-to-Text (M2T) > OOMEGA Generator
OOMEGA Generator is our JSP-based generator. This chapter will guide you through the usage of that product. First of all you should be familiar with the code generation process, which basically consists of two steps.
- Coding and compilation of templates
Coding templates is very straightforward: the syntax of the template language is JSP, Java Server Pages. The class org.oomega.generator.JGenC takes care of template compilation. It transforms one or more template files to executable Java files, which will be used in the second step of code generation. Obviously, to finish the template compilation process, these generated Java files are compiled with the standard Java compiler afterwards. The resulting classes are executable representations of human readable templates.
- Generation and compilation of source code
The class org.oomega.generator.JGen takes care of source code generation. During the actual generation of source code, model information is fed into executable templates and so a series of source code files is created.
The upcoming chapters are a step-by-step guide to template programming. At first you create template files. Afterwards you code the templates and compile them. Finally you use the compiled template classes to generate source code.
Next chapter: Create Templates