org.exolab.adaptx.xpath

Class XPathFunction

Known Direct Subclasses:
XSLTFunction

public abstract class XPathFunction
extends java.lang.Object

Abstract class representing an XPath function.

Authors:
Keith Visco
Assaf Arkin

Method Summary

XPathResult
call(XPathContext context, XPathResult args)
Invokes the function and returns the XPath result.
String
getFunctionName()
Returns the name of this function.
String
getNamespaceURI()
Returns the namespace URI of this function.

Method Details

call

public 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


getFunctionName

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

Returns:
The name of this function


getNamespaceURI

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

Returns:
The namespace URI of this function