Package org.jitterbit.integration.data.script.de

Examples of org.jitterbit.integration.data.script.de.DataElementReference


    private void verifySingleReference(String expression, String deName, AccessType type) {
        Result result = parser.parse(ScriptConstants.wrapInTags(expression));
        Set<DataElementReference> refs = result.getGlobalDataElementReferences();
        assertEquals(1, refs.size());
        DataElementReference ref = refs.iterator().next();
        assertSame(script, ref.getSource());
        assertEquals(EnumSet.of(type), ref.getAccessType());
        assertEquals(deName, ref.getDataElement());
    }
View Full Code Here


    @Test
    public void ensureBothSetAndGetWorks() {
        Result result = parser.parse(ScriptConstants.wrapInTags("$x = 2; $x"));
        Set<DataElementReference> refs = result.getGlobalDataElementReferences();
        assertEquals(1, refs.size());
        DataElementReference ref = refs.iterator().next();
        assertSame(script, ref.getSource());
        assertEquals("x", ref.getDataElement());
        assertEquals(EnumSet.of(AccessType.GET, AccessType.SET), ref.getAccessType());
    }
View Full Code Here

    }
   
    public Set<DataElementReference> getGlobalDataElementReferences(ExpressionSource source) {
        Set<DataElementReference> refs = Sets.newHashSet();
        for (Map.Entry<String, EnumSet<AccessType>> e : globalDEs.entrySet()) {
            refs.add(new DataElementReference(e.getKey(), source, e.getValue()));
        }
        return refs;
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.script.de.DataElementReference

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.