Name
XPathFunctionResolver
Synopsis
This
interface defines a single method to
return the XPathFunction
with the specified
qualified name and specified arity (number of arguments). Objects
that implement this interface may be passed to the
setXPathFunctionResolver( )
methods of
XPath
or XPathFactory
.
Note that the function resolvers are invoked only for functions
defined in an external namespace, so they cannot be used to override
the meaning of XPath’s built-in functions or to add
new core functions to the XPath language. Also, if the
XMLConstants.FEATURE_SECURE_PROCESSING
feature has
been enabled on an XPathFactory
, user-defined
functions are not allowed in XPath expressions, and the
XPathFunctionResolver
is never called.
public interface XPathFunctionResolver { // Public Instance Methods XPathFunction resolveFunction(javax.xml.namespace.QName functionName, int arity); }
Passed To
XPath.setXPathFunctionResolver( )
,
XPathFactory.setXPathFunctionResolver( )
Returned By
XPath.getXPathFunctionResolver( )
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.