Examples of SCXMLExpressionException


Examples of org.apache.commons.scxml2.SCXMLExpressionException

            throws SCXMLExpressionException {
        XPath xpath = getXPath(ctx);
        try {
            return xpath.evaluate(expr, dummyContextNode, XPathConstants.STRING);
        } catch (XPathExpressionException xee) {
            throw new SCXMLExpressionException(xee.getMessage(), xee);
        }
    }
View Full Code Here

Examples of org.apache.commons.scxml2.SCXMLExpressionException

            throws SCXMLExpressionException {
        XPath xpath = getXPath(ctx);
        try {
            return (Boolean) xpath.evaluate(expr, dummyContextNode, XPathConstants.BOOLEAN);
        } catch (XPathExpressionException xee) {
            throw new SCXMLExpressionException(xee.getMessage(), xee);
        }
    }
View Full Code Here

Examples of org.apache.commons.scxml2.SCXMLExpressionException

            replaceFirst("DataNode(");
        XPath xpath = getXPath(ctx);
        try {
            return (Node) xpath.evaluate(evalExpr, dummyContextNode, XPathConstants.NODE);
        } catch (XPathExpressionException xee) {
            throw new SCXMLExpressionException(xee.getMessage(), xee);
        }
    }
View Full Code Here

Examples of org.apache.commons.scxml2.SCXMLExpressionException

     * Get configures XPath from the factory.
     */
    @SuppressWarnings("unchecked")
    private XPath getXPath(final Context ctx) throws SCXMLExpressionException {
        if (!(ctx instanceof XPathContext)) {
            throw new SCXMLExpressionException("XPathEvaluator needs XPathContext");
        }
        XPathContext xctx = (XPathContext) ctx;
        factory.setXPathVariableResolver(xctx);
        fnResolver.setContext(xctx);
        XPath xpath = factory.newXPath();
View Full Code Here

Examples of org.apache.commons.scxml2.SCXMLExpressionException

            try {
                wait = Long.parseLong(numericDelay);
            } catch (NumberFormatException nfe) {
                appLog.error(nfe.getMessage(), nfe);
                throw new SCXMLExpressionException(nfe.getMessage(), nfe);
            }
            wait *= multiplier;

        }
        return wait;
View Full Code Here

Examples of org.apache.commons.scxml2.SCXMLExpressionException

            // ... evaluate
            return engine.eval(jsExpression,new JSBindings(context,bindings));

        } catch (Exception x) {
            throw new SCXMLExpressionException("Error evaluating ['" + expression + "'] " + x);
        }
    }
View Full Code Here

Examples of org.apache.commons.scxml2.SCXMLExpressionException

        if (object instanceof Boolean) {
           return (Boolean) object;
        }

        throw new SCXMLExpressionException("Invalid boolean expression: " + expression);
    }
View Full Code Here

Examples of org.apache.commons.scxml2.SCXMLExpressionException

            // ... evaluate
            return (Node) engine.eval(jsExpression,new JSBindings(context,bindings));

        } catch (Exception x) {
            throw new SCXMLExpressionException("Error evaluating ['" + expression + "'] " + x);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.