net.sf.fikin.ant
Class XPathTask.ListOfFunctions

java.lang.Object
  extended by net.sf.fikin.ant.XPathTask.ListOfFunctions
All Implemented Interfaces:
javax.xml.xpath.XPathFunctionResolver
Enclosing class:
XPathTask

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

Functions context handler used by XPath to resolve custom namespaces

created on Jan 5, 2007

Since:
Version:
$Revision: 1.7 $
Author:
fiykov

Constructor Summary
XPathTask.ListOfFunctions()
           
 
Method Summary
 void addFunction(XPathTask.Function f)
          add new namespace to the list
 javax.xml.xpath.XPathFunction resolveFunction(javax.xml.namespace.QName functionName, int arity)
          return new or reusable function object for given uri and local name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPathTask.ListOfFunctions

public XPathTask.ListOfFunctions()
Method Detail

addFunction

public void addFunction(XPathTask.Function f)
add new namespace to the list

Parameters:
ns - to add

resolveFunction

public javax.xml.xpath.XPathFunction resolveFunction(javax.xml.namespace.QName functionName,
                                                     int arity)
return new or reusable function object for given uri and local name

return null if no function found by this data

Specified by:
resolveFunction in interface javax.xml.xpath.XPathFunctionResolver
Throws:
java.lang.NullPointerException - in case of error while creating the function object


Copyright © 2003-2007 Nikolay Fiykov. All Rights Reserved.