Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » MoDisco » how to transform .uml to .xmi in modisco
how to transform .uml to .xmi in modisco [message #1031304] Mon, 01 April 2013 10:29 Go to next message
Junfeng Zhao is currently offline Junfeng Zhao
Messages: 9
Registered: April 2013
Junior Member
I extracted .uml file from java project by using modisco, now I want to import the extracted model(.uml) to modelio via .xmi, how can I transform .uml to .xmi? thanks a lot!
Re: how to transform .uml to .xmi in modisco [message #1036678 is a reply to message #1031304] Mon, 08 April 2013 13:27 Go to previous messageGo to next message
Hugo Bruneliere is currently offline Hugo Bruneliere
Messages: 601
Registered: July 2009
Senior Member
Hello,

".xmi" is just the default file extension for models serialized in XMI, but other extension names can also actually concern XMI files.
Notably, files with the ".uml" extension are also XMI files.
However, in the case of MoDisco (and of all the other Eclipse Modeling projects), the handled UML models conform to the UML metamodel as specified in Ecore by the Eclipse UML2 project.
If Modelio relies on another (proprietary or open) implementation of the UML metamodel, you will have to transform your models so that they conform to that specific implementation.
I hope this helps.

Hugo


------------------------------------------
Hugo Bruneliere - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
Re: how to transform .uml to .xmi in modisco [message #1037244 is a reply to message #1036678] Tue, 09 April 2013 06:29 Go to previous messageGo to next message
Junfeng Zhao is currently offline Junfeng Zhao
Messages: 9
Registered: April 2013
Junior Member
Thanks a lot for your answer. I have realized that the exported files with the ".uml" extension are also XMI files.Why can not the XMI file corresponding the standard be imported to other modeling tools now that the XMI file is the interchange standard for UML between modeling tools? Does the interchange failure stir up by incompatibility of xmi version? is it a very heavy workload if i must develop a tool to transform model? thanks again.
Re: how to transform .uml to .xmi in modisco [message #1037303 is a reply to message #1037244] Tue, 09 April 2013 07:54 Go to previous messageGo to next message
Hugo Bruneliere is currently offline Hugo Bruneliere
Messages: 601
Registered: July 2009
Senior Member
XMI is just a (standard) serialization format, what is important is actually the metamodel the models conform to.
If different tools are providing different implementations of the UML metamodel, then they logically cannot directly interoperate.
In that case, writing the transformation building the mapping between the two metamodel implementations/versions should be quite systematic (even it can be verbose).

Hugo


------------------------------------------
Hugo Bruneliere - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
Re: how to transform .uml to .xmi in modisco [message #1043275 is a reply to message #1037303] Wed, 17 April 2013 09:52 Go to previous message
Junfeng Zhao is currently offline Junfeng Zhao
Messages: 9
Registered: April 2013
Junior Member
thank you again. Probably there is some problem with my understand to XMI.I decide to study XMI further now.
Previous Topic:EMF from java? (reverse engineer)
Next Topic:Incremental mode
Goto Forum:
  


Current Time: Sat Aug 23 01:36:30 EDT 2014

Powered by FUDForum. Page generated in 0.01854 seconds