public static class

Util.Xml

extends Object
java.lang.Object
   ↳ org.rrd4j.core.Util.Xml

Class Overview

Various DOM utility functions.

Summary

Public Constructors
Util.Xml()
Public Methods
static Node[] getChildNodes(Node parentNode)
static Node[] getChildNodes(Node parentNode, String childName)
static String getChildValue(Node parentNode, String childName)
static String getChildValue(Node parentNode, String childName, boolean trim)
static boolean getChildValueAsBoolean(Node parentNode, String childName)
static double getChildValueAsDouble(Node parentNode, String childName)
static int getChildValueAsInt(Node parentNode, String childName)
static long getChildValueAsLong(Node parentNode, String childName)
static Node getFirstChildNode(Node parentNode, String childName)
static Element getRootElement(File xmlFile)
static Element getRootElement(InputSource inputSource)
static Element getRootElement(String xmlString)
static String getValue(Node node)
static String getValue(Node node, boolean trimValue)
static boolean getValueAsBoolean(Node node)
static double getValueAsDouble(Node node)
static int getValueAsInt(Node node)
static long getValueAsLong(Node node)
static boolean hasChildNode(Node parentNode, String childName)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Util.Xml ()

Public Methods

public static Node[] getChildNodes (Node parentNode)

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

public static String getChildValue (Node parentNode, String childName)

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

public static boolean getChildValueAsBoolean (Node parentNode, String childName)

public static double getChildValueAsDouble (Node parentNode, String childName)

public static int getChildValueAsInt (Node parentNode, String childName)

public static long getChildValueAsLong (Node parentNode, String childName)

public static Node getFirstChildNode (Node parentNode, String childName)

public static Element getRootElement (File xmlFile)

Throws
IOException

public static Element getRootElement (InputSource inputSource)

Throws
IOException

public static Element getRootElement (String xmlString)

Throws
IOException

public static String getValue (Node node)

public static String getValue (Node node, boolean trimValue)

public static boolean getValueAsBoolean (Node node)

public static double getValueAsDouble (Node node)

public static int getValueAsInt (Node node)

public static long getValueAsLong (Node node)

public static boolean hasChildNode (Node parentNode, String childName)