Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » QVT-OML » Java model transformation with qvto(Transform a java models)
Java model transformation with qvto [message #1698145] Thu, 11 June 2015 15:00 Go to next message
Gonzalo Bressan Zuber is currently offline Gonzalo Bressan ZuberFriend
Messages: 35
Registered: May 2015
Member
Hi,

i need transform java models (.xmi files) with qvto. All the qvt examples that i seen, establish as MODELTYPE .ecore metamodels (no models) only.

My question is: How do I tell qvt that i'll transform XMI models?

Regards
Re: Java model transformation with qvto [message #1698156 is a reply to message #1698145] Thu, 11 June 2015 16:36 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

I've wondered too, but never really thought it through.

QVTo just transforms conforming model instances, so if you want it to
transform XMI instances, you must write your transformation against the
XMI metamodel and load XMI instances.

If you ensure that your source files are *.xmi, it should just work.

If you want to process a *.xyz file as *.xmi, there is probably a
bug/enhancement that QVTo should recognize the XMI metamodel and
suppress the use of a *.xyz loader.

Regards

Ed Willink


On 11/06/2015 16:00, Gonzalo Bressan Zuber wrote:
> Hi,
>
> i need transform java models (.xmi files) with qvto. All the qvt
> examples that i seen, establish as MODELTYPE .ecore metamodels (no
> models) only.
>
> My question is: How do I tell qvt that i'll transform XMI models?
>
> Regards
Re: Java model transformation with qvto [message #1698181 is a reply to message #1698156] Thu, 11 June 2015 21:09 Go to previous messageGo to next message
Gonzalo Bressan Zuber is currently offline Gonzalo Bressan ZuberFriend
Messages: 35
Registered: May 2015
Member
Hi Ed,

Basically that i need is define a java program, then generate a model for it qhit MoDisco Discoverer, transform it and finally obtain the java program again.

I would make the transformation with QVTo.

The MoDisco Java Discoverer generates a .XMI File.

What is the most appropriate way to do this according to you?

Regards.

Re: Java model transformation with qvto [message #1698214 is a reply to message #1698181] Fri, 12 June 2015 08:39 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

I'm struggling a bit with your typos, but I'm afraid that if you did not
understand my previous answer you should look at tutorials to give you
familiarity with the technology space.

Regards

Ed Willink

On 11/06/2015 22:09, Gonzalo Bressan Zuber wrote:
> Hi Ed,
>
> Basically that i need is define a java program, then generate a model
> for it qhit MoDisco Discoverer, transform it and finally obtain the
> java program again.
>
> I would make the transformation with QVTo.
>
> The MoDisco Java Discoverer generates a .XMI File.
>
> What is the most appropriate way to do this according to you?
>
> Regards.
>
>
Previous Topic:Call qvto in Java : applyStereotype() does not work
Next Topic:java M2MT
Goto Forum:
  


Current Time: Tue Apr 16 08:33:46 GMT 2024

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

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

Back to the top