org.exolab.adaptx.xslt
Class XSLTFunction

java.lang.Object
  extended by org.exolab.adaptx.xpath.XPathFunction
      extended by org.exolab.adaptx.xslt.XSLTFunction
Direct Known Subclasses:
CurrentFunctionCall, DocumentFunctionCall, ExtensionFunctionCall, GenerateIDFunctionCall, RTF2NodeSetFunctionCall, SystemFunctionCall

public abstract class XSLTFunction
extends XPathFunction

The base class for XSLT functions.

Version:
$Revision: 3633 $ $Date: 2003-03-01 02:38:44 -0500 (Sat, 01 Mar 2003) $
Author:
Keith Visco

Field Summary
static java.lang.String INVALID_NUMBER_PARAMS
           
static java.lang.String XSLT_NAMESPACE
          The current (and ever changing) XSLT namespace
 
Constructor Summary
XSLTFunction(java.lang.String name)
          Creates a new XSLTFunction with the given name.
 
Method Summary
abstract  XPathResult call(XPathContext context, XPathResult[] args)
          Invokes the function and returns the XPath result.
 java.lang.String getFunctionName()
          Returns the name of this function.
 java.lang.String getNamespaceURI()
          Returns the namespace URI of this function.
 
Methods inherited from class org.exolab.adaptx.xpath.XPathFunction
call
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XSLT_NAMESPACE

public static final java.lang.String XSLT_NAMESPACE
The current (and ever changing) XSLT namespace

See Also:
Constant Field Values

INVALID_NUMBER_PARAMS

public static final java.lang.String INVALID_NUMBER_PARAMS
See Also:
Constant Field Values
Constructor Detail

XSLTFunction

public XSLTFunction(java.lang.String name)
Creates a new XSLTFunction with the given name.

Parameters:
name - the function name.
Method Detail

call

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

Specified by:
call in class XPathFunction
Parameters:
context - The XPath context
params - A list of zero or more arguments
Returns:
An XPath result (not null)
Throws:
XPathException - An error occured while invoking this function

getNamespaceURI

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

Specified by:
getNamespaceURI in class XPathFunction
Returns:
The namespace URI of this function

getFunctionName

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

Specified by:
getFunctionName in class XPathFunction
Returns:
The name of this function