Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » convert XMI file TO Java class
convert XMI file TO Java class [message #1060074] Wed, 22 May 2013 18:18 Go to next message
ransou RMG is currently offline ransou RMG
Messages: 15
Registered: February 2013
Junior Member
Hello,
I have just finished succesfully a model transformation and I got as a result an xmi file.I would like now to convert this later(I mean the xmi file resulted) to a java class but I don't know how.
Is there anyone who knows what should I do to lead to this conversion and thank you so much Smile
Re: convert XMI file TO Java class [message #1060128 is a reply to message #1060074] Thu, 23 May 2013 04:43 Go to previous messageGo to next message
ransou RMG is currently offline ransou RMG
Messages: 15
Registered: February 2013
Junior Member
No Message Body
Re: convert XMI file TO Java class [message #1060134 is a reply to message #1060128] Thu, 23 May 2013 05:22 Go to previous messageGo to next message
Hugo Bruneliere is currently offline Hugo Bruneliere
Messages: 469
Registered: July 2009
Senior Member
Hello,

What do you mean by "converting an XMI file to a Java class"?

Your XMI file is actually a model that conforms to a metamodel (in Ecore): first, what is this metamodel?
Then, what (conceptual) mapping do you want to implement between this metamodel and Java?


------------------------------------------
Hugo Bruneliere - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
Re: convert XMI file TO Java class [message #1060137 is a reply to message #1060134] Thu, 23 May 2013 05:31 Go to previous messageGo to next message
ransou RMG is currently offline ransou RMG
Messages: 15
Registered: February 2013
Junior Member
Hello,
After having as result(after doing the transformation) my xmi file which is conforms to a metamodel of course ,I want now to express this file(the xmi file resulted)in a java form. Is it possible?
Re: convert XMI file TO Java class [message #1060140 is a reply to message #1060137] Thu, 23 May 2013 05:38 Go to previous messageGo to next message
ransou RMG is currently offline ransou RMG
Messages: 15
Registered: February 2013
Junior Member
In addition my xmi file conforms to Jade metamodel(Jade which is a plateforme multi-agent).

Re: convert XMI file TO Java class [message #1060153 is a reply to message #1060140] Thu, 23 May 2013 06:54 Go to previous message
Hugo Bruneliere is currently offline Hugo Bruneliere
Messages: 469
Registered: July 2009
Senior Member
So you could for instance build a model transformation from Jade to Java (using the Java metamodel as provided by the MoDisco project, cf. the reference documentation of this project for more info) and then, from the produced Java model, generate the corresponding code (using the Java generator as also provided by the MoDisco project).

------------------------------------------
Hugo Bruneliere - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
Previous Topic:Plugin ATL
Next Topic:XML2XML
Goto Forum:
  


Current Time: Tue May 28 09:22:04 EDT 2013

Powered by FUDForum. Page generated in 0.02047 seconds