Package org.jitterbit.integration.structure.mapping

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


        collectAllTargetPaths(paths);
        return paths;
    }

    private void collectAllTargetPaths(List<NodePath> paths) {
        paths.add(new NodePath(m_deName));
        for (Node child : m_children) {
            if (child.isFolder()) {
                child.collectAllTargetPaths(paths);
            }
            if (child.m_deName != null && child.m_deName.length() > 0) {
                paths.add(new NodePath(child.m_deName));
            }
        }
    }
View Full Code Here


            e.printStackTrace();
        }
    }

    public NodeMapping findMapping(String targetDE) {
        NodePath path = new NodePath(targetDE);
        for (NodeMapping m : mappings) {
            if (m.getTargetPath().equals(path)) {
                return m;
            }
        }
View Full Code Here

    public void replaceMappingSilently(String expression, String target) {
        replaceMappingImpl(expression, target, true);
    }

    private void replaceMappingImpl(String expression, String target, boolean silently) {
        NodePath targetPath = new NodePath(target);
        NodeMapping toReplace = mappings.get(targetPath);
        if (toReplace == null) {
            toReplace = treeMapper.getNodeMappingFactory().newMapping(targetPath, expression);
            addMapping(toReplace);
        } else {
View Full Code Here

    }

    public NodeMapping showMapping(String target) {
        NodeMapping m = null;
        if (target != null) {
            m = mappings.get(new NodePath(target));
        }
        if (mapFileRead) {
            changeHighLighted(m);
        }
        return m;
View Full Code Here

        }
        if (cmd_node == null) {
            return;
        }
        node.m_CROM.addType(CROM.CROM_t_LdapAttributeReplaceAll);
        NodeMapping mapping = tm.getNodeMappingFactory().newMapping(new NodePath(cmd_path), cmd);
        tm.getMappingManager().addMapping(mapping);
        if (old_value_node != null) {
            tree.getTreeMapper().deleteMapping(new NodePath(old_value_path));
        }
        tm.updateMappingFlag();
        tm.updateMapAreaTables(cmd_path, cmd);
        tm.getMappingManager().changeHighLighted(mapping);
        tm.setDirty(true);
View Full Code Here

            if (cmd_node == null) {
                return;
            }
            node.m_CROM.clearType(CROM.CROM_t_LdapAttributeReplaceAll);
            node.m_CROM.addType(CROM.CROM_t_LdapAttributeRemove);
            NodeMapping mapping = treeMapper.getNodeMappingFactory().newMapping(new NodePath(cmd_path), cmd);
            treeMapper.getMappingManager().addMapping(mapping);
            tree.getTreeMapper().deleteMapping(new NodePath(value_path));
            if (old_value_node == null && node.isLoopNode()) {
                insertOldValueNode(tree, node);
            }
            treeMapper.updateMappingFlag();
            treeMapper.updateMapAreaTables(cmd_path, cmd);
            treeMapper.getMappingManager().changeHighLighted(mapping);
            treeMapper.setDirty(true);
        } else { // update attribute
            if (!bAttributeRemove && !bAttributeReplaceAll) {
                return;
            }
            node.m_CROM.clearType(CROM.CROM_t_LdapAttributeReplaceAll | CROM.CROM_t_LdapAttributeRemove);
            if (cmd_node != null) {
                tree.getTreeMapper().deleteMapping(new NodePath(cmd_path));
                node.removeChild(cmd_node);
                treeMapper.updateMappingFlag();
                treeMapper.getMappingManager().changeHighLighted(null);
                treeMapper.setDirty(true);
            }
View Full Code Here

    public void removeInvalidMappingsListener(InvalidMappingsListener lst) {
        invalidMappingsListener.remove(lst);
    }
   
    public void addInvalidMapping(InvalidMapping mapping) {
        NodePath key = mapping.getTargetPath();
        InvalidMapping old_mapping=invalidMappings.get(key);
        boolean sendChange = old_mapping==null || !old_mapping.equals(mapping);
        invalidMappings.put(key, mapping);
        if (sendChange) {
            fireInvalidMappingsChanged();
View Full Code Here

        // Use a LinkedHashMap for the invalid mappings, to preserve the order of the mappings
        return Maps.newLinkedHashMap();
    }
   
    public InvalidMapping getInvalidMapping(Node target){
      return invalidMappings.get(new NodePath(target.m_deName));
    }
View Full Code Here

          .append(m_generator)
          .append("\n");
      for(Node conflict:conflictSet){
        err.append(conflict.m_deName).append("\n");
      }
      invalidMappings.add(new InvalidMapping(new NodePath(m_node.m_deName), m_generator, err.toString()));
    }
  }
View Full Code Here

        model.addNodesFoundListener(new NodesFoundListener());
        installBindings();
    }

    private KongaTextField createSelectedNodeField() {
        NodePath path = new NodePath(model.getSelectedNode().m_deName);
        String nodeName = path.getLeafName();
        KongaTextField field = new KongaTextField(nodeName);
        field.setEditable(false);
        return field;
    }
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.