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

pack-priv Class JDKXPathAPI

extends Object
implements XPathAPI
Class Inheritance
All Implemented Interfaces
com.sun.org.apache.xml.internal.security.utils.XPathAPI
Imports
javax.xml.XMLConstants, javax.xml.transform.TransformerException, javax.xml.xpath.XPath, .XPathConstants, .XPathExpression, .XPathExpressionException, .XPathFactory, .XPathFactoryConfigurationException, org.w3c.dom.Node, .NodeList

An implementation for XPath evaluation that uses the JDK API.

Field Summary

Modifier and TypeField and Description
private XPathExpression
private String
private XPathFactory

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
clear()

Implements com.sun.org.apache.xml.internal.security.utils.XPathAPI.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
)

Implements com.sun.org.apache.xml.internal.security.utils.XPathAPI.evaluate.

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
)

Implements com.sun.org.apache.xml.internal.security.utils.XPathAPI.selectNodeList.

Use an XPath string to select a nodelist.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

xpathExpressionback to summary
private XPathExpression xpathExpression
xpathStrback to summary
private String xpathStr
xpfback to summary
private XPathFactory xpf

Constructor Detail

JDKXPathAPIback to summary
pack-priv JDKXPathAPI()

Method Detail

clearback to summary
public void clear()

Implements com.sun.org.apache.xml.internal.security.utils.XPathAPI.clear.

Clear any context information from this object

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

Implements com.sun.org.apache.xml.internal.security.utils.XPathAPI.evaluate.

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.

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

Implements com.sun.org.apache.xml.internal.security.utils.XPathAPI.selectNodeList.

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.

Annotations
@Override