Class BoxUtil


  • public class BoxUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      BoxUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Box getBodyBoxOrSomething​(Box root)  
      static org.w3c.dom.Element getBodyElementOrSomething​(org.w3c.dom.Element root)
      Looks at the children of root.
      static Box getBodyOrNull​(Box root)
      Looks at the direct children of root to find one with an element with node name body.
      private static boolean isBody​(Box child)  
      • Methods inherited from class java.lang.Object

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

      • BoxUtil

        public BoxUtil()
    • Method Detail

      • getBodyElementOrSomething

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

        private static boolean isBody​(Box child)
      • 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.