Package org.docx4j.finders
Class SectPrFinder
java.lang.Object
org.docx4j.TraversalUtil.CallbackImpl
org.docx4j.finders.SectPrFinder
- All Implemented Interfaces:
TraversalUtil.Callback
public class SectPrFinder extends TraversalUtil.CallbackImpl
-
Constructor Summary
Constructors Constructor Description SectPrFinder(MainDocumentPart mdp) -
Method Summary
Modifier and Type Method Description java.util.List<java.lang.Object>apply(java.lang.Object o)Visits a node in pre order (before its children have been visited).java.util.List<SectPr>getOrderedSectPrList()The body level sectPr (if there is one) is at the end of the list.java.util.List<SectPr>getSectPrList()Deprecated.booleanshouldTraverse(java.lang.Object o)Decide whether this node's children should be traversed.
-
Constructor Details
-
Method Details
-
getSectPrList
Deprecated.Note that the body level sectPr (if there is one) is at the start of the list.- Returns:
- the sectPrList
-
getOrderedSectPrList
The body level sectPr (if there is one) is at the end of the list.- Returns:
- the sectPrList
-
apply
public java.util.List<java.lang.Object> apply(java.lang.Object o)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
public boolean shouldTraverse(java.lang.Object o)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
-