org.exolab.adaptx.xpath
Class XPathFunction

java.lang.Object
  |
  +--org.exolab.adaptx.xpath.XPathFunction
Direct Known Subclasses:
XSLTFunction

public abstract class XPathFunction
extends java.lang.Object

Abstract class representing an XPath function.

Author:
Keith Visco, Assaf Arkin

Constructor Summary
XPathFunction()
           
 
Method Summary
abstract  XPathResult call(XPathContext context, XPathResult[] args)
          Invokes the function and returns the XPath result.
abstract  java.lang.String getFunctionName()
          Returns the name of this function.
abstract  java.lang.String getNamespaceURI()
          Returns the namespace URI of this function.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPathFunction

public XPathFunction()
Method Detail

call

public abstract XPathResult call(XPathContext context,
                                 XPathResult[] args)
                          throws XPathException
Invokes the function and returns the XPath result.

Parameters:
context - The XPath context
Returns:
An XPath result (not null)
Throws:
XPathException - An error occured while invoking this function

getNamespaceURI

public abstract java.lang.String getNamespaceURI()
Returns the namespace URI of this function.

Returns:
The namespace URI of this function

getFunctionName

public abstract java.lang.String getFunctionName()
Returns the name of this function.

Returns:
The name of this function