org.apache.xalan.extensions
Class XPathFunctionResolverImpl

java.lang.Object
  extended by org.apache.xalan.extensions.XPathFunctionResolverImpl
All Implemented Interfaces:
javax.xml.xpath.XPathFunctionResolver

public class XPathFunctionResolverImpl
extends java.lang.Object
implements javax.xml.xpath.XPathFunctionResolver

A sample implementation of XPathFunctionResolver, with support for EXSLT extension functions and Java extension functions.


Constructor Summary
XPathFunctionResolverImpl()
           
 
Method Summary
private  java.lang.String getEXSLTClassName(java.lang.String uri)
          Return the implementation class name of an EXSLT extension from a given namespace uri.
 javax.xml.xpath.XPathFunction resolveFunction(javax.xml.namespace.QName qname, int arity)
          Resolve an extension function from the qualified name and arity.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPathFunctionResolverImpl

public XPathFunctionResolverImpl()
Method Detail

resolveFunction

public javax.xml.xpath.XPathFunction resolveFunction(javax.xml.namespace.QName qname,
                                                     int arity)
Resolve an extension function from the qualified name and arity.

Specified by:
resolveFunction in interface javax.xml.xpath.XPathFunctionResolver

getEXSLTClassName

private java.lang.String getEXSLTClassName(java.lang.String uri)
Return the implementation class name of an EXSLT extension from a given namespace uri. The uri must starts with "http://exslt.org".