Skip to main content
Jump to: navigation, search


Revision as of 08:00, 14 June 2006 by (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This page contains a list of problems with hints towards solutions and links to examples.

How do I generate text from models?

There are several possibilies. The solution we detail here uses ATL.

You can specify a query over your model in ATL. An example of this is available in the UML2Java transformation.

The atlanticRaster zoo is also using this technique. It first transforms KM3 metamodels into DOT models with the KM32DOT.atl transformation. It then uses DOT2Text.atl to query a String, which corresponds to the generated DOT code, from the DOT model . Then, the build.xml ant scripts makes use of the <am3.saveModel> task with an ATL extractor pointing to the DOT2Text.atl transformation.

Back to the top