Package 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.ObjectAbstract class representing an XPath function.- Author:
- Keith Visco, Assaf Arkin
-
-
Constructor Summary
Constructors Constructor Description XPathFunction()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract XPathResultcall(XPathContext context, XPathResult[] args)Invokes the function and returns the XPath result.XPathResultcall(XPathContext context, XPathResult[] args, FunctionState state)Invokes the function and returns the XPath result.abstract java.lang.StringgetFunctionName()Returns the name of this function.abstract java.lang.StringgetNamespaceURI()Returns the namespace URI of this function.
-
-
-
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 contextparams- A list of zero or more arguments- Returns:
- An XPath result (not null)
- Throws:
XPathException- if an error occured while invoking this function
-
call
public XPathResult call(XPathContext context, XPathResult[] args, FunctionState state) throws XPathException
Invokes the function and returns the XPath result.- Parameters:
context- The XPath contextparams- A list of zero or more argumentsstate- the FunctionState for obtaining additional information about the Function call, such as the actual parameter expressions.- Returns:
- An XPath result (not null)
- Throws:
XPathException- if 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
-
-