Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » Replace input ecore model by code
Replace input ecore model by code [message #1007172] Mon, 04 February 2013 17:20 Go to next message
Nicolas Fauvergue is currently offline Nicolas Fauvergue
Messages: 5
Registered: January 2013
Junior Member
Hello everybody,

I just have a question :

Is that possible to use ATL without input ecore model ?

I explain :

I have my ecore model used by ATL file, and i don't want to insert my eocre file input the final jar. So, is that possible to replace follwing code :

final IReferenceModel objectMetamodel = factory.newReferenceModel();
injector.inject(objectMetamodel , getMetamodelUri("object"));
injector.inject(inModel, inModelPath);
in5Model = factory.newModel(objectMetamodel);


by other code generated by a "genmodel" file with EMF ?


Thank you in advance for your answer.

Best regards,

Nicolas
Re: Replace input ecore model by code [message #1007245 is a reply to message #1007172] Tue, 05 February 2013 09:07 Go to previous message
Hugo Bruneliere is currently offline Hugo Bruneliere
Messages: 604
Registered: July 2009
Senior Member
Hello,

Of course you are not forced to use metamodels/models serialized in XMI to run an ATL transformation.
You can load/save any metamodel/model that is available in memory (i.e. in the EMF Registry) using its URI.
You can take a look to the ATL Core API doc to get more insights on this.

Hugo


------------------------------------------
Hugo Bruneliere - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
Previous Topic:output structured model by called rules
Next Topic:ATL Refining Using the API
Goto Forum:
  


Current Time: Sun Sep 21 00:03:40 GMT 2014

Powered by FUDForum. Page generated in 0.08966 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software