Examples of CROM


Examples of org.jitterbit.integration.structure.crom.CROM

        ErrorLog.attention(this, null, e);
    }

    private boolean isObjectAlreadyThere(Node parent) {
        for(Node childNode: parent.getChildren()){
            CROM child=childNode.getCROM();
            if (child.isTypeDefinition() && child.getName().equals(objectName.getLocalName())) {
                if (hasSimplifiedMappingTree()) {
                    currentTree.setSimpleSfdcRepresentationRoot(childNode);
                }
                return true;
            }
View Full Code Here

Examples of org.jitterbit.integration.structure.crom.CROM

        return false;
    }

    private CROM getTypeDef() {
        assert objectName != null;
        CROM typeDef = currentTree.get_element_type(objectName.toString());
        if (typeDef == null) {
            reportMissingObjectType();
        }
        return typeDef;
    }
View Full Code Here

Examples of org.jitterbit.integration.structure.crom.CROM

          child_name=StringUtils.substringBefore(token, "#");
          break;
        }
      }
      if(jbNode!=null){
        CROM dtd=jbNode.getCrom();
        if(dtd.isLoopNode())
          return jbNode.m_children;
        else
          throw new RuntimeException("replaceWithChildNode() failed, the final replacement child should be a loop node. subpath:"+subPath);
      }
      else {
View Full Code Here

Examples of org.jitterbit.integration.structure.crom.CROM

  }

  JbNode findParentInstance(String path){
    JbNode parent=jbGenerator;
    if(parent==null)return null;
    CROM dtd=parent.getCrom();
    while(!path.startsWith(dtd.getPath_(isFlat, false))){
      parent=parent.getParent();
      if(parent==null)break;
      dtd=parent.getCrom();
    }
    return parent;
View Full Code Here

Examples of org.jitterbit.integration.structure.crom.CROM

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

Examples of org.jitterbit.integration.structure.crom.CROM

     * storage for the node
     */
    public Node(TreeComponent tc, Node parent, int insert_pos, String name, boolean bold, String deName,
                    boolean isFolder) {
        m_TreeComponent = tc;
        CROM crom_parent = parent == null ? null : parent.m_CROM;
        m_CROM = new CROM(crom_parent, isFolder, name, insert_pos,
                CromType.CROM_t_Unknown);
        m_parent = parent;
        if (m_parent != null) {
            m_parent.addChild(this);
        }
View Full Code Here

Examples of org.jitterbit.integration.structure.crom.CROM

      }
    }
    setBoldFlag(bold);
    setTargetMappedFlag(false);
    m_p = new Point();
    CROM crom_parent = (parent == null) ? null : parent.m_CROM;
    m_CROM = new CROM(crom_parent, isFolder, name, insert_pos, CromType.CROM_t_Unknown);
    m_CROM.setValueType(getDataTypeFromDisplayText(name));
    if(deName==null) {
      deName="";
    }
    if (isFolder()) {
View Full Code Here

Examples of org.jitterbit.integration.structure.crom.CROM

     * cloning constructor for multiple mapping don't clone m_children, it will
     * be created in insertElement
     */
    private Node(TreeComponent tc, Node parent, Node node, CROM last, int i_mapping) {
        m_TreeComponent = tc;
        CROM crom_to_be_clone=node.m_CROM;
        m_CROM = new CROM(parent.m_CROM, crom_to_be_clone, last);
        m_status = node.m_status;
        setIdentityFlag();
        setTargetMappedFlag(false);
        m_p = new Point();
        String name = node.getMultipleMappingName(i_mapping);
View Full Code Here

Examples of org.jitterbit.integration.structure.crom.CROM

    }

    public Node insertDerivedTypeNode(CROM element_type, String name_) {
        if(!isFolder())return null;
        Stack<String> exploded=new Stack<String>();
        CROM clone=new CROM(m_CROM, element_type, m_TreeComponent.xsdExpandMinimum,
                m_TreeComponent.getElementTypeMap(), exploded, "");
        if(name_!=null)clone.setName(name_);
        Node node=createChildrenFromCROM(clone, exploded, "");
        setFullyExpanded();
        node.setFullyExpanded();
        m_TreeComponent.setDirty();
        if (getTreeMapper() != null) {
View Full Code Here

Examples of org.jitterbit.integration.structure.crom.CROM

    @Override
    protected void addExtension(CROM_Tree cromTree, CROM parent, CROM toInsert) {
        Stack<String> exploded = new Stack<String>();
        boolean xsdExpandMinimum = true;
        CROM clone = new CROM(parent, toInsert, xsdExpandMinimum, cromTree.getElementTypeMap(), exploded, "");
        clone.setType(CROM.CROM_t_Element);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.