|
|
|
Re: QVT to attach elements as children to a root element [message #1725215 is a reply to message #1725213] |
Tue, 01 March 2016 13:52  |
Eclipse User |
|
|
|
Hi
The distributed UML2RDBMS example creates hierarchy.
Generally if you want something to have a non-null container you need to
assign that non-null container, either by setting a modeled container,
or more commonly by assigning a set of contained children.
Regards
Ed Willink
On 01/03/2016 18:13, Michael Zach wrote:
> Hi Ed,
>
>> If you want a root element then you must model it.
>
> Yes of course.
>
> But I want to (in an MDA like approach) define a platform-independent
> model (PIM) and then use QVT to transform this into a
> platform-specific model (PSM).
>
> First I create a new empty root element in the PSM, copy all
> properties for it over from the root in the PIM (possibly transform
> the values ...). Thats OK.
>
> But then the point is, I can not find a way in QVT how to create other
> new elements in the PSM which I can then attach as sub-elements to the
> root-element. They all end up as root elements.
>
> Does anyone have some example code in QVT where I can see if/how this
> is possible?
>
> Thanks,
> Michael
|
|
|
Powered by
FUDForum. Page generated in 0.04338 seconds