Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » QVT-OML » Output model into separate files
Output model into separate files [message #1857275] Fri, 27 January 2023 15:20 Go to next message
Klarise Hund is currently offline Klarise HundFriend
Messages: 25
Registered: October 2022
Junior Member
Hi,

Is it possible with QVTo to generate more than one output file?
For instance, let's say I am using QVTo to transform models conforming to metamodel A into models conforming to metamodel B. I would like for each element in the output model B to be generated and placed into a separate file. Is that possible?

Thanks!
Re: Output model into separate files [message #1857277 is a reply to message #1857275] Fri, 27 January 2023 15:26 Go to previous messageGo to next message
Christopher Gerking is currently offline Christopher GerkingFriend
Messages: 116
Registered: April 2011
Senior Member
Depends on what you mean by "more than one". If it is a fixed number, yes (just use the corresponding number of out extents). But if the number is variable, that's not currently supported.
Re: Output model into separate files [message #1857279 is a reply to message #1857277] Fri, 27 January 2023 19:37 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7670
Registered: July 2009
Senior Member
Technical background:

Issue QVT13-26 adjusted the wording

In 8.2.1.5 replace
Each model parameter refers implicitly to a model participating in the query or transformation.
by
Each model parameter refers implicitly to a model or collection of models participating in the
query or transformation.


This was intended to provide an opportunity to support multiple input models, but has yet to be implemented. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=480982

The corresponding enhancement for multiple output models is more challenging since the command line author may not know how many output models are needed, and so the executing transformation needs a mechanism for specifying the output model name. This cannot be done without giving the execution file-system awareness.
Previous Topic:QVTo transformation with Xtext target models
Next Topic:Different URI
Goto Forum:
  


Current Time: Sun Sep 22 03:20:31 GMT 2024

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

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

Back to the top