[ATL] How can I navigate to find a container or parent of a object? [message #91558] |
Tue, 07 October 2008 14:49  |
Eclipse User |
|
|
|
Originally posted by: guo.mci.sdu.dk
I have two metamodels building in Ecore, and am doing the transformation
using ATL.
How can I navigate to find a container or parent of a object?
For example, in the source metamodel, I have a object called
"Container", it has a sub object called "Child". The relation between
them is aggregation called "getChild", but from the "Child" there has NO
way to get the "Container".
There is another object "ExternalClass", which is associated to the
"Child" object by relation "link".
The question is: How can I get the "Container" from the "ExternalClass"?
By using "ExternalClass.link", I could get the object "Child". How to
get the "Container" next?
Best Regards,
Yu Guo
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03330 seconds