Package org.apache.xml.security.utils
Class JDKXPathAPI
- java.lang.Object
-
- org.apache.xml.security.utils.JDKXPathAPI
-
-
Field Summary
Fields Modifier and Type Field Description private javax.xml.xpath.XPathExpressionxpathExpressionprivate java.lang.StringxpathStrprivate javax.xml.xpath.XPathFactoryxpf
-
Constructor Summary
Constructors Constructor Description JDKXPathAPI()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clear any context information from this objectbooleanevaluate(org.w3c.dom.Node contextNode, org.w3c.dom.Node xpathnode, java.lang.String str, org.w3c.dom.Node namespaceNode)Evaluate an XPath string and return true if the output is to be included or not.org.w3c.dom.NodeListselectNodeList(org.w3c.dom.Node contextNode, org.w3c.dom.Node xpathnode, java.lang.String str, org.w3c.dom.Node namespaceNode)Use an XPath string to select a nodelist.
-
-
-
Method Detail
-
selectNodeList
public org.w3c.dom.NodeList selectNodeList(org.w3c.dom.Node contextNode, org.w3c.dom.Node xpathnode, java.lang.String str, org.w3c.dom.Node namespaceNode) throws javax.xml.transform.TransformerExceptionUse an XPath string to select a nodelist. XPath namespace prefixes are resolved from the namespaceNode.- Specified by:
selectNodeListin interfaceXPathAPI- Parameters:
contextNode- The node to start searching from.xpathnode-str-namespaceNode- The node from which prefixes in the XPath will be resolved to namespaces.- Returns:
- A NodeIterator, should never be null.
- Throws:
javax.xml.transform.TransformerException
-
evaluate
public boolean evaluate(org.w3c.dom.Node contextNode, org.w3c.dom.Node xpathnode, java.lang.String str, org.w3c.dom.Node namespaceNode) throws javax.xml.transform.TransformerExceptionEvaluate an XPath string and return true if the output is to be included or not.
-
-