Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [QVTOM] Borland's contribution: Exposing the QVT program to model (XMI)
[QVTOM] Borland's contribution: Exposing the QVT program to model (XMI) [message #61981] Wed, 19 September 2007 08:32 Go to next message
Alfons Laarman is currently offline Alfons LaarmanFriend
Messages: 35
Registered: July 2009
Member
Hello all,

While studying the source code of org.eclipse.m2m.qvt.oml, I noticed
that it does not expose an XMI representation of the QVT code merely an
object representation (AST).
It would be interesting to get the XMI representation of the parsed QVT
code. Is it possible to change the implementation to get an XMI
representation? What kind of changes would it require in the source code?


Best regards,

Alfons Laarman
Re: [QVTOM] Borland's contribution: Exposing the QVT program to model (XMI) [message #62076 is a reply to message #61981] Thu, 20 September 2007 09:16 Go to previous message
Radomil Dvorak is currently offline Radomil DvorakFriend
Messages: 249
Registered: July 2009
Senior Member
Hi Alfons,

Right, access to XMI representation is still not available 'out of the =

box'.
You can access the AST model by loading a *.qvto file as a EMF resource
as there is a special QVT resource factory registered for this file =

extension.
It loads a resource containing the QVT concrete textual syntax.
Once you get access to the model you can use XMI serialization for savin=
g.

Still, when doing so, you would face some issues with dangling reference=
s =

to elements
from environments like dynamic types (collections, tuples) or to other =
=

imported modules.
This is to be solved by =

https://bugs.eclipse.org/bugs/show_bug.cgi?id=3D204085.

Note, that AST created by the parser is not exactly matching the AST mod=
el =

from the QVT spec,
we have to provide an export functionality for this.

Regards,
/Radek


On Wed, 19 Sep 2007 10:32:41 +0200, Alfons Laarman =

<alfons.laarman@obeo.fr> wrote:

> Hello all,
>
> While studying the source code of org.eclipse.m2m.qvt.oml, I noticed =

> that it does not expose an XMI representation of the QVT code merely a=
n =

> object representation (AST).
> It would be interesting to get the XMI representation of the parsed QV=
T =

> code. Is it possible to change the implementation to get an XMI =

> representation? What kind of changes would it require in the source co=
de?
>
>
> Best regards,
>
> Alfons Laarman



-- =

Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Previous Topic:Does reference subpackes operator (::) work?
Next Topic:Nesting classes in corresponding package
Goto Forum:
  


Current Time: Wed Apr 14 18:16:20 GMT 2021

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

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

Back to the top