Class ParentTreeUtil


  • public class ParentTreeUtil
    extends java.lang.Object
    Util class for everything related to a ParentTree of a Tag
    • Constructor Summary

      Constructors 
      Constructor Description
      ParentTreeUtil()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<Tag> getParentTagTree​(Tag tag, java.util.List<Tag> tree)
      creates a parentTree of all parent Tag objects of a given Tag
      java.util.List<java.lang.String> getParentTree​(Tag t)
      creates a parentTree of all parents of a given Tag
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ParentTreeUtil

        public ParentTreeUtil()
    • Method Detail

      • getParentTree

        public java.util.List<java.lang.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 java.util.List<Tag> getParentTagTree​(Tag tag,
                                                    java.util.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