Package com.itextpdf.tool.xml.util
Class ParentTreeUtil
java.lang.Object
com.itextpdf.tool.xml.util.ParentTreeUtil
Util class for everything related to a ParentTree of a Tag
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetParentTagTree
(Tag tag, List<Tag> tree) creates a parentTree of all parent Tag objects of a given TaggetParentTree
(Tag t) creates a parentTree of all parents of a given Tag
-
Constructor Details
-
ParentTreeUtil
public ParentTreeUtil()
-
-
Method Details
-
getParentTree
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
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 oftree
-- Returns:
- parentTree arrayList
containing the parent tags of Tag t
-