Several transformations are available. This may appear complex but this is not. Actually, you can switch the representation of your meta model from one format to another. If you prefer coding, then you will probably prefer the kmt format (KerMeta text). Otherwise you will design with the reflexive editor and the km files (serialized files).
So transformations give you the ability to adapt the meta model to your preferred point of view : coding view or graphical view.
kmt meta model to km meta model
From a ".kmt" file, you can generate a "km" file more appropriate to design your meta model because it allows you to edit with the reflexive editor and later a graphical editor (We are working on it).
To do that, right click on "MyMetamodel.kmt" and select "Kermeta" and "Compite to Kermeta mode"l. Choose a file name and click on "Finish" (The default name is good). If you chose the default name, then double click on "MyMetamodel.km". Normally it opened the file thanks to the reflexive editor.
![]() | Tip |
|---|---|
| If not, right click on "MyMetamodel.km" and select "Open With" and "Reflexive Editor". |
km meta model to kmt meta model
Because ".km" and ".kmt" files are describing the same meta model, you can transform a ".km" file into a ".kmt file" and vice versa.
Right click on "MyMetamodel.km" file and select "Kermeta" and "Generate Kermeta Source". Choose a name and click on "Finish".
kmt meta model to Ecore meta model
You can generate an Ecore meta model from a ".kmt" file. Right click on "MyMetamodel.kmt" and select "Kermeta" and "Generate Ecore".
Km meta model to Ecore meta model
You can generate an Ecore meta model from a ".km" file. Right click on "MyMetamodel.km" and select "Kermeta" and "Generate Ecore".