Package com.itextpdf.kernel.pdf.tagutils
Class TagTreePointer.RoleFinderHandler
java.lang.Object
com.itextpdf.kernel.pdf.tagutils.AbstractAvoidDuplicatesTagTreeIteratorHandler
com.itextpdf.kernel.pdf.tagutils.TagTreePointer.RoleFinderHandler
- All Implemented Interfaces:
ITagTreeIteratorHandler
- Enclosing class:
TagTreePointer
private static class TagTreePointer.RoleFinderHandler
extends AbstractAvoidDuplicatesTagTreeIteratorHandler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
accept
(IStructureNode node) Checks whether the element should be traversed.void
processElement
(IStructureNode elem) Called when the next element is reached during the traversal to process it.
-
Field Details
-
n
private final int n -
role
-
foundIdx
private int foundIdx -
foundElem
-
-
Constructor Details
-
RoleFinderHandler
RoleFinderHandler(int n, String role)
-
-
Method Details
-
getFoundElement
-
accept
Description copied from interface:ITagTreeIteratorHandler
Checks whether the element should be traversed.- Specified by:
accept
in interfaceITagTreeIteratorHandler
- Overrides:
accept
in classAbstractAvoidDuplicatesTagTreeIteratorHandler
- Parameters:
node
- the element to check- Returns:
true
if the iteration should be continued,false
otherwise
-
processElement
Description copied from interface:ITagTreeIteratorHandler
Called when the next element is reached during the traversal to process it.- Parameters:
elem
- the element to process
-