On Thu, 2003-02-13 at 16:46, Ernst Bunders wrote:
> as copied from the apidoc: org.mmbase.bridge.Node
>
> public NodeList getRelatedNodes(NodeManager
> nodeManager,
> java.lang.String role,
> java.lang.String direction)
>
> so getRelatedNodes() is ok.
Mmm, I seam to have overlooked this update to the API (it's there since
1.6) But what do you specify in the direction parameter? From the api
docs:
[ .. ]
Returns all related nodes that have a specific node manager and role.
[ .. ]
Parameters:
nodeManager - the node manager the returned nodes should have
role - the role of the relation
direction - the direction of the relation
Returns:
a list of related nodes
[ .. ]
Now what does this mean? For instance - I want to get all child nodes
from a parent node: do I set direction to "child", "parent", "source" or
"destination" ? Each one is plausible.
By the way; I can understand the renaming of the parameter
"relationmanager" to "role" (which is the NAME of the relationmanager),
but there is no explanation of the word "role" in the docs...
Joost.