These code examples were ranked by Codota’s semantic indexing as the best open source examples for Java 8 XPathFunctionException class.
// The method key and ExpressionContext are set to null. return m_handler.callFunction(m_funcName, argsVec, null, null); } catch (TransformerException e) { throw new XPathFunctionException(e); } } /** * Convert a java.util.List to a java.util.Vector. * No conversion is done if the List is already a Vector. */ private static Vector listToVector(List args) { if (args == null) return null; else if (args instanceof Vector) return (Vector)args; else
* @throws XPathFunctionException XPathFunctionException */ private static Object evaluate(XPathFunction function, List arguments) throws XPathFunctionException { if (function == null) { throw new XPathFunctionException("Unable to locate function in library"); } return function.evaluate(arguments); } }
* @throws XPathFunctionException XPathFunctionException */ private static Object evaluate(XPathFunction function, List arguments) throws XPathFunctionException { if (function == null) { throw new XPathFunctionException("Unable to locate function in library"); } return function.evaluate(arguments); } }
* @throws XPathFunctionException XPathFunctionException */ private static Object evaluate(XPathFunction function, List arguments) throws XPathFunctionException { if (function == null) { throw new XPathFunctionException("Unable to locate function in library"); } return function.evaluate(arguments); } }
* @throws XPathFunctionException XPathFunctionException */ private static Object evaluate(XPathFunction function, List arguments) throws XPathFunctionException { if (function == null) { throw new XPathFunctionException("Unable to locate function in library"); } return function.evaluate(arguments); } }
evaluator.setXpath(xpath); //Node rootSearchNode = getRootSearchNodeParameter(parameters); try { return evaluator.evaluate(xPathExpression, rootNode); } catch (XPathExpressionException e) { throw new XPathFunctionException(e); } } private String getXPathExpressionParameter(List parameters) throws XPathFunctionException { if (parameters.size() < 1) { throw new XPathFunctionException("First parameter must be an XPath expression."); } if (!(parameters.get(0) instanceof String)) { throw new XPathFunctionException("First parameter must be an XPath expression String"); } return (String)parameters.get(0); } public XPath getXpath() {
// The method key and ExpressionContext are set to null. return m_handler.callFunction(m_funcName, argsVec, null, null); } catch (TransformerException e) { throw new XPathFunctionException(e); } } /** * Convert a java.util.List to a java.util.Vector. * No conversion is done if the List is already a Vector. */ private static Vector listToVector(List args) { if (args == null) return null; else if (args instanceof Vector) return (Vector)args; else
// The method key and ExpressionContext are set to null. return m_handler.callFunction(m_funcName, argsVec, null, null); } catch (TransformerException e) { throw new XPathFunctionException(e); } } /** * Convert a java.util.List to a java.util.Vector. * No conversion is done if the List is already a Vector. */ private static Vector listToVector(List args) { if (args == null) return null; else if (args instanceof Vector) return (Vector)args; else