Class BoxUtil


  • public class BoxUtil
    extends Object
    • Constructor Detail

      • BoxUtil

        public BoxUtil()
    • Method Detail

      • getBodyElementOrSomething

        public static Element getBodyElementOrSomething​(Element root)
        Looks at the children of root.
        Returns:
        The body element, last element child of root or root in order of preference.
      • getBodyBoxOrSomething

        public static Box getBodyBoxOrSomething​(Box root)
        Returns:
        body box, last child of root or root in order of preference.
      • getBodyOrNull

        public static Box getBodyOrNull​(Box root)
        Looks at the direct children of root to find one with an element with node name body.