Package org.docx4j.finders
Class TcFinder
java.lang.Object
org.docx4j.TraversalUtil.CallbackImpl
org.docx4j.finders.TcFinder
- All Implemented Interfaces:
TraversalUtil.Callback
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionVisits a node in pre order (before its children have been visited).voidsetTraverseTables(boolean traveseTables) Defaults to false; set this to true unless you don't want to traverse a table (eg a nested table).booleanDecide whether this node's children should be traversed.Methods inherited from class org.docx4j.TraversalUtil.CallbackImpl
getChildren, walkJAXBElements
-
Field Details
-
tcList
-
-
Constructor Details
-
TcFinder
public TcFinder()
-
-
Method Details
-
setTraverseTables
public void setTraverseTables(boolean traveseTables) Defaults to false; set this to true unless you don't want to traverse a table (eg a nested table). NB: If traversing from body level, you'll need to set it to true!- Parameters:
traveseNestedTable-
-
apply
Description copied from class:TraversalUtil.CallbackImplVisits a node in pre order (before its children have been visited). A node is visited only if all its parents have been traversed (TraversalUtil.CallbackImpl.shouldTraverse(Object)).Implementations can have side effects.
- Specified by:
applyin interfaceTraversalUtil.Callback- Specified by:
applyin classTraversalUtil.CallbackImpl
-
shouldTraverse
Description copied from class:TraversalUtil.CallbackImplDecide whether this node's children should be traversed.- Specified by:
shouldTraversein interfaceTraversalUtil.Callback- Overrides:
shouldTraversein classTraversalUtil.CallbackImpl- Returns:
- whether the children of this node should be visited
-