Package com.itextpdf.tool.xml
Class TagUtils
- java.lang.Object
-
- com.itextpdf.tool.xml.TagUtils
-
public class TagUtils extends java.lang.Object
Utilities that perform operations on tags.
-
-
Constructor Summary
Constructors Constructor Description TagUtils()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TagUtils
getInstance()
Tag
getSibling(Tag t, int i)
Method used for retrieving a sibling of the given tag t.
-
-
-
Field Detail
-
myself
private static final TagUtils myself
-
-
Method Detail
-
getSibling
public Tag getSibling(Tag t, int i) throws NoSiblingException
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
public static TagUtils getInstance()
- Returns:
- singleton instance of TagUtils
-
-