[QVTo] Multiple output [message #675255] |
Mon, 30 May 2011 19:00  |
Eclipse User |
|
|
|
Is it possible to make a transformation have multiple output files?
For example: I have a model A. For every subelement Item in A, i would like to create a B, and place that in its own file.
Is this possible in QVTo?
modeltype A uses 'http//A';
modeltype B uses 'http//B';
transformation My_A_to_B_Transformation(in a : A, out B);
main() {
// create a file for every B, made from
}
mapping A::Item::itemToB() : B {
name := self.name;
}
|
|
|
|
|
|
Re: [QVTo] Multiple output [message #675672 is a reply to message #675671] |
Wed, 01 June 2011 03:09  |
Eclipse User |
|
|
|
Hi
I think the QVTo specification is sufficiently vague to justify your
favourite interpretation. I don't see why an output should not be a
Sequence(...).
The current Eclipse QVTo implementation is probably rather more limited.
Regards
Ed Willink
On 01/06/2011 07:03, Dennis Hendriks wrote:
> If I'm not mistaken QVTo transformations can have multiple outputs, as
> long as the number of outputs is fixed.
>
> Dennis
>
>
> Ruben Bentein wrote:
>> Is it possible to make a transformation have multiple output files?
>> For example: I have a model A. For every subelement Item in A, i
>> would like to create a B, and place that in its own file.
>>
>> Is this possible in QVTo?
>>
>>
>> modeltype A uses 'http//A';
>> modeltype B uses 'http//B';
>>
>> transformation My_A_to_B_Transformation(in a : A, out B);
>>
>> main() {
>> // create a file for every B, made from }
>>
>> mapping A::Item::itemToB() : B {
>> name := self.name;
>> }
>>
|
|
|
Powered by
FUDForum. Page generated in 0.32166 seconds