org.kuali.rice.krms.impl.ui
Class AgendaEditorController.AgendaItemChildAccessor

java.lang.Object
  extended by org.kuali.rice.krms.impl.ui.AgendaEditorController.AgendaItemChildAccessor
Enclosing class:
AgendaEditorController

protected static class AgendaEditorController.AgendaItemChildAccessor
extends Object

This class abstracts getting and setting a child of an AgendaItemBo, making some recursive operations require less boiler plate.

The word 'child' in AgendaItemChildAccessor means child in the strict data structures sense, in that the instance passed in holds a reference to some other node (or null). However, when discussing the agenda tree and algorithms for manipulating it, the meaning of 'child' is somewhat different, and there are notions of 'sibling' and 'cousin' that are tossed about too. It's probably worth explaining that somewhat here:

General principals of relationships when talking about the agenda tree:

This diagram of an agenda tree and the following examples seek to illustrate these principals:

Example Agenda Items

Examples:


Method Summary
 AgendaItemBo getChild(AgendaItemBo parent)
           
 void setChild(AgendaItemBo parent, AgendaItemBo child)
          Sets the child reference and the child id
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getChild

public AgendaItemBo getChild(AgendaItemBo parent)
Returns:
the referenced child

setChild

public void setChild(AgendaItemBo parent,
                     AgendaItemBo child)
Sets the child reference and the child id



Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.