com.itextpdf.tool.xml
Class TagUtils

java.lang.Object
  extended by com.itextpdf.tool.xml.TagUtils

public class TagUtils
extends Object

Utilities that perform operations on tags.

Author:
Emiel Ackermann

Constructor Summary
TagUtils()
           
 
Method Summary
static TagUtils getInstance()
           
 Tag getSibling(Tag t, int i)
          Method used for retrieving a sibling of the given tag t.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagUtils

public TagUtils()
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 of
i - 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


Copyright © 2015. All Rights Reserved.