com.armatiek.infofuze.utils
Class XPathUtils

java.lang.Object
  extended by com.armatiek.infofuze.utils.XPathUtils

public class XPathUtils
extends java.lang.Object

Author:
Maarten Kroon

Constructor Summary
XPathUtils()
           
 
Method Summary
static boolean getBooleanResult(javax.xml.xpath.XPath xpath, java.lang.String expression, org.w3c.dom.Node contextNode)
           
static boolean getBooleanValue(javax.xml.xpath.XPath xpath, java.lang.String expression, org.w3c.dom.Node contextNode, boolean defaultValue)
           
static char getCharValue(javax.xml.xpath.XPath xpath, java.lang.String expression, org.w3c.dom.Node contextNode, char defaultValue)
           
static int getIntegerValue(javax.xml.xpath.XPath xpath, java.lang.String expression, org.w3c.dom.Node contextNode, int defaultValue)
           
static long getLongValue(javax.xml.xpath.XPath xpath, java.lang.String expression, org.w3c.dom.Node contextNode, long defaultValue)
           
static java.lang.String getRequiredStringValue(javax.xml.xpath.XPath xpath, java.lang.String expression, org.w3c.dom.Node contextNode)
           
static java.lang.String getStringValue(javax.xml.xpath.XPath xpath, java.lang.String expression, org.w3c.dom.Node contextNode, java.lang.String defaultValue)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPathUtils

public XPathUtils()
Method Detail

getStringValue

public static java.lang.String getStringValue(javax.xml.xpath.XPath xpath,
                                              java.lang.String expression,
                                              org.w3c.dom.Node contextNode,
                                              java.lang.String defaultValue)

getCharValue

public static char getCharValue(javax.xml.xpath.XPath xpath,
                                java.lang.String expression,
                                org.w3c.dom.Node contextNode,
                                char defaultValue)

getRequiredStringValue

public static java.lang.String getRequiredStringValue(javax.xml.xpath.XPath xpath,
                                                      java.lang.String expression,
                                                      org.w3c.dom.Node contextNode)

getBooleanValue

public static boolean getBooleanValue(javax.xml.xpath.XPath xpath,
                                      java.lang.String expression,
                                      org.w3c.dom.Node contextNode,
                                      boolean defaultValue)

getIntegerValue

public static int getIntegerValue(javax.xml.xpath.XPath xpath,
                                  java.lang.String expression,
                                  org.w3c.dom.Node contextNode,
                                  int defaultValue)

getLongValue

public static long getLongValue(javax.xml.xpath.XPath xpath,
                                java.lang.String expression,
                                org.w3c.dom.Node contextNode,
                                long defaultValue)

getBooleanResult

public static boolean getBooleanResult(javax.xml.xpath.XPath xpath,
                                       java.lang.String expression,
                                       org.w3c.dom.Node contextNode)