Class Util.Xml

java.lang.Object
org.rrd4j.core.Util.Xml
Enclosing class:
Util

public static class Util.Xml extends Object
Various DOM utility functions.
  • Method Details

    • getChildNodes

      public static Node[] getChildNodes(Node parentNode)
    • getChildNodes

      public static Node[] getChildNodes(Node parentNode, String childName)
    • getFirstChildNode

      public static Node getFirstChildNode(Node parentNode, String childName)
    • hasChildNode

      public static boolean hasChildNode(Node parentNode, String childName)
    • getChildValue

      public static String getChildValue(Node parentNode, String childName)
    • getChildValue

      public static String getChildValue(Node parentNode, String childName, boolean trim)
    • getValue

      public static String getValue(Node node)
    • getValue

      public static String getValue(Node node, boolean trimValue)
    • getChildValueAsInt

      public static int getChildValueAsInt(Node parentNode, String childName)
    • getValueAsInt

      public static int getValueAsInt(Node node)
    • getChildValueAsLong

      public static long getChildValueAsLong(Node parentNode, String childName)
    • getValueAsLong

      public static long getValueAsLong(Node node)
    • getChildValueAsDouble

      public static double getChildValueAsDouble(Node parentNode, String childName)
    • getValueAsDouble

      public static double getValueAsDouble(Node node)
    • getChildValueAsBoolean

      public static boolean getChildValueAsBoolean(Node parentNode, String childName)
    • getValueAsBoolean

      public static boolean getValueAsBoolean(Node node)
    • getRootElement

      public static Element getRootElement(InputSource inputSource) throws IOException
      Throws:
      IOException
    • getRootElement

      public static Element getRootElement(String xmlString) throws IOException
      Throws:
      IOException
    • getRootElement

      public static Element getRootElement(File xmlFile) throws IOException
      Throws:
      IOException