|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectXPath
public class XPath
Encapsulates the compilation and matching of an XPath expression Deals internally with exceptions that can be raised at compilation and evaluation
| Field Summary | |
|---|---|
private java.lang.String |
expr
|
private java.lang.String |
xPathProvider
|
private javax.xml.xpath.XPathExpression |
xpexpr
|
| Constructor Summary | |
|---|---|
XPath(java.lang.String expr,
NamespaceContext context)
Compile the XPath expression |
|
| Method Summary | |
|---|---|
java.lang.String |
getXPathProvider()
Return the name of the XPath processor |
static void |
main(java.lang.String[] args)
For Unit Testing |
org.w3c.dom.NodeList |
matches(org.w3c.dom.Node node)
Check if the XPath matches the node and returns the NodeList of the matching |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private javax.xml.xpath.XPathExpression xpexpr
private java.lang.String expr
private java.lang.String xPathProvider
| Constructor Detail |
|---|
XPath(java.lang.String expr,
NamespaceContext context)
throws javax.xml.xpath.XPathFactoryConfigurationException
expr - String containing the XPath expression to compilecontext - Namespace context of the expression
javax.xml.xpath.XPathFactoryConfigurationException| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getXPathProvider()
public org.w3c.dom.NodeList matches(org.w3c.dom.Node node)
node - starting node
public static void main(java.lang.String[] args)
args -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||