|
|
|
|
|
|
Re: Can we map two abstract classes? [message #1847583 is a reply to message #1847576] |
Mon, 01 November 2021 19:46 |
Christopher Gerking Messages: 116 Registered: April 2011 |
Senior Member |
|
|
John Henbergs wrote on Mon, 01 November 2021 12:26Is this the simplest way how to make this transformation in QVTo?
It depends on how you define 'simple'. There is no need to use inherits, you can also duplicate the respective code into each mapping. Thereby, you might improve the understandabaility of your transformation but you certainly affect its maintainability.
I see no way to get rid of the disjuncts in your case, but there is something I don't understand. You didn't specify any conditions in your disjunctive mappings, so the disjunction will always execute Map :: Map2Map2 (because it's first), never Map :: Map2Map. Hence you don't need the disjuncts at all.
Kind regards
Christopher
[Updated on: Mon, 01 November 2021 19:46] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.04714 seconds