Transformer
From JRapid
Transformers are the way all developers can take advantage of the powerful code generator provided by JRapid. A transformer is an XSL transformation that will be applied to your JRapids application's source code.
Any type of text file can be generated: HTML pages, Java files, XML, etc.
For example, the community site provides transformers for generating UML diagrams, JUnit classes, HTML help files, etc.
There are two kinds of transformers: all entities transformers and single entity transformers. UML diagram transformer creates a single file containing a class diagram with all the entities of the application. JUnit class transformer creates a single JUnit for each entity, and places them in the java sources folder of the web application.
Developing Transformers
Transformers are defined through a XSL template considering that the whole source XML is received (in case of all-entities transformers, and in a single call). In case of creating a for-each-entity transformer, it will be called N times, receiving the current entity as another parameter.
An easy way of starting is to have a look at the sample transformers in JRapid community site.
