public class SectionTree extends AbstractTree<Section>
Walker
to traverse the
section tree.Constructor and Description |
---|
SectionTree(Publication pub) |
SectionTree(Publication pub,
boolean ignoreStatus) |
SectionTree(Publication pub,
boolean ignoreStatus,
ObjectLoader pObjectLoader,
RelationLoader pRelationLoader,
Cache<IOHashKey,IOObject> pObjectCache) |
Modifier and Type | Method and Description |
---|---|
int |
getChildCount(Section o)
Returns the number of children that the specified domain object has.
|
Section |
getChildOf(Section o,
int index)
Returns the specified child of the specified domain object.
|
Section |
getParentOf(Section s)
Returns the Parent domain object of the specified domain object.
|
Section |
getRoot()
Returns the root of this tree.
|
forEach, getAncestorView, getAncestorView, getAncestorView, getAncestorView, getNextOf, getPreviousOf, getRecursiveView, getRecursiveView, getRecursiveView, getRecursiveView, getRecursiveView, getRecursiveView, getRecursiveView, getRecursiveView, getView, isRoot, iterator, relationships, walker
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public SectionTree(Publication pub)
public SectionTree(Publication pub, boolean ignoreStatus)
public SectionTree(Publication pub, boolean ignoreStatus, ObjectLoader pObjectLoader, RelationLoader pRelationLoader, Cache<IOHashKey,IOObject> pObjectCache)
public Section getRoot()
Tree
public Section getParentOf(Section s)
Tree
public Section getChildOf(Section o, int index)
Tree
o
- The domain object whose parent hasindex
- The number of the child. The index is zero-based.© 1998- 2018 Stibo DX