Package org.jrobin.core
Class Util.Xml
- java.lang.Object
-
- org.jrobin.core.Util.Xml
-
-
Constructor Summary
Constructors Constructor Description 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 StringgetChildValue(Node parentNode, String childName)static StringgetChildValue(Node parentNode, String childName, boolean trim)static booleangetChildValueAsBoolean(Node parentNode, String childName)static doublegetChildValueAsDouble(Node parentNode, String childName)static intgetChildValueAsInt(Node parentNode, String childName)static longgetChildValueAsLong(Node parentNode, String childName)static NodegetFirstChildNode(Node parentNode, String childName)static ElementgetRootElement(File xmlFile)static ElementgetRootElement(String xmlString)static ElementgetRootElement(InputSource inputSource)static StringgetValue(Node node)static StringgetValue(Node node, boolean trimValue)static booleangetValueAsBoolean(Node node)static doublegetValueAsDouble(Node node)static intgetValueAsInt(Node node)static longgetValueAsLong(Node node)static booleanhasChildNode(Node parentNode, String childName)
-
-
-
Method Detail
-
getFirstChildNode
public static Node getFirstChildNode(Node parentNode, String childName) throws RrdException
- Throws:
RrdException
-
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
-
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:
RrdExceptionIOException
-
getRootElement
public static Element getRootElement(String xmlString) throws RrdException, IOException
- Throws:
RrdExceptionIOException
-
getRootElement
public static Element getRootElement(File xmlFile) throws RrdException, IOException
- Throws:
RrdExceptionIOException
-
-