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

pack-priv Class XalanXPathAPI

extends Object
implements XPathAPI
Class Inheritance
All Implemented Interfaces
com.sun.org.apache.xml.internal.security.utils.XPathAPI
Imports
java.lang.reflect.Constructor, .Method, .Modifier, javax.xml.transform.ErrorListener, .SourceLocator, .TransformerException, com.sun.org.apache.xml.internal.security.transforms.implementations.FuncHere, com.sun.org.apache.xml.internal.utils.PrefixResolver, .PrefixResolverDefault, com.sun.org.apache.xpath.internal.Expression, .XPath, .XPathContext, com.sun.org.apache.xpath.internal.compiler.FunctionTable, com.sun.org.apache.xpath.internal.objects.XObject, org.w3c.dom.Document, .Node, .NodeList

An implementation of XPathAPI using Xalan. This supports the "here()" function defined in the digital signature spec.

Field Summary

Modifier and TypeField and Description
private XPathContext
private static FunctionTable
private static boolean
private static final Logger
private XPath
private String

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

private XPath
createXPath(String str, PrefixResolver prefixResolver)

private XObject
eval(Node contextNode, Node xpathnode, String str, Node namespaceNode)

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.

private static synchronized void
public static boolean
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

contextback to summary
private XPathContext context
funcTableback to summary
private static FunctionTable funcTable
installedback to summary
private static boolean installed
LOGback to summary
private static final Logger LOG
xpathback to summary
private XPath xpath
xpathStrback to summary
private String xpathStr

Constructor Detail

XalanXPathAPIback to summary
pack-priv XalanXPathAPI()

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

createXPathback to summary
private XPath createXPath(String str, PrefixResolver prefixResolver) throws TransformerException
evalback to summary
private XObject eval(Node contextNode, Node xpathnode, String str, Node namespaceNode) throws TransformerException
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.

fixupFunctionTableback to summary
private static synchronized void fixupFunctionTable()
isInstalledback to summary
public static boolean isInstalled()
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.