CurrentFunctionCall
, DocumentFunctionCall
, ExtensionFunctionCall
, GenerateIDFunctionCall
, RTF2NodeSetFunctionCall
, SystemFunctionCall
public abstract class XSLTFunction extends XPathFunction
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 | Description |
---|---|
XSLTFunction(java.lang.String name) |
Creates a new XSLTFunction with the given name.
|
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.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
call
public static final java.lang.String XSLT_NAMESPACE
public static final java.lang.String INVALID_NUMBER_PARAMS
public XSLTFunction(java.lang.String name)
name
- the function name.public abstract XPathResult call(XPathContext context, XPathResult[] args) throws XPathException
call
in class XPathFunction
context
- The XPath contextparams
- A list of zero or more argumentsXPathException
- An error occured while invoking this functionpublic java.lang.String getNamespaceURI()
getNamespaceURI
in class XPathFunction
public java.lang.String getFunctionName()
getFunctionName
in class XPathFunction