Package org.jitterbit.integration.data.entity.transformation

Examples of org.jitterbit.integration.data.entity.transformation.TransformationExpressionSource


    }

    @Override
    public void display(ExpressionSource s) {
        checkArgument(s instanceof TransformationExpressionSource, "s must be a TransformationExpressionSource");
        final TransformationExpressionSource mapping = (TransformationExpressionSource) s;
        addPostPageLoadingJob(new Runnable() {

            @Override
            public void run() {
                showMapping(mapping.getTargetNode());
            }
        });
    }
View Full Code Here


        this.treeMapper = treeMapper;
        this.sourceTreeFactory = sourceTreeFactory;
        sourceDEs = new SourceTreeDataElementContainer(treeMapper.m_sourceTreeComponent);
        sourceTree = sourceTreeFactory.newSourceTree();
        sourceTreeLayout = layoutSourceTree();
        exprSource = new TransformationExpressionSource(treeMapper.getTransformation(), new NodePath(targetDE));
        scriptModel = createScriptBuilderModel(project);
        Node target=treeMapper.findTargetNode(targetDE);
        scriptBuilder = createScriptBuilder(project, modeSelector, target, expression);
        expressionParser = createExpressionParser();
        expressionScanner = createExpressionScanner();
View Full Code Here

    public ExpressionArea getExpressionArea() {
        return scriptBuilder.getExpressionArea();
    }

    public void setNodeMappingToDisplay(String targetDE, String expression) {
        exprSource = new TransformationExpressionSource(treeMapper.getTransformation(), new NodePath(targetDE));
        expressionParser = createExpressionParser();
        scriptModel.setSource(exprSource);
        TargetNode targetNode = getTargetNode(targetDE);
        scriptBuilder.getDebugUi().getModel().setTargetNode(targetNode);
        expressionScanner.uninstall(getExpressionArea().getTextPane());
View Full Code Here

        script = createScript("$x = 1");
        project.insertEntityUnderRoot(script);
        tf = new Transformation("Test");
        mappedNode = new NodePath("a.b.c");
        tf.setMapList(Arrays.asList(mappedNode.path + "\t" + ScriptConstants.wrapInTags("$x")));
        mappedNodeSource = new TransformationExpressionSource(tf, mappedNode);
        project.insertEntityUnderRoot(tf);
        dataElements = new DefaultGlobalDataElements();
        dataElements.scanProject(project);
    }
View Full Code Here

        @Override
        public void display(ExpressionSource s) {
            if (s instanceof Script) {
                pageDisplayer.openPage((Script) s);
            } else if (s instanceof TransformationExpressionSource) {
                TransformationExpressionSource tes = (TransformationExpressionSource) s;
                Editor page = pageDisplayer.openPage(tes.getTransformation());
                if (page instanceof ExpressionSourceDisplayer) {
                    ((ExpressionSourceDisplayer) page).display(s);
                }
            }
        }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.data.entity.transformation.TransformationExpressionSource

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.