Package org.jitterbit.integration.structure.reader

Examples of org.jitterbit.integration.structure.reader.JbNode


        }
        fireNewDataInstance(node.m_deName);
    }

    private void init_child_instance_recursive(Node node){
      JbNode jbNode=node.m_jbNode;
      for(Node child: node.getChildren()){
        if(child.isFolder()){
            CROM dtd=child.m_CROM;
            JbNode jbChild=null;
          if(jbNode!=null){
            jbChild=jbNode.getChild(dtd.getName());
          }
            if(dtd.isLoopNode()){
              if(jbChild!=null && jbChild.getChildren().size()>0){
                jbChild=jbChild.getChildren().get(0);
              }
              else jbChild=null;
            }
          child.m_jbNode=jbChild;
          init_child_instance_recursive(child);
View Full Code Here


     */
    public void nextInstance(TreeComponent tree, Node node) {
        checkThread("nextInstance");
        if(!node.isLoopNode())return;
        if(node.m_jbNode==null)return;
        JbNode jbNode=node.m_jbNode;
        if(!jbNode.isInstance())return;

        int ninstances=jbNode.getParent().getChildren().size(),
          instance = (jbNode.getInstanceNumber() + 1)%ninstances;
        jbNode=jbNode.getParent().getChildren().get(instance);
        displayInstance(tree, node, jbNode);
    }
View Full Code Here

     */
    public void previousInstance(TreeComponent tree, Node node) {
        checkThread("previousInstance");
        if(!node.isLoopNode())return;
        if(node.m_jbNode==null)return;
        JbNode jbNode=node.m_jbNode;
        if(jbNode.isInstance()==false)return;

        int ninstances=jbNode.getParent().getChildren().size();
        int instance = (jbNode.getInstanceNumber() - 1 + ninstances)%ninstances;
        jbNode=jbNode.getParent().getChildren().get(instance);
        displayInstance(tree, node, jbNode);
    }
View Full Code Here

        if (searchParams.getNodeType() == NodeSearchType.DATA_NODES) {
          DocReader reader=node.getTreeComponent().m_DocReader;
          if(reader==null)return;
            try {
        if (node.m_jbNode != null) {
          JbNode jbNode=node.m_jbNode;
          if(jbNode.isInstance())jbNode=jbNode.getParent();
            jbNode.doSearch(matchingNodes, searchString_lowercase, reader);
        } else {
            for (Node child : node.getChildren()) {
                findMatchingNodes(searchParams, child);
            }
        }
View Full Code Here

                Node node=m_rightClickNode;
                if(m_rightClickNode==getSalesForceNode()){
                    node=m_rightClickNode.m_parent;
                }
                assert node.isLoopNode();
                JbNode jbNode=node.m_jbNode;
                if(jbNode==null)return;
                List<JbNode> jbNodes=jbNode.getParent().getChildren();
                int nInstance=jbNodes.size();
                int instance = InstanceDialog.getInstance(m_TreeMapper.getOwner(), nInstance);
                if (instance > 0) {
                    DataTree dataTree = getDataTree();
                    dataTree.displayInstance(TreeComponent.this, node, jbNodes.get(instance-1));
                }
            } else if (command.startsWith(INSTANCE_STRING)) {
                String istr = command.substring(INSTANCE_STRING.length());
                int instance = Integer.parseInt(istr);
                DataTree dataTree = getDataTree();
                Node node=m_rightClickNode;
                if(node.getCROM()==simpleSalesforceCrom)node=node.m_parent;
                List<JbNode>jbChildren=null;
                if(node.m_jbNode!=null)jbChildren=node.m_jbNode.getParent().getChildren();
                JbNode jbNode=null;
                if(jbChildren!=null && instance>0 && instance <=jbChildren.size())jbChildren.get(instance-1);
                dataTree.displayInstance(TreeComponent.this, node, jbNode);
            } else if (command.equals(cmd_ldap_entry_add)) {
                updateLdapCommand(m_rightClickNode, LdapStringConstants.entry_command_name, "Add");
            } else if (command.equals(cmd_ldap_entry_delete)) {
View Full Code Here

        private void selectInstance(Node node) {
            if(node.getCROM()==simpleSalesforceCrom){
              node=node.m_parent;
            }
            JbNode jbNode = node.m_jbNode;
            if (jbNode == null || jbNode.isInstance()==false)
                return;

            List<JbNode> jbNodes=jbNode.getParent().getChildren();
            int n = jbNodes.size();
            if (n < 2)
                return;
            if (n > 5) {
                int instance = InstanceDialog.getInstance(m_TreeMapper.getOwner(), n);
View Full Code Here

          try {
              dbTarget.runPreTargetStatement(params);
            targetDataFile= new OutputStreamWriter(new FileOutputStream(dataFileName+".final"),"UTF-8");//new RandomAccessFile(new File(dataFileName+".final"),"rw");
          reader=new TextDocReader(new File(dataFileName), "UTF-8");
          dbTarget.writeLog("Processing target file: ", dataFileName);
          JbNode jbRoot=reader.parse_all();
          List<JbNode> rows=jbRoot.m_children;
              for(JbNode row: rows){
                String line=row.getStr(reader);
                  char override=dbTarget.parseCsvValues(line);
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.structure.reader.JbNode

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.