Transformation modules

Transformations are defined in transformation specifications, located in files. A transformation is defined using the keywork textmodule or texttransformation.
A texttransformation defines the name of the module, which can be any name chosen, independent of file name.

It defines the input metamodel in terms of one or more model parameters.

// imports

texttransformation testAnnotations (in uml:"http://www.eclipse.org/uml2/1.0.0/UML")  {

     // variables and constant properties

     // transformation rules

}

The body of a transformation contain rules. Curly brackets may be used to group rules in a transformations, but this is optional.

Multiple transformation parameters

A transformation may have several model parameters, separated by a comma.

texttransformation TransformationWithSeveralMetaModels (in uml:"http://www.eclipse.org/uml2/1.0.0/UML", in ec:"http://www.eclipse.org/emf/2002/Ecore") {
   
}