Class ParentTreeUtil

java.lang.Object
com.itextpdf.tool.xml.util.ParentTreeUtil

public class ParentTreeUtil extends Object
Util class for everything related to a ParentTree of a Tag
  • Constructor Details

    • ParentTreeUtil

      public ParentTreeUtil()
  • Method Details

    • getParentTree

      public List<String> getParentTree(Tag t)
      creates a parentTree of all parents of a given Tag
      Parameters:
      t - Tag the tag where you want to know it's parentTree of
      Returns:
      parentTree a arrayList containing the parents of Tag t
    • getParentTagTree

      public List<Tag> getParentTagTree(Tag tag, List<Tag> tree)
      creates a parentTree of all parent Tag objects of a given Tag
      Parameters:
      tag - Tag the tag where you want to know it's parentTree of
      tree -
      Returns:
      parentTree arrayList containing the parent tags of Tag t