public class XPathXQueryFunctionBridge
extends java.lang.Object
implements javax.xml.xpath.XPathFunction
Constructor and Description |
---|
XPathXQueryFunctionBridge(net.sf.saxon.expr.instruct.UserFunction f,
net.sf.saxon.om.NodeInfo contextNode)
Instantiates a new x path x query function bridge.
|
Modifier and Type | Method and Description |
---|---|
static net.sf.saxon.om.Sequence |
convertJavaObjectToXPath(java.lang.Object object,
net.sf.saxon.value.SequenceType requiredType,
net.sf.saxon.expr.XPathContext context)
Convert java object to x path.
|
static net.sf.saxon.om.Sequence |
convertToBestFit(java.lang.Object object,
net.sf.saxon.Configuration config)
Convert to best fit.
|
java.lang.Object |
evaluate(java.util.List args) |
public XPathXQueryFunctionBridge(net.sf.saxon.expr.instruct.UserFunction f, net.sf.saxon.om.NodeInfo contextNode)
f
- the fcontextNode
- the context nodepublic java.lang.Object evaluate(java.util.List args) throws javax.xml.xpath.XPathFunctionException
evaluate
in interface javax.xml.xpath.XPathFunction
javax.xml.xpath.XPathFunctionException
public static net.sf.saxon.om.Sequence convertJavaObjectToXPath(java.lang.Object object, net.sf.saxon.value.SequenceType requiredType, net.sf.saxon.expr.XPathContext context) throws net.sf.saxon.trans.XPathException
object
- the objectrequiredType
- the required typecontext
- the contextnet.sf.saxon.trans.XPathException
- the x path exceptionpublic static net.sf.saxon.om.Sequence convertToBestFit(java.lang.Object object, net.sf.saxon.Configuration config) throws net.sf.saxon.trans.XPathException
object
- the objectconfig
- the confignet.sf.saxon.trans.XPathException
- the x path exceptionCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa