public abstract class XPathUtilsInterface
extends java.lang.Object
| Constructor and Description |
|---|
XPathUtilsInterface() |
| Modifier and Type | Method and Description |
|---|---|
static XPathUtilsInterface |
getInstance()
Gets an instance of the implementation class of this interface, as specified by the IXSIL init property
named
XPathUtils.ImplementingClass. |
abstract boolean |
selectBoolean(org.w3c.dom.Node contextNode)
Uses an XPath epression to compute a boolean result.
|
abstract org.w3c.dom.Element |
selectElement(org.w3c.dom.Node contextNode)
Uses an XPath epression to select a single Element node.
|
abstract org.w3c.dom.NodeList |
selectNodeSet(org.w3c.dom.Node contextNode)
Uses an XPath epression to select a set of nodes.
|
abstract void |
setupContext(java.lang.String xPathExpr,
org.w3c.dom.Node namespaceNode,
java.lang.String additionalNSPrefixes,
org.w3c.dom.NodeList hereResult)
Sets up the XPath context.
|
public static XPathUtilsInterface getInstance()
XPathUtils.ImplementingClass.public abstract org.w3c.dom.NodeList selectNodeSet(org.w3c.dom.Node contextNode)
throws XPathUtilsException
contextNode - The node specifiying the context for the XPath manipulation. Must not be null
.XPathUtilsException - if the XPath engine returns an error, or if the result of processing the
XPath is not a set of nodes.public abstract boolean selectBoolean(org.w3c.dom.Node contextNode)
throws XPathUtilsException
contextNode - The node specifiying the context for the XPath manipulation. Must not be null
.XPathUtilsException - if the XPath engine returns an error, or if the result cannot be
converted into a boolean value.public abstract org.w3c.dom.Element selectElement(org.w3c.dom.Node contextNode)
throws XPathUtilsException
contextNode - The node specifiying the context for the XPath manipulation. Must not be null
.XPathUtilsException - if the XPath engine returns an error, or if the result is not a single
Element Node.public abstract void setupContext(java.lang.String xPathExpr,
org.w3c.dom.Node namespaceNode,
java.lang.String additionalNSPrefixes,
org.w3c.dom.NodeList hereResult)
throws XPathUtilsException
selectBoolean(org.w3c.dom.Node), selectElement(org.w3c.dom.Node) and
selectNodeSet(org.w3c.dom.Node) will operate on this context.xPathExpr - A string specifying the XPath expression. Must not be null.namespaceNode - The namespace declarations in scope for this node will be used as the set of
namespace declarations for the XPath computation. May be null.additionalNSPrefixes - Allows the specification of additional namespace prefixes which can be used
in the XPath expression. The value of the parameter consists of pairs of
prefix to namespace URI attributions separated by spaces, i. e.
"prefix1 uri1 prefix2 uri2 ...". May be null.hereResult - The result which should be returned by the XPath extension function call here()
. The here() extension function has been introduced in XML Signature,
XPath Filtering. May be null if the here() function
will not be used. If not null, the NodeList must contain a
single Element, Attr or
ProcessingInstruction node.XPathUtilsException - if the XPath engine returns an error.