|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.doolin.util.xml.XPathUtils
public class XPathUtils
XPath utility class. It caches the XPath context so the XPath requests can be more efficient.
| Constructor Summary | |
|---|---|
XPathUtils()
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
evaluateBoolean(Node root,
String path)
Evaluates a boolean from an XPath expression. |
String |
evaluateString(Node root,
String path)
Evaluates a string from an XPath expression. |
NodeList |
selectNodeList(Node root,
String path)
Get a list of node using an XPath expression from a root node. |
Node |
selectSingleNode(Node root,
String path)
Get a single node using an XPath expression from a root node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XPathUtils()
| Method Detail |
|---|
public boolean evaluateBoolean(Node root,
String path)
root - Root node where to evaluate the XPath from.path - XPath expression.
public String evaluateString(Node root,
String path)
root - Root node where to evaluate the XPath from.path - XPath expression.
public NodeList selectNodeList(Node root,
String path)
root - Root node where to evaluate the XPath from.path - XPath expression.
public Node selectSingleNode(Node root,
String path)
root - Root node where to evaluate the XPath from.path - XPath expression.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||