org.apache.xalan.extensions
Class XPathFunctionImpl
java.lang.Object
org.apache.xalan.extensions.XPathFunctionImpl
- All Implemented Interfaces:
- javax.xml.xpath.XPathFunction
public class XPathFunctionImpl
- extends java.lang.Object
- implements javax.xml.xpath.XPathFunction
A sample implementation of XPathFunction, with support for
EXSLT extension functions and Java extension functions.
Constructor Summary |
XPathFunctionImpl(ExtensionHandler handler,
java.lang.String funcName)
Construct an instance of XPathFunctionImpl from the
ExtensionHandler and function name. |
Method Summary |
java.lang.Object |
evaluate(java.util.List args)
|
private static java.util.Vector |
listToVector(java.util.List args)
Convert a java.util.List to a java.util.Vector. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_handler
private ExtensionHandler m_handler
m_funcName
private java.lang.String m_funcName
XPathFunctionImpl
public XPathFunctionImpl(ExtensionHandler handler,
java.lang.String funcName)
- Construct an instance of XPathFunctionImpl from the
ExtensionHandler and function name.
evaluate
public java.lang.Object evaluate(java.util.List args)
throws javax.xml.xpath.XPathFunctionException
- Specified by:
evaluate
in interface javax.xml.xpath.XPathFunction
- Throws:
javax.xml.xpath.XPathFunctionException
- See Also:
XPathFunction.evaluate(java.util.List)
listToVector
private static java.util.Vector listToVector(java.util.List args)
- Convert a java.util.List to a java.util.Vector.
No conversion is done if the List is already a Vector.