Documentation:Demo:Videos:WritingAGenerator
From SIDE-Labs.org
This document explains how to create a new generator for an existing metamodel. This example uses the data metammodel to generate php code.
Contents |
Step 1 - create a new model
This step shows how to extend SIDE with a new generator based on your technological requirements. This first video explains how to create a new SIDE model. Following videos show the steps to follow to write the generators and the corresponding configuration dialog to use it, in less than 15 minutes.
Step 2 - Write the generator code
This tutorial explains how to create generator's templates corresponding to your requirements. Besides generators provided by BlueXML with SIDE, you may have special technological needs which require you to create a new generator. Generators can be written in any languages, according to your needs and skills, from Acceleo to Xslt or anything else (freemarker, ...).
Step 3 - Bootstrap the java code
This tutorial shows how to create the java class needed to bootstrap generation process from SIDE environment. This Java class is only needed to provide a common way to use generators through the configuration dialog.
Step 4 - Adapt the generator's dialog
This tutorial shows how to prepare the configuration dialog by just indicating a few elements about the technology used for your generator.
