[ATL] How to get the elements and put them in a target element [message #536471] |
Fri, 28 May 2010 08:15  |
Eclipse User |
|
|
|
Hi all,
I have the following problem:
My source metamodel named MMS has 2 classes named ObjPere and ObjFils respectively without relationship like this:
MMS: <objPere name="1"> </objPere>
<objFils name="21" type="a"> </objFils>
<objFils name="22" type="b"> </objFils>
My target metamodel named MMT has 2 classes (father and child) with composition relationship like this:
MMT: <father name="..">
<children>
<child name="..." type="a"> </child>
<child name="..." type="b"> </child>
.....
.....
</children>
</father>
children is the name of relationship (composition) between father and child, note that father contain 0 or * child.
I want make the following transformation:
1- MMT!father.name = MMS!objPere.name
2- MMT!children = List of MMT!child where child.name = MMS!objFils.name and child.type = MMS!objFils.type
Note I want also regroup the child elements into element children in a result transformation conforming to MMT metamodel.
Thanks for your help,
forgive my poor english
[Updated on: Fri, 28 May 2010 15:22] by Moderator
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04581 seconds