Examples of EvaluationContext


Examples of com.jayway.jsonpath.internal.EvaluationContext

     * @return the updated jsonObject
     */
    public <T> T set(Object jsonObject, Object newVal, Configuration configuration) {
        notNull(jsonObject, "json can not be null");
        notNull(configuration, "configuration can not be null");
        EvaluationContext evaluationContext = path.evaluate(jsonObject, jsonObject, configuration, true);
        for (PathRef updateOperation : evaluationContext.updateOperations()) {
            updateOperation.set(newVal, configuration);
        }
        return (T)jsonObject;
    }
View Full Code Here

Examples of com.jayway.jsonpath.internal.EvaluationContext

     * @return the updated jsonObject
     */
    public <T> T delete(Object jsonObject, Configuration configuration) {
        notNull(jsonObject, "json can not be null");
        notNull(configuration, "configuration can not be null");
        EvaluationContext evaluationContext = path.evaluate(jsonObject, jsonObject, configuration, true);
        for (PathRef updateOperation : evaluationContext.updateOperations()) {
            updateOperation.delete(configuration);
        }
        return (T)jsonObject;
    }
View Full Code Here

Examples of com.jayway.jsonpath.internal.EvaluationContext

     * @return the updated jsonObject
     */
    public <T> T add(Object jsonObject, Object value, Configuration configuration) {
        notNull(jsonObject, "json can not be null");
        notNull(configuration, "configuration can not be null");
        EvaluationContext evaluationContext = path.evaluate(jsonObject, jsonObject, configuration, true);
        for (PathRef updateOperation : evaluationContext.updateOperations()) {
            updateOperation.add(value, configuration);
        }
        return (T)jsonObject;
    }
View Full Code Here

Examples of com.jayway.jsonpath.internal.EvaluationContext

     */
    public <T> T put(Object jsonObject, String key, Object value, Configuration configuration) {
        notNull(jsonObject, "json can not be null");
        notEmpty(key, "key can not be null or empty");
        notNull(configuration, "configuration can not be null");
        EvaluationContext evaluationContext = path.evaluate(jsonObject, jsonObject, configuration, true);
        for (PathRef updateOperation : evaluationContext.updateOperations()) {
            updateOperation.put(key, value, configuration);
        }
        return (T)jsonObject;
    }
View Full Code Here

Examples of com.sun.el.lang.EvaluationContext

     */
    public MethodInfo getMethodInfo(ELContext context)
            throws PropertyNotFoundException, MethodNotFoundException,
            ELException {
        Node n = this.getNode();
        EvaluationContext ctx = new EvaluationContext(context, this.fnMapper,
                this.varMapper);
        return n.getMethodInfo(ctx, this.paramTypes);
    }
View Full Code Here

Examples of com.volantis.styling.expressions.EvaluationContext

        StringReader reader = new StringReader(css);

        StylingEngine engine = createStylingEngine(reader,
                                                   functionResolverMock);

        final EvaluationContext context = engine.getEvaluationContext();

        // =====================================================================
        //   Set Expectations
        // =====================================================================
View Full Code Here

Examples of com.volantis.styling.expressions.EvaluationContext

        StringReader reader = new StringReader(css);

        StylingEngine engine = createStylingEngine(reader,
                                                   functionResolverMock);

        final EvaluationContext context = engine.getEvaluationContext();

        // =====================================================================
        //   Set Expectations
        // =====================================================================
View Full Code Here

Examples of com.volantis.styling.expressions.EvaluationContext

        compiler = compilerFactory.createStyleSheetCompiler();

        StylingFactory stylingFactory = StylingFactory.getDefaultInstance();
        engine = stylingFactory.createStylingEngine();

        EvaluationContext evaluationContext = engine.getEvaluationContext();
        evaluationContext.setProperty(FormatReferenceFinder.class,
                formatReferenceFinderMock);

        attributes = new SingleNamespaceAttributes(null);
    }
View Full Code Here

Examples of com.volantis.styling.expressions.EvaluationContext

            stylingEngine = stylingFactory.createStylingEngine(
                    styleSheetCompilerFactory);

            // Initialise the evaluation context.
            EvaluationContext context = stylingEngine.getEvaluationContext();
            context.setProperty(FormatReferenceFinder.class,
                                getFormatReferenceFinder());

            // Add the system wide default style sheet.
            if (volantisBean != null) {
                stylingEngine.pushStyleSheet(
View Full Code Here

Examples of dk.brics.xpath.evaluator.EvaluationContext

    this.dummy_root_content = dummy_root_content;
    this.stm_nodes = stm_nodes;
    this.empty_xpath = empty_xpath;
    this.check_fails = check_fails;
    evaluator = new XPathEvaluator();
    evaluation_context = new EvaluationContext();
    evaluation_context.setDefaultNamespace("");
    evaluation_context.addNamespaces(namespaces);
    evaluator.setEvaluationContext(evaluation_context);
   
    concreteNodes = new LinkedHashSet<Integer>();
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.