A
Model Transformation Authoring Framework (MTAF)method and apparatus for authoring and providing model-to-model transformations from one domain to another domain is disclosed. Given
a domain and a target domain, at least the given domain having a respective structured hierarchy, the invention
system enables a user to specify a declarative mapping (transformation declarative) between
a domain specific language modeling the given domain and a
modeling language modeling the target domain. The declarative mapping models how the
domain specific language modeling the given domain relates to the
modeling language of the target domain. The
system generates a transformation code implementation of a transformation from the given domain to the target domain. The MTAF provides to the
user design decisions with respect to Specification, Transformation Rules, Rule Organization, Rule Application Control, Source-Target Relationship, Incrementality, and Directionality and Tracing. The generated transformation code is executed at runtime to perform the transformation of the
domain specific language of the given domain to the
modeling language of the target domain. Instances of models of the target domain resulting from the performed transformation at runtime may be output to other model transformations, to JET templates, or may be persisted, merged or chained among other post
processing.