[ATL] Transformation UML2MOF [message #28964] |
Wed, 04 April 2007 03:25  |
Eclipse User |
|
|
|
Originally posted by: bch.openbluelab.org
Hi,
I want to transform a XMI file (provide by ArgoUML) to an ecore file or
an uml2 file. The transformation UML2MOF on the website is similar but
many mistakes appears. Have you idea ?
An other question : the meta-models provided must be in KM3 or XMI or
ECORE ? I'm lost...
Thank you.
Benjamin CHEVALLEREAU
www.openbluelab.org
|
|
|
Re: [ATL] Transformation UML2MOF [message #29368 is a reply to message #28964] |
Wed, 04 April 2007 11:29  |
Eclipse User |
|
|
|
Hello,
> An other question : the meta-models provided must be in KM3 or XMI or
> ECORE ? I'm lost...
If you use MDR, then the metamodel should conform to MOF 1.4 and be in a
version of XMI compatible with MDR (typically: 1.2).
If you use EMF, then the metamodel should conform to Ecore and be in XMI
2.0.
You may use KM3 to design your metamodels and then transform them to
either MOF 1.4 or Ecore to use them with MDR or EMF.
> I want to transform a XMI file (provide by ArgoUML) to an ecore file or
> an uml2 file. The transformation UML2MOF on the website is similar but
> many mistakes appears. Have you idea ?
The UML2MOF transformation on the website was designed to work with UML
models generated by Poseidon (which uses MDR internally).
You may use it with either EMF or MDR, but your choice of model handler
will typically be driven by the format of your models. Poseidon saves
models in XMI 1.2, therefore you should use MDR with such models.
The UML metamodel used by ArgoUML may not be compatible with the UML2MOF
transformation as it is written. You may however adapt it (e.g., by
changing the name of the references that have different names).
You will need the metamodel used by ArgoUML to load your models, as it
is very likely to be different from the metamodel used by Poseidon (even
if it is compatible with the transformation, other aspects are likely to
be different).
Best regards,
Frédéric Jouault
|
|
|
Powered by
FUDForum. Page generated in 0.03473 seconds