APIdia Launch Partner
Top Description Methods
com.sun.org.apache.xml.internal.security.utils

public Interface XPathAPI

Known Direct Implementers
com.sun.org.apache.xml.internal.security.utils.JDKXPathAPI, com.sun.org.apache.xml.internal.security.utils.XalanXPathAPI
Imports
javax.xml.transform.TransformerException, org.w3c.dom.Node, .NodeList

An interface to abstract XPath evaluation

Method Summary

Modifier and TypeMethod and Description
public void
clear()

Clear any context information from this object

public boolean
evaluate(Node
The node to start searching from.
contextNode
,
Node
The XPath node
xpathnode
,
String
The XPath expression
str
,
Node
The node from which prefixes in the XPath will be resolved to namespaces.
namespaceNode
)

Evaluate an XPath string and return true if the output is to be included or not.

public NodeList

Returns:

A NodeIterator, should never be null.
selectNodeList
(Node
The node to start searching from.
contextNode
,
Node xpathnode, String str, Node
The node from which prefixes in the XPath will be resolved to namespaces.
namespaceNode
)

Use an XPath string to select a nodelist.

Method Detail

clearback to summary
public void clear()

Clear any context information from this object

evaluateback to summary
public boolean evaluate(Node contextNode, Node xpathnode, String str, Node namespaceNode) throws TransformerException

Evaluate an XPath string and return true if the output is to be included or not.

Parameters
contextNode:Node

The node to start searching from.

xpathnode:Node

The XPath node

str:String

The XPath expression

namespaceNode:Node

The node from which prefixes in the XPath will be resolved to namespaces.

selectNodeListback to summary
public NodeList selectNodeList(Node contextNode, Node xpathnode, String str, Node namespaceNode) throws TransformerException

Use an XPath string to select a nodelist. XPath namespace prefixes are resolved from the namespaceNode.

Parameters
contextNode:Node

The node to start searching from.

namespaceNode:Node

The node from which prefixes in the XPath will be resolved to namespaces.

Returns:NodeList

A NodeIterator, should never be null.