Package org.docx4j.utils
Class AltChunkFinder
java.lang.Object
org.docx4j.TraversalUtil.CallbackImpl
org.docx4j.utils.AltChunkFinder
- All Implemented Interfaces:
TraversalUtil.Callback
public class AltChunkFinder extends TraversalUtil.CallbackImpl
- Since:
- 2.8
- Author:
- jharrop
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AltChunkFinder.LocatedChunk
Track the parent of altChunk. -
Constructor Summary
Constructors Constructor Description AltChunkFinder()
-
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<java.lang.Object>
apply(java.lang.Object o, java.util.List contentList, int index)
java.util.List<AltChunkFinder.LocatedChunk>
getAltChunks()
void
walkJAXBElements(java.lang.Object parent)
-
Constructor Details
-
AltChunkFinder
public AltChunkFinder()
-
-
Method Details
-
apply
public java.util.List<java.lang.Object> apply(java.lang.Object o)Description copied from class:TraversalUtil.CallbackImpl
Visits 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:
apply
in interfaceTraversalUtil.Callback
- Specified by:
apply
in classTraversalUtil.CallbackImpl
-
apply
public java.util.List<java.lang.Object> apply(java.lang.Object o, java.util.List contentList, int index) -
walkJAXBElements
public void walkJAXBElements(java.lang.Object parent)- Specified by:
walkJAXBElements
in interfaceTraversalUtil.Callback
- Overrides:
walkJAXBElements
in classTraversalUtil.CallbackImpl
-
getAltChunks
-