Package com.itextpdf.tool.xml
Class TagUtils
java.lang.Object
com.itextpdf.tool.xml.TagUtils
Utilities that perform operations on tags.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TagUtils
getSibling
(Tag t, int i) Method used for retrieving a sibling of the given tag t.
-
Field Details
-
myself
-
-
Constructor Details
-
TagUtils
public TagUtils()
-
-
Method Details
-
getSibling
Method used for retrieving a sibling of the given tag t.- Parameters:
t
- tag to find the previous sibling ofi
- int index relative to the one of the given tag. (-i for previous siblings)- Returns:
- the previous sibling
- Throws:
NoSiblingException
- when no previous sibling can be found, because the tag is the first child.
-
getInstance
- Returns:
- singleton instance of TagUtils
-