Constructor and Description |
---|
XPathExpression(java.lang.String xpath)
Create an instance of an XPath expression.
|
XPathExpression(java.lang.String xpath,
DefaultNamespace defaultNS)
Create an instance of an XPath expression.
|
Modifier and Type | Method and Description |
---|---|
void |
addNamespaces(java.util.Hashtable<java.lang.String,java.lang.String> newNamespaces) |
java.lang.Object |
evaluate(org.w3c.dom.Document dom,
javax.xml.namespace.QName resultType)
Evaluate the current XPath expression against the DOM, given
by the first parameter.
|
java.lang.String |
getExpression()
This method does what the name suggests.
|
@Guarded public XPathExpression(java.lang.String xpath)
@Guarded public XPathExpression(java.lang.String xpath, DefaultNamespace defaultNS)
public java.lang.String getExpression()
public java.lang.Object evaluate(org.w3c.dom.Document dom, javax.xml.namespace.QName resultType) throws com.pdfunit.errors.PDFUnitEmptyXPathEvaluationException
com.pdfunit.errors.PDFUnitEmptyXPathEvaluationException
public void addNamespaces(java.util.Hashtable<java.lang.String,java.lang.String> newNamespaces)
Copyright (C) PDFUnit.com. See here for license.