Class BaseDocumentWalker
java.lang.Object
org.wickedsource.docxstamper.util.walk.DocumentWalker
org.wickedsource.docxstamper.util.walk.BaseDocumentWalker
- Direct Known Subclasses:
ParagraphResolverDocumentWalker
This class is an abstract implementation of the
DocumentWalker interface.
It implements all methods of the interface and does nothing in the individual methods.
This makes it easier to implement a custom DocumentWalker because the implementor
only has to implement the methods that are of interest.- Version:
- 1.6.6
- Author:
- Joseph Verron
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBaseDocumentWalker(org.docx4j.wml.ContentAccessor contentAccessor) Creates a new document walker that walks through the given document. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidonCommentRangeEnd(org.docx4j.wml.CommentRangeEnd commentRangeEnd) This method is called for everyCommentRangeEndelement in the document.protected voidonCommentRangeStart(org.docx4j.wml.CommentRangeStart commentRangeStart) This method is called for everyCommentRangeStartelement in the document.protected voidonCommentReference(org.docx4j.wml.R.CommentReference commentReference) This method is called for everyR.CommentReferenceelement in the document.protected voidonParagraph(org.docx4j.wml.P paragraph) This method is called for everyPelement in the document.protected voidonRun(org.docx4j.wml.R run) This method is called for everyRelement in the document.protected voidonTable(org.docx4j.wml.Tbl table) This method is called for everyTblelement in the document.protected voidonTableCell(org.docx4j.wml.Tc tableCell) This method is called for everyTcelement in the document.protected voidonTableRow(org.docx4j.wml.Tr tableRow) This method is called for everyTrelement in the document.Methods inherited from class org.wickedsource.docxstamper.util.walk.DocumentWalker
walk
-
Constructor Details
-
BaseDocumentWalker
protected BaseDocumentWalker(org.docx4j.wml.ContentAccessor contentAccessor) Creates a new document walker that walks through the given document.- Parameters:
contentAccessor- the document to walk through.
-
-
Method Details
-
onParagraph
protected void onParagraph(org.docx4j.wml.P paragraph) This method is called for everyPelement in the document.- Specified by:
onParagraphin classDocumentWalker- Parameters:
paragraph- thePelement to process.
-
onRun
protected void onRun(org.docx4j.wml.R run) This method is called for everyRelement in the document.- Specified by:
onRunin classDocumentWalker- Parameters:
run- theRelement to process.
-
onTable
protected void onTable(org.docx4j.wml.Tbl table) This method is called for everyTblelement in the document.- Specified by:
onTablein classDocumentWalker- Parameters:
table- theTblelement to process.
-
onTableCell
protected void onTableCell(org.docx4j.wml.Tc tableCell) This method is called for everyTcelement in the document.- Specified by:
onTableCellin classDocumentWalker- Parameters:
tableCell- theTcelement to process.
-
onTableRow
protected void onTableRow(org.docx4j.wml.Tr tableRow) This method is called for everyTrelement in the document.- Specified by:
onTableRowin classDocumentWalker- Parameters:
tableRow- theTrelement to process.
-
onCommentRangeStart
protected void onCommentRangeStart(org.docx4j.wml.CommentRangeStart commentRangeStart) This method is called for everyCommentRangeStartelement in the document.- Specified by:
onCommentRangeStartin classDocumentWalker- Parameters:
commentRangeStart- theCommentRangeStartelement to process.
-
onCommentRangeEnd
protected void onCommentRangeEnd(org.docx4j.wml.CommentRangeEnd commentRangeEnd) This method is called for everyCommentRangeEndelement in the document.- Specified by:
onCommentRangeEndin classDocumentWalker- Parameters:
commentRangeEnd- theCommentRangeEndelement to process.
-
onCommentReference
protected void onCommentReference(org.docx4j.wml.R.CommentReference commentReference) This method is called for everyR.CommentReferenceelement in the document.- Specified by:
onCommentReferencein classDocumentWalker- Parameters:
commentReference- theR.CommentReferenceelement to process.
-