Package org.jitterbit.integration.structure.mapping

Examples of org.jitterbit.integration.structure.mapping.NodePath


    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


    public NodeSuggestionStrategy(Node selectedNode) {
        selectedNodeName = getNodeName(selectedNode);
    }

    private static String getNodeName(Node n) {
        NodePath path = new NodePath(n.m_deName);
        return path.getLeafName().toLowerCase().replace("_", "");
    }
View Full Code Here

        treeMapper.m_stackVector=null;
        removeUnsavedDataElements();
    }

    private void removeUnsavedDataElements() {
        NodePath targetPath = (mapping != null ? mapping.getTargetPath() :
            (targetDE != null ? new NodePath(targetDE) : null));
        if (targetPath != null) {
            TransformationVariables des = treeMapper.getDataElements();
            des.scanMapping(treeMapper.getTransformation(), targetPath, originalExpression);
        }
    }
View Full Code Here

            String command = e.getActionCommand();
            if (command.equals(cmd_add_condition)) {
                insertPreconditionNode(m_rightClickNode);
                refresh();
            } else if (command.equals(cmd_delete_mapping)) {
                m_TreeMapper.deleteMapping(new NodePath(m_rightClickNode.m_deName));
            } else if (command.equals(cmd_delete_folder_mapping)) {
                m_TreeMapper.deleteAllMappings(m_rightClickNode);
            } else if (command.equals(cmd_remove_condition)) {
                m_rightClickNode.deletePreCondition();
                refresh();
View Full Code Here

        }

        private void updateLdapCommand(Node node, String command_name, String cmd) {
            Node command = node.isFolder() ? (node.findLeaf(command_name)) : node;
            command.setCmd(cmd);
            m_TreeMapper.deleteMapping(new NodePath(command.m_deName));
            NodeMapping mp = m_TreeMapper.getNodeMappingFactory().newMapping(command.m_deName, cmd);
            MappingManager mappings = m_TreeMapper.getMappingManager();
            mappings.addMapping(mp);
            m_TreeMapper.updateMappingFlag();
            m_TreeMapper.updateMapAreaTables(command.m_deName, cmd);
View Full Code Here

    public void setup() {
        project = IntegrationProject.createNewProject("Test");
        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

TOP

Related Classes of org.jitterbit.integration.structure.mapping.NodePath

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.