Package org.docx4j.model.datastorage
Class BindingTraverserCommonImpl
java.lang.Object
org.docx4j.model.datastorage.BindingTraverserCommonImpl
- All Implemented Interfaces:
BindingTraverserInterface
- Direct Known Subclasses:
BindingTraverserNonXSLT,BindingTraverserXSLT
public abstract class BindingTraverserCommonImpl
extends Object
implements BindingTraverserInterface
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSince we are potentially processing multiple parts (ie main document part, headers, footers), we need to be able to pass the number from part to part.voidsetStartingIdForNewBookmarks(AtomicInteger bookmarkId) Provide a way to set the starting bookmark ID number for the purposes of Binding Traverse.abstract ObjecttraverseToBind(JaxbXmlPart part, OpcPackage pkg, Map<String, Xpaths.Xpath> xpathsMap)
-
Field Details
-
bookmarkId
-
-
Constructor Details
-
BindingTraverserCommonImpl
public BindingTraverserCommonImpl()
-
-
Method Details
-
traverseToBind
public abstract Object traverseToBind(JaxbXmlPart part, OpcPackage pkg, Map<String, Xpaths.Xpath> xpathsMap) throws Docx4JException- Specified by:
traverseToBindin interfaceBindingTraverserInterface- Throws:
Docx4JException
-
setStartingIdForNewBookmarks
Description copied from interface:BindingTraverserInterfaceProvide a way to set the starting bookmark ID number for the purposes of Binding Traverse. For efficiency, user code needs to pass this value through from the previous stage (repeats/condition handing). If it isn't, the value will be calculated (less efficient). New bookmarks could be created from XHTML, or renumbered in Flat OPC XML (TODO).- Specified by:
setStartingIdForNewBookmarksin interfaceBindingTraverserInterface
-
getNextBookmarkId
Description copied from interface:BindingTraverserInterfaceSince we are potentially processing multiple parts (ie main document part, headers, footers), we need to be able to pass the number from part to part.- Specified by:
getNextBookmarkIdin interfaceBindingTraverserInterface
-