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 Modifier and Type Field Description private PdfStructElem
foundElem
private int
foundIdx
private int
n
private java.lang.String
role
-
Constructor Summary
Constructors Constructor Description RoleFinderHandler(int n, java.lang.String role)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(IStructureNode node)
Checks whether the element should be traversed.PdfStructElem
getFoundElement()
void
processElement(IStructureNode elem)
Called when the next element is reached during the traversal to process it.
-
-
-
Field Detail
-
n
private final int n
-
role
private final java.lang.String role
-
foundIdx
private int foundIdx
-
foundElem
private PdfStructElem foundElem
-
-
Method Detail
-
getFoundElement
public PdfStructElem getFoundElement()
-
accept
public boolean accept(IStructureNode node)
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
public void processElement(IStructureNode elem)
Description copied from interface:ITagTreeIteratorHandler
Called when the next element is reached during the traversal to process it.- Parameters:
elem
- the element to process
-
-