|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.muse.util.xml.XPathUtils
public class XPathUtils
XPathUtils is a collection of utility methods related to XPath 1.0. It depends on Apache Xalan.
Field Summary | |
---|---|
static String |
NAMESPACE_URI
The XPath 1.0 namespace URI. |
Constructor Summary | |
---|---|
XPathUtils()
|
Method Summary | |
---|---|
static boolean |
isMatch(Node context,
String xpath)
Evaluates the given XPath as a Boolean expression against the given XML. |
static Node[] |
select(Node context,
String xpath)
Returns the first Node that matches the given XPath expression. |
static Node[] |
selectNodeList(Node context,
String xpath)
Returns a set of all Nodes that match the given XPath expression. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String NAMESPACE_URI
Constructor Detail |
---|
public XPathUtils()
Method Detail |
---|
public static boolean isMatch(Node context, String xpath) throws TransformerException
context
- The node from which to start all XPath evaluations. This
node becomes irrelevant if the expression is an absolute path.xpath
- The XPath expression to evaluate.
TransformerException
- public static Node[] select(Node context, String xpath) throws TransformerException
context
- The node from which to start all XPath evaluations. This
node becomes irrelevant if the expression is an absolute path.xpath
- The XPath expression to evaluate.
TransformerException
- public static Node[] selectNodeList(Node context, String xpath) throws TransformerException
context
- The node from which to start all XPath evaluations. This
node becomes irrelevant if the expression is an absolute path.xpath
- The XPath expression to evaluate.
TransformerException
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |