Examples of evaluate()


Examples of com.sun.xacml.AbstractPolicy.evaluate()

        Set<AbstractPolicy> applicablePolicies =
                getApplicablePolicies(context, matchedPolicies);

        for (AbstractPolicy policy : applicablePolicies) {
            Result result = policy.evaluate(context);
            int effect = result.getDecision();

            if (effect == Result.DECISION_PERMIT) {
                return result;
            }

Examples of com.sun.xacml.PDP.evaluate()

        DocumentBuilder builder = factory.newDocumentBuilder();
        Document doc = builder.parse(req.getInputStream());

        RequestCtx request = RequestCtx.getInstance(doc.getDocumentElement());
        ResponseCtx response = pdp.evaluate(request);

        response.encode(resp.getOutputStream(), new Indenter(0), true);
        return null;
    }

Examples of com.sun.xacml.Rule.evaluate()

        Result firstIndeterminateResult = null;
        Iterator<? extends CombinerElement> it = ruleElements.iterator();

        while (it.hasNext()) {
            Rule rule = ((RuleCombinerElement) (it.next())).getRule();
            Result result = rule.evaluate(context);
            int value = result.getDecision();

            // if there was a value of PERMIT, then regardless of what
            // else we've seen, we always return PERMIT
            if (value == Result.DECISION_PERMIT)

Examples of com.tinkerpop.rexster.protocol.session.AbstractRexProSession.evaluate()

            final Timer.Context timer = scriptTimer.time();
            try {

                // execute script
                session.evaluate(
                        message.Script,
                        message.LanguageName,
                        bindings,
                        message.metaGetIsolate(),
                        message.metaGetTransaction(),

Examples of com.volantis.styling.expressions.StylingFunction.evaluate()

        // =====================================================================

        List functionArgs = new ArrayList();
        functionArgs.add(getCounterIdentifier("cow"));
        StyleValue functionValue =
                function.evaluate(evaluationContextMock,
                        "counter", functionArgs);

        assertNotNull("Function should return a value", functionValue);
        assertTrue("Function should return a StyleInteger",
                functionValue instanceof StyleInteger);

Examples of com.volantis.styling.impl.expressions.Arguments.evaluate()

        List values = new ArrayList();
        List evaluated;

        arguments = new ArgumentsImpl(values, false);
        evaluated = arguments.evaluate(evaluationContextMock);
        assertEquals(values, evaluated);
    }

    /**
     * Ensure that fixed arguments are handled properly.

Examples of com.volantis.styling.impl.expressions.FunctionCall.evaluate()

        // =====================================================================
        //   Test Expectations
        // =====================================================================
        FunctionCall call = new FunctionCall("fred", stylingFunctionMock,
                argumentsMock);
        call.evaluate(evaluationContextMock);
    }

}

Examples of com.volantis.styling.impl.expressions.StyleCompiledExpression.evaluate()

        ValueCompiler compiler = new ValueCompilerImpl(functionResolverMock);
        StyleCompiledExpression compiledValue = (StyleCompiledExpression)
                compiler.compile(value);
        StyleValue evaluatedValue =
                compiledValue.evaluate(evaluationContextMock);
        assertSame(fooResult, evaluatedValue);
    }
}

Examples of com.volantis.styling.impl.functions.CounterFunction.evaluate()

        List functionArgs = new ArrayList();
        functionArgs.add(getCounterIdentifier("hippopotamus"));
        functionArgs.add(ListStyleTypeKeywords.LOWER_ALPHA);

        StyleValue functionValue =
                function.evaluate(evaluationContextMock,
                        "counter", functionArgs);
        assertSame(result, functionValue);
    }
}

Examples of com.volantis.styling.impl.functions.CountersFunction.evaluate()

        List functionArgs = new ArrayList();
        functionArgs.add(getCounterIdentifier("horse"));
        functionArgs.add(STYLE_VALUE_FACTORY.getString(null, "."));
        functionArgs.add(ListStyleTypeKeywords.DECIMAL);
        StyleValue functionValue =
                function.evaluate(evaluationContextMock,
                        "counters", functionArgs);

        assertNotNull("Function should return a value", functionValue);
        assertTrue("Function should return a StyleString",
                functionValue instanceof StyleString);
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.