Package com.volantis.xml.expression.impl

Examples of com.volantis.xml.expression.impl.SimpleVariable


        ExpandedName name = new ImmutableExpandedName("uri://",
                                                      "fred");
        ExpandedName other = new MutableExpandedName("uri://",
                                                     "jim");
        Value value = new SimpleStringValue(factory, "hello");
        Variable nameVar = new SimpleVariable(factory,
                                              name,
                                              value);
        Variable otherVar = new SimpleVariable(factory,
                                               other,
                                               value);

        assertEquals("name for nameVar not as",
                     name,
                     nameVar.getName());
        assertTrue("name for nameVar not immutable",
                   nameVar.getName() instanceof ImmutableExpandedName);

        assertEquals("name for otherVar not as",
                     other,
                     otherVar.getName());
        assertTrue("name for otherVar not immutable",
                   otherVar.getName() instanceof ImmutableExpandedName);
    }
View Full Code Here


        ExpandedName name = new ImmutableExpandedName("uri://",
                                                      "fred");
        ExpandedName other = new MutableExpandedName("uri://",
                                                     "jim");
        Value value = new SimpleStringValue(factory, "hello");
        Variable nameVar = new SimpleVariable(factory,
                                              name,
                                              value);
        Variable otherVar = new SimpleVariable(factory,
                                               other,
                                               value);

        assertSame("value for nameVar not as",
                   value,
                   nameVar.getValue());
        assertSame("value for otherVar not as",
                   value,
                   otherVar.getValue());
    }
View Full Code Here

TOP

Related Classes of com.volantis.xml.expression.impl.SimpleVariable

Copyright © 2018 www.massapicom. 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.