Package org.jitterbit.integration.client.ui.interchange.entity.transformation.tree.mappings

Examples of org.jitterbit.integration.client.ui.interchange.entity.transformation.tree.mappings.NodeMapping


        }
        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();
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);
            }
View Full Code Here

            if (targetDe == null || targetDe.length() == 0) {
                Alert.error(this, "The selected target node cannot be mapped to.", "Illegal Mapping");
                return;
            }
            String sourceExpr = "";
            NodeMapping existingMapping = mappingManager.findMapping(targetDe);
            if (existingMapping != null) {
                sourceExpr = existingMapping.getExpression();
            }
            if (m_sourceTreeComponent.m_highLightedNode != null && sourceExpr == "") {
                Node source = m_sourceTreeComponent.m_highLightedNode;
                if (!isValidSourceNodeForMapping(target, source)) {
                    return;
                }
                if (targetDe.length() == 0) {
                    Alert.error(this, "This target data element cannot be mapped.", "Illegal Mapping");
                    return;
                }
                if (source.isFolder()) {
                    showFormula("", targetDe, existingMapping, result);
                    return;
                }
                NodeMapping newMapping = addMappingImpl(source, target);
                if (showFormulaBuilder) {
                    showFormula(sourceExpr, targetDe, newMapping, result);
                }
            } else {
                showFormula(sourceExpr, targetDe, existingMapping, result);
View Full Code Here

        }
  }

    private NodeMapping addMappingImpl(Node source, Node target) {
        String sourceExpr = createSourceExpressionForNodeToNodeMapping(source);
        NodeMapping newMapping = mappingFactory.newMapping(target.m_deName, sourceExpr);
        m_stackVector = m_transform.getRpnTokenVector(sourceExpr);
        mappingManager.addMapping(newMapping);
        updateMappingFlag();
        updateMapAreaTables(target.m_deName, sourceExpr);
        mappingManager.changeHighLighted(newMapping);
View Full Code Here

      }
      if (!isValidTargetNodeForMapping(target)) {
          return;
      }
      String targetDe = target.m_deName;
        NodeMapping existingMapping = mappingManager.findMapping(targetDe);
        if (existingMapping != null) {
            String sourceExpr = existingMapping.getExpression();
            showFormula(sourceExpr, targetDe, existingMapping, null);
        } else {
            addMappingImpl(source, target);
        }
  }
View Full Code Here

    private void saveGeneratorMappings(Node targetNode){
      if(targetNode.isRootLoopNode()){
        try {
          // when target is root (corresponds to the node label TARGET:...) no generator should be specified
          if(targetNode.isRoot()==false){
           NodeMapping toAdd = getNodeMappingFactory().newMapping(targetNode.m_deName, targetNode.m_mappingKits.getGeneratorString());
          getMappingManager().addMapping(toAdd);
          }
      } catch (Exception e) {
        e.printStackTrace();
      }
View Full Code Here

    if(targetDe.length()==0)return false;
    if (mappingManager.findMapping(targetDe) != null) {
        return false;// ignore if it is already mapped;
    }
    String sourceExpr=ScriptConstants.wrapInTags(s.m_deName);
    NodeMapping newMapping = mappingFactory.newMapping(targetDe, sourceExpr);
    m_stackVector=m_transform.getRpnTokenVector(sourceExpr);
    mappingManager.addMapping(newMapping);
    updateMapAreaTables(targetDe,sourceExpr);
    if(bUpdateUI){
        mappingManager.changeHighLighted(newMapping);
View Full Code Here

    }
    m_sourceTreeComponent.showNode(node, true);
    }

    public void selectTargetNode(Node node, boolean bControlDown){
        NodeMapping mp = mappingManager.showMapping((node != null && node.isTargetMapped()) ? node.m_deName : null);
        m_sourceTreeComponent.updateUnderlineNodes(node);
        int nSource = m_sourceTreeComponent.m_selectedNodes.size();
        if (nSource > 0 && m_bMappingMode==bControlDown) {
            if (mp == mp_saved) {
                iSource_saved++;
View Full Code Here

        }
    }

    private void resolveMapping(boolean setDirty) {
        MappingManager mappings = treeMapper.getMappingManager();
        NodeMapping mp = mappings.findMapping(targetNode.m_deName);
        if(targetNode.getSourcePath()!=null){
          if(mp==null) {
                mp = treeMapper.getNodeMappingFactory().newMapping(targetNode.m_deName, targetNode.getSourcePath());
                mappings.addMapping(mp);
          }
View Full Code Here

            getTreeMapper().removeTargetNode(node);
            m_TreeComponent.setDirty();
            m_TreeComponent.repaint();
        } else {
            MappingManager mgr = getTreeMapper().getMappingManager();
            NodeMapping mp = mgr.findMapping(node.m_deName);
            mgr.changeHighLighted(mp);
            deleteMappedPreCondition(mp);
        }
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.client.ui.interchange.entity.transformation.tree.mappings.NodeMapping

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.