Package com.volantis.xml.expression

Examples of com.volantis.xml.expression.Expression.evaluate()


        MarinerURL baseURL = policyExpression.getBaseURL();
        String brandName = policyExpression.getBrandName();

        RuntimePolicyReference reference = null;
        try {
            Value value = expression.evaluate(expressionContext);
            if (value instanceof RepositoryObjectIdentityValue) {
                RepositoryObjectIdentityValue identityValue =
                        (RepositoryObjectIdentityValue) value;

                PolicyIdentity identity = identityValue.asPolicyIdentity();
View Full Code Here


        // invoke the function
        Expression expression = parser.parse(getFunctionQName() +
                                             "('" + charateristic + "')");

        // evalute the expression
        Value result = expression.evaluate(expressionContext);

        // Value returned should be the EmptySequence
        assertTrue("return value should be a Sequence instance",
                   result instanceof Sequence);
View Full Code Here

        // invoke the function
        Expression expression = parser.parse(getFunctionQName() +
                                             "('" + policy + "')");

        // evalute the expression
        Value value = expression.evaluate(expressionContext);

        // Value returned should be a StringValue
        assertTrue("return value should be a StringValue instance",
                   value instanceof StringValue);
View Full Code Here

        // invoke the function
        Expression expression = parser.parse(getFunctionQName() +
                                             "('" + charateristic + "')");

        // evalute the expression
        Value result = expression.evaluate(expressionContext);

        // Value returned should be a StringValue
        assertTrue("return value should be a StringValue instance",
                   result instanceof StringValue);
View Full Code Here

        Expression expression = parser.parse(getFunctionQName() + "('Test')");

        accessorMock.expects.getDependentPolicyValue("Test").returns(null);

        // evalute the expression
        Value value = expression.evaluate(expressionContext);

        // ensure the empty sequence has been returned
        assertSame("Empty sequence should be returned if policy doesn't exist",
                   Sequence.EMPTY,
                   value);
View Full Code Here

        // invoke the function
        Expression expression = parser.parse(getFunctionQName() +
                                             "('" + policy + "')");

        // evalute the expression
        Value value = expression.evaluate(expressionContext);

        // ensure a sequence is returned
        assertTrue("return value should be a Sequence instance",
                   value instanceof Sequence);
View Full Code Here

        // invoke the function
        Expression expression = parser.parse(getFunctionQName() +
                                             "('" + charateristic + "')");

        // evalute the expression
        Value result = expression.evaluate(expressionContext);

        // Value returned should be a StringValue
        assertTrue("return value should be a BooleanValue instance",
                   result instanceof BooleanValue);
View Full Code Here

        // invoke the function
        Expression expression = parser.parse(getFunctionQName() +
                                             "('" + charateristic + "')");

        // evalute the expression
        Value result = expression.evaluate(expressionContext);

        // Value returned should be a StringValue
        assertTrue("return value should be a DoubleValue instance",
                   result instanceof DoubleValue);
View Full Code Here

        // invoke the function
        Expression expression = parser.parse(getFunctionQName() +
                                             "('" + charateristic + "')");

        // evalute the expression
        Value result = expression.evaluate(expressionContext);

        // Value returned should be a StringValue
        assertTrue("return value should be a DoubleValue instance",
                   result instanceof Sequence);
View Full Code Here

        // invoke the function
        Expression expression = parser.parse(getFunctionQName() +
                                             "('" + charateristic + "')");

        // evalute the expression
        Value result = expression.evaluate(expressionContext);

        // Value returned should be a StringValue
        assertTrue("return value should be a DoubleValue instance",
                   result instanceof Sequence);
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.