An MDWorkbench project is a Java project that contains source code and related files for building an MDWorkbench generator or transformator.
It has an associated builder that can incrementally compile source files as they are changed.
An MDWorkbench project contains Java packages, in which you can define:
- Text generation elements (implemented using TGL):
- Text template:
specifies the information to generate in a given file as well as the name of the file.
specifies an isolated text template fragment defined for repetitive tasks.
specifies a group of reusable macros.
- Transformation elements (implemented using MQL):
specifies a group of rules.
specifies a set of procedural expressions to query/update model elements.
- Script elements:
specifies a method dynamically added to a metatype.
specifies a set of metatypes dynamically added to a metamodel.
- Java source files.
Text templates and rules can be combined transparently to allow intuitive and efficient model processing.
Common functionality can be encapsulated in metatypes using scripts.
Complex operations can be realized using Java types and methods.