|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.muse.util.xml.XPathUtils
XPathUtils is a collection of utility methods related to XPath 1.0. It depends on Apache Xalan.
Field Summary | |
---|---|
static java.lang.String |
NAMESPACE_URI
The XPath 1.0 namespace URI. |
Constructor Summary | |
---|---|
XPathUtils()
|
Method Summary | |
---|---|
static boolean |
isMatch(org.w3c.dom.Node context,
java.lang.String xpath)
Evaluates the given XPath as a Boolean expression against the given XML. |
static org.w3c.dom.Node[] |
select(org.w3c.dom.Node context,
java.lang.String xpath)
Returns the first Node that matches the given XPath expression. |
static org.w3c.dom.Node[] |
selectNodeList(org.w3c.dom.Node context,
java.lang.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 java.lang.String NAMESPACE_URI
Constructor Detail |
public XPathUtils()
Method Detail |
public static boolean isMatch(org.w3c.dom.Node context, java.lang.String xpath) throws javax.xml.transform.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.
javax.xml.transform.TransformerException
- public static org.w3c.dom.Node[] select(org.w3c.dom.Node context, java.lang.String xpath) throws javax.xml.transform.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.
javax.xml.transform.TransformerException
- public static org.w3c.dom.Node[] selectNodeList(org.w3c.dom.Node context, java.lang.String xpath) throws javax.xml.transform.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.
javax.xml.transform.TransformerException
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |