org.jrobin.core
Class Util.Xml
java.lang.Object
org.jrobin.core.Util.Xml
- Enclosing class:
- Util
public static class Util.Xml
- extends Object
Various DOM utility functions
Method Summary |
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Util.Xml
public Util.Xml()
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)
throws RrdException
- Throws:
RrdException
hasChildNode
public static boolean hasChildNode(Node parentNode,
String childName)
getChildValue
public static String getChildValue(Node parentNode,
String childName)
throws RrdException
- Throws:
RrdException
getChildValue
public static String getChildValue(Node parentNode,
String childName,
boolean trim)
throws RrdException
- Throws:
RrdException
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)
throws RrdException
- Throws:
RrdException
getValueAsInt
public static int getValueAsInt(Node node)
getChildValueAsLong
public static long getChildValueAsLong(Node parentNode,
String childName)
throws RrdException
- Throws:
RrdException
getValueAsLong
public static long getValueAsLong(Node node)
getChildValueAsDouble
public static double getChildValueAsDouble(Node parentNode,
String childName)
throws RrdException
- Throws:
RrdException
getValueAsDouble
public static double getValueAsDouble(Node node)
getChildValueAsBoolean
public static boolean getChildValueAsBoolean(Node parentNode,
String childName)
throws RrdException
- Throws:
RrdException
getValueAsBoolean
public static boolean getValueAsBoolean(Node node)
getRootElement
public static Element getRootElement(InputSource inputSource)
throws RrdException,
IOException
- Throws:
RrdException
IOException
getRootElement
public static Element getRootElement(String xmlString)
throws RrdException,
IOException
- Throws:
RrdException
IOException
getRootElement
public static Element getRootElement(File xmlFile)
throws RrdException,
IOException
- Throws:
RrdException
IOException
Copyright © 2003-2007. All Rights Reserved.