Navigability, ends owned by Association, how to relate ends and associated elements [message #588592] |
Tue, 13 February 2007 11:38 |
Thomas Maier Messages: 117 Registered: July 2009 |
Senior Member |
|
|
Hi all,
I am currently trying to update my code regarding the new (as of UML2
2.x) separation of ownership and navigability of association ends. With
UML2 1.x, my classes always owned the ends, so I did not have
non-navigability at all. With UML2 2.x I'd like to implement that and
it seems to me I will have more uniform code when I let the association
always own the ends and turn on/off navigability. Now I wonder how I
can relate the ends (Property objects) to the associated Class objects.
Is there some guarantee that assoc.getRelatedElements(i) "is on the same
side of assoc as" getMembers(i)? Or, put another way, how do I get the
Element-Property-pair of the "left"/one side of the assoc and how of the
"right"/other side? I wonder because I see ordered="false" in the
javadoc for getRelatedElements() and getMembers().
Thanks, Thomas.
|
|
|
Powered by
FUDForum. Page generated in 0.03475 seconds