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 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.
-
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: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
-