Class TagTreeIteratorFlusher
java.lang.Object
com.itextpdf.kernel.pdf.tagutils.AbstractAvoidDuplicatesTagTreeIteratorHandler
com.itextpdf.kernel.pdf.tagutils.TagTreeIteratorFlusher
- All Implemented Interfaces:
ITagTreeIteratorHandler
Class that flushes struct elements while iterating over struct tree root with
TagTreeIterator.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaccept(IStructureNode node) Checks whether the element should be traversed.voidprocessElement(IStructureNode elem) Called when the next element is reached during the traversal to process it.setWaitingTags(Set<PdfDictionary> waitingTags) Sets waiting tags forTagTreeIteratorFlusher.
-
Field Details
-
waitingTags
-
waitingTagsUsed
private boolean waitingTagsUsed
-
-
Constructor Details
-
TagTreeIteratorFlusher
public TagTreeIteratorFlusher()Creates a new instance ofTagTreeIteratorFlusher.
-
-
Method Details
-
setWaitingTags
Sets waiting tags forTagTreeIteratorFlusher.- Parameters:
waitingTags- waiting tags to set- Returns:
- this same
TagTreeIteratorFlusherinstance
-
accept
Description copied from interface:ITagTreeIteratorHandlerChecks whether the element should be traversed.- Specified by:
acceptin interfaceITagTreeIteratorHandler- Overrides:
acceptin classAbstractAvoidDuplicatesTagTreeIteratorHandler- Parameters:
node- the element to check- Returns:
trueif the iteration should be continued,falseotherwise
-
processElement
Description copied from interface:ITagTreeIteratorHandlerCalled when the next element is reached during the traversal to process it.- Parameters:
elem- the element to process
-