Examples of ImmutableExpandedName


Examples of com.volantis.xml.namespace.ImmutableExpandedName

        items[0] = factory.createStringValue("a");
        items[1] = factory.createStringValue("b");
        items[2] = factory.createStringValue("c");

        context.getCurrentScope().declareVariable(
                new ImmutableExpandedName("", "myVar"),
                factory.createSequence(items));

        Expression exp = compileExpression("$myVar[2]");

        assertTrue("Variable expression evaluation failed",
View Full Code Here

Examples of com.volantis.xml.namespace.ImmutableExpandedName

        items[0] = factory.createStringValue("a");
        items[1] = factory.createStringValue("b");
        items[2] = factory.createStringValue("c");

        context.getCurrentScope().declareVariable(
                new ImmutableExpandedName("", "myVar"),
                factory.createSequence(items));

        Expression exp = compileExpression("$myVar[3]");

        assertTrue("Variable expression evaluation failed",
View Full Code Here

Examples of com.volantis.xml.namespace.ImmutableExpandedName

        items[0] = factory.createStringValue("a");
        items[1] = factory.createStringValue("b");
        items[2] = factory.createStringValue("c");

        context.getCurrentScope().declareVariable(
                new ImmutableExpandedName("", "myVar"),
                factory.createSequence(items));

        Expression exp = compileExpression("$myVar[4]");

        Value result = exp.evaluate(context);
View Full Code Here

Examples of com.volantis.xml.namespace.ImmutableExpandedName

        items[0] = factory.createStringValue("a");
        items[1] = factory.createStringValue("b");
        items[2] = factory.createStringValue("c");

        context.getCurrentScope().declareVariable(
                new ImmutableExpandedName("", "myVar"),
                factory.createSequence(items));


        Expression exp = compileExpression("$myVar[0]");
View Full Code Here

Examples of com.volantis.xml.namespace.ImmutableExpandedName

    public void testEqualityErrorEvaluate() throws Exception {
        Item[] items = {factory.createIntValue(2),
                        factory.createStringValue(result.stringValue().
                                                  asJavaString())};
        context.getCurrentScope().declareVariable(
                new ImmutableExpandedName("", "myVar"),
                result);
        context.getCurrentScope().declareVariable(
                new ImmutableExpandedName("", "mySequence"),
                factory.createSequence(items));

        Expression exp = compileExpression("$myVar = $mySequence");

        try {
View Full Code Here

Examples of com.volantis.xml.namespace.ImmutableExpandedName

        Item[] right = {factory.createDoubleValue(2.2),
                        factory.createIntValue(42),
                        factory.createDoubleValue(10101010)};

        context.getCurrentScope().declareVariable(
                new ImmutableExpandedName("", "left"),
                factory.createSequence(left));
        context.getCurrentScope().declareVariable(
                new ImmutableExpandedName("", "right"),
                factory.createSequence(right));

        Expression exp = compileExpression("$left = $right");
        Value result = exp.evaluate(context);
View Full Code Here

Examples of com.volantis.xml.namespace.ImmutableExpandedName

        Item[] right = {factory.createDoubleValue(2.2),
                        factory.createIntValue(42),
                        factory.createDoubleValue(10101010)};

        context.getCurrentScope().declareVariable(
                new ImmutableExpandedName("", "left"),
                factory.createSequence(left));
        context.getCurrentScope().declareVariable(
                new ImmutableExpandedName("", "right"),
                factory.createSequence(right));

        Expression exp = compileExpression("$left != $right");
        Value result = exp.evaluate(context);
View Full Code Here

Examples of com.volantis.xml.namespace.ImmutableExpandedName

                   ((BooleanValue) result).asJavaBoolean());
    }

    public void testEqualityEvaluate() throws Exception {
        context.getCurrentScope().declareVariable(
                new ImmutableExpandedName("", "myVar"),
                result);

        Expression exp = compileExpression("$myVar = \"" +
                                           result.stringValue().
                                           asJavaString() + "\"");
View Full Code Here

Examples of com.volantis.xml.namespace.ImmutableExpandedName

            factory.createIntValue(1),
            factory.createIntValue(2)
        });

        context.getCurrentScope().declareVariable(
                new ImmutableExpandedName("", "first"),
                first);

        context.getCurrentScope().declareVariable(
                new ImmutableExpandedName("", "second"),
                second);

        doTestOperatorExpression("<", "$first < $second", false);
    }
View Full Code Here

Examples of com.volantis.xml.namespace.ImmutableExpandedName

            factory.createIntValue(1),
            factory.createIntValue(2)
        });

        context.getCurrentScope().declareVariable(
                new ImmutableExpandedName("", "first"),
                first);

        context.getCurrentScope().declareVariable(
                new ImmutableExpandedName("", "second"),
                second);

        doTestOperatorExpression("<", "$first < $second", true);
    }
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.