org.olat.core.util.traversal
Class ParentChildMapper

java.lang.Object
  extended by org.olat.core.util.traversal.ParentChildMapper

public class ParentChildMapper
extends java.lang.Object

Description:

Author:
Felix Jost

Constructor Summary
ParentChildMapper()
           
 
Method Summary
 void addRelationship(java.lang.Object parent, java.lang.Object child)
           
 java.util.Set getChildren(java.lang.Object parent)
           
 java.util.Set getParents()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParentChildMapper

public ParentChildMapper()
Method Detail

addRelationship

public void addRelationship(java.lang.Object parent,
                            java.lang.Object child)
Parameters:
parent -
child -

getParents

public java.util.Set getParents()
Returns:
set of parents

getChildren

public java.util.Set getChildren(java.lang.Object parent)
Parameters:
parent -
Returns:
set of children