Package org.docx4j.model.datastorage
Interface BindingTraverserInterface
- All Known Implementing Classes:
BindingTraverserCommonImpl,BindingTraverserNonXSLT,BindingTraverserXSLT
public interface BindingTraverserInterface
-
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.traverseToBind(JaxbXmlPart part, OpcPackage pkg, Map<String, Xpaths.Xpath> xpathsMap)
-
Method Details
-
traverseToBind
Object traverseToBind(JaxbXmlPart part, OpcPackage pkg, Map<String, Xpaths.Xpath> xpathsMap) throws Docx4JException- Throws:
Docx4JException
-
setStartingIdForNewBookmarks
Provide 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).- Parameters:
bookmarkId-- Since:
- 3.2.1
-
getNextBookmarkId
AtomicInteger getNextBookmarkId()Since 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.- Since:
- 3.2.1
-