protected static class AgendaInquiryController.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:
Examples:
Modifier and Type | Method and Description |
---|---|
AgendaItemBo |
getChild(AgendaItemBo parent) |
void |
setChild(AgendaItemBo parent,
AgendaItemBo child)
Sets the child reference and the child id
|
public AgendaItemBo getChild(AgendaItemBo parent)
public void setChild(AgendaItemBo parent, AgendaItemBo child)
Copyright © 2005-2015 The Kuali Foundation. All Rights Reserved.