|[QVT] Traversing relationship links and finding connected elements [message #669752]
||Wed, 11 May 2011 11:57
| Mehrdad Saadatmand
Registered: March 2011
In my source model for transformation, I have two UML class elements that are connected by a Realization relationship (stereotyped using a UML profile). On a class element(object) I want to:
I) find all of its relationships (incoming or outgoing from the current class element) and find the class element on the other end of each relationship
II) Identify the direction of the relationship to know which was the 'source' class and which was the 'target'
I'd be thankful if you guide me how to do this or refer me to some sample codes for traversing the model if you know any.
Powered by FUDForum
. Page generated in 0.09095 seconds