I think what obviously is missing in the bridge is

node.getRelations(relationTypeName, otherManager, searchDir);

This can hide a lot of terrible code.

Now, the other node is:
Node otherNode = relation.getSource() == node ? relation.getDestionation() | 
relation.getSource();

which is simple enough?

We could even wrap this further

Node otherNode = relation.getOtherNode(node);

 Michiel


-- 
mihxil'  Michiel Meeuwissen 
Mediapark C101 Hilversum  
+31 (0)35 6772979
[]() 

Reply via email to