public class TocFinder extends TraversalUtil.CallbackImpl
Constructor and Description |
---|
TocFinder() |
Modifier and Type | Method and Description |
---|---|
List<Object> |
apply(Object o)
Visits a node in pre order (before its children have been visited).
|
List<Object> |
getChildren(Object o) |
SdtBlock |
getTocSDT() |
boolean |
shouldTraverse(Object o)
Decide whether this node's children should be traversed.
|
void |
walkJAXBElements(Object parent) |
public SdtBlock getTocSDT()
public List<Object> apply(Object o)
TraversalUtil.CallbackImpl
TraversalUtil.CallbackImpl.shouldTraverse(Object)
).
Implementations can have side effects.
apply
in interface TraversalUtil.Callback
apply
in class TraversalUtil.CallbackImpl
public void walkJAXBElements(Object parent)
walkJAXBElements
in interface TraversalUtil.Callback
walkJAXBElements
in class TraversalUtil.CallbackImpl
public List<Object> getChildren(Object o)
getChildren
in interface TraversalUtil.Callback
getChildren
in class TraversalUtil.CallbackImpl
public boolean shouldTraverse(Object o)
shouldTraverse
in interface TraversalUtil.Callback
shouldTraverse
in class TraversalUtil.CallbackImpl
Copyright © 2007-2019. All Rights Reserved.