Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "AM3/Ant Tasks"
(→am3.loadModel) |
(→am3.saveModel) |
||
Line 59: | Line 59: | ||
==am3.saveModel== | ==am3.saveModel== | ||
+ | * Description | ||
This task is used to save a model. | This task is used to save a model. | ||
+ | |||
+ | * Examples | ||
+ | |||
+ | <am3.saveModel model="myXML" path="/test/opop.xml"> | ||
+ | <extractor name="xml" /> | ||
+ | </am3.saveModel> | ||
+ | |||
+ | <am3.saveModel model="news_model" path="/test/news.ecore" /> | ||
+ | |||
+ | <am3.saveModel model="IN" path="/test/MyKM3.km3"> | ||
+ | <extractor name="ebnf"> | ||
+ | <param name="format" value="KM3.tcs"/> | ||
+ | <param name="indentString" value=" "/> | ||
+ | <param name="serializeComments" value="false"/> | ||
+ | </extractor> | ||
+ | </am3.saveModel> | ||
==am3.atl== | ==am3.atl== |
Revision as of 09:32, 17 July 2006
Contents
am3.loadModel
- Description
This task is used to load a model. This model may be a terminal model or a metamodel. The metametamodels are typically not loaded with this task since they come bundled with a model handler.
- Parameters
Attribute | Description | Required | Default value |
---|---|---|---|
name | Name of model in task context | Yes | None |
metamodel | Name of metamodel in task context | Yes | None |
path | Path of file to load | Yes | None |
modelHandler | Model handler of loaded model | No | EMF |
- Parameters specified as nested elements
- Examples
<am3.loadModel modelHandler="EMF" name="News" metamodel="MOF" path="/org.eclipse.am3.zoos.atlantic/News.ecore" />
<am3.loadModel modelHandler="EMF" name="IN" metamodel="KM3" path="/org.eclipse.am3.zoos.atlantic/Amble.km3"> <injector name="ebnf"> <param name="name" value="KM3" /> </injector> </am3.loadModel>
<am3.loadModel name="myXML" metamodel="XML" path="/test/testQuery.xml"> <injector name="xml" /> </am3.loadModel>
am3.saveModel
- Description
This task is used to save a model.
- Examples
<am3.saveModel model="myXML" path="/test/opop.xml"> <extractor name="xml" /> </am3.saveModel>
<am3.saveModel model="news_model" path="/test/news.ecore" />
<am3.saveModel model="IN" path="/test/MyKM3.km3"> <extractor name="ebnf"> <param name="format" value="KM3.tcs"/> <param name="indentString" value=" "/> <param name="serializeComments" value="false"/> </extractor> </am3.saveModel>
am3.atl
The purpose of this task is to execute an ATL transformation. The models used by a transformation are referenced by their IDs as defined at their loading time (see AM3_Ant_Tasks#am3.loadModel).
There is an exception for metametamodels, which are typically already available from the model handler. A metametamodel is referenced by a string composed of a percent character (i.e. '%') followed by the name of the model handler. For instance: '%EMF' refers to Ecore and '%MDR' refers to MOF 1.4.