Skip to main content


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 22:18 Go to next message
ransou RMG is currently offline ransou RMGFriend
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 08:43 Go to previous messageGo to next message
ransou RMG is currently offline ransou RMGFriend
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 09:22 Go to previous messageGo to next message
Hugo Bruneliere is currently offline Hugo BruneliereFriend
Messages: 674
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, PhD
NaoMod team (IMT Atlantique & LS2N-CNRS)
Nantes - France
--------------------------------------------------------
Re: convert XMI file TO Java class [message #1060137 is a reply to message #1060134] Thu, 23 May 2013 09:31 Go to previous messageGo to next message
ransou RMG is currently offline ransou RMGFriend
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 09:38 Go to previous messageGo to next message
ransou RMG is currently offline ransou RMGFriend
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 10:54 Go to previous messageGo to next message
Hugo Bruneliere is currently offline Hugo BruneliereFriend
Messages: 674
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, PhD
NaoMod team (IMT Atlantique & LS2N-CNRS)
Nantes - France
--------------------------------------------------------
Re: convert XMI file TO Java class [message #1164685 is a reply to message #1060153] Thu, 31 October 2013 21:23 Go to previous message
aurel pestell is currently offline aurel pestellFriend
Messages: 90
Registered: October 2013
Location: Sweden
Member
I think he can also you the JvmType ecore metamodel which can be much simpler to use ?
Previous Topic:ATL Plug-in dont run
Next Topic:run successive ATL transformations with java
Goto Forum:
  


Current Time: Thu Apr 25 08:27:52 GMT 2024

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

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

Back to the top