org.pasoa.query.xpath.jaxen
Class XPathUtilities
java.lang.Object
org.pasoa.query.xpath.jaxen.XPathUtilities
- public class XPathUtilities
- extends Object
A set of utilities for extracting values from DOM documents using XPath.
Method Summary |
static boolean |
resolveBoolean(Element document,
String xpath,
Map namespaces)
|
static Map |
resolveMap(Element document,
String mapsPath,
String keyPath,
String valuePath,
Map namespaces)
|
static List |
resolveNodeSet(Element document,
String xpath,
Map namespaces)
In the XPath specification and here, a node set includes a set of values as well as
a set of nodes. |
static String |
resolveString(Element document,
String xpath,
Map namespaces)
|
static void |
setNodeText(Element document,
String xpath,
String newValue,
Map namespaces)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
resolveMap
public static Map resolveMap(Element document,
String mapsPath,
String keyPath,
String valuePath,
Map namespaces)
throws QueryProblem
- Throws:
QueryProblem
resolveNodeSet
public static List resolveNodeSet(Element document,
String xpath,
Map namespaces)
throws QueryProblem
- In the XPath specification and here, a node set includes a set of values as well as
a set of nodes.
- Throws:
QueryProblem
resolveString
public static String resolveString(Element document,
String xpath,
Map namespaces)
throws QueryProblem
- Throws:
QueryProblem
setNodeText
public static void setNodeText(Element document,
String xpath,
String newValue,
Map namespaces)
throws QueryProblem
- Throws:
QueryProblem
resolveBoolean
public static boolean resolveBoolean(Element document,
String xpath,
Map namespaces)
throws QueryProblem
- Throws:
QueryProblem