XPathFunctionResolver


XPathFunctionResolver javax.xml.xpath

Java 5.0

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( )



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net