Package org.rrd4j.core
Class Util.Xml
- java.lang.Object
-
- org.rrd4j.core.Util.Xml
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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(String xmlString)
static Element
getRootElement(InputSource inputSource)
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)
-
-
-
Method Detail
-
getValueAsInt
public static int getValueAsInt(Node node)
-
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
-
-