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 PdfStructElemfoundElemprivate intfoundIdxprivate intnprivate java.lang.Stringrole
-
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 booleanaccept(IStructureNode node)Checks whether the element should be traversed.PdfStructElemgetFoundElement()voidprocessElement(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: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
public void processElement(IStructureNode elem)
Description copied from interface:ITagTreeIteratorHandlerCalled when the next element is reached during the traversal to process it.- Parameters:
elem- the element to process
-
-