Skip to main content



      Home
Home » Modeling » QVT-OML » Output model into separate files
Output model into separate files [message #1857275] Fri, 27 January 2023 10:20 Go to next message
Eclipse UserFriend
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 10:26 Go to previous messageGo to next message
Eclipse UserFriend
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 14:37 Go to previous message
Eclipse UserFriend
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 Apr 27 08:06:41 EDT 2025

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

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

Back to the top