Package org.exolab.adaptx.xslt
Class XSLTFunction
- java.lang.Object
-
- org.exolab.adaptx.xpath.XPathFunction
-
- 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 08:38:44 +0100 (Sat, 01 Mar 2003) $
- Author:
- Keith Visco
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
INVALID_NUMBER_PARAMS
static java.lang.String
XSLT_NAMESPACE
The current (and ever changing) XSLT namespace
-
Constructor Summary
Constructors Constructor Description XSLTFunction(java.lang.String name)
Creates a new XSLTFunction with the given name.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
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
-
-
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 classXPathFunction
- Parameters:
context
- The XPath contextparams
- 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 classXPathFunction
- Returns:
- The namespace URI of this function
-
getFunctionName
public java.lang.String getFunctionName()
Returns the name of this function.- Specified by:
getFunctionName
in classXPathFunction
- Returns:
- The name of this function
-
-