protected void loadFields(
     com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper)
     throws java.io.IOException, com.sforce.ws.ConnectionException {
   __in.peekTag();
   if (__typeMapper.isElement(__in, actions__typeInfo)) {
     setActions(
         (com.sforce.soap.metadata.WorkflowActionReference[])
             __typeMapper.readObject(
                 __in,
                 actions__typeInfo,
                 com.sforce.soap.metadata.WorkflowActionReference[].class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, timeLength__typeInfo)) {
     setTimeLength((int) __typeMapper.readInt(__in, timeLength__typeInfo, int.class));
   }
   __in.peekTag();
   if (__typeMapper.verifyElement(__in, workflowTimeTriggerUnit__typeInfo)) {
     setWorkflowTimeTriggerUnit(
         (com.sforce.soap.metadata.MilestoneTimeUnits)
             __typeMapper.readObject(
                 __in,
                 workflowTimeTriggerUnit__typeInfo,
                 com.sforce.soap.metadata.MilestoneTimeUnits.class));
   }
 }
 protected void loadFields(
     com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper)
     throws java.io.IOException, com.sforce.ws.ConnectionException {
   super.loadFields(__in, __typeMapper);
   __in.peekTag();
   if (__typeMapper.isElement(__in, CreatedBy__typeInfo)) {
     setCreatedBy(
         (com.sforce.soap.enterprise.sobject.User)
             __typeMapper.readObject(
                 __in, CreatedBy__typeInfo, com.sforce.soap.enterprise.sobject.User.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, CreatedById__typeInfo)) {
     setCreatedById(__typeMapper.readString(__in, CreatedById__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, CreatedDate__typeInfo)) {
     setCreatedDate(
         (java.util.Calendar)
             __typeMapper.readObject(__in, CreatedDate__typeInfo, java.util.Calendar.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, LastModifiedBy__typeInfo)) {
     setLastModifiedBy(
         (com.sforce.soap.enterprise.sobject.User)
             __typeMapper.readObject(
                 __in, LastModifiedBy__typeInfo, com.sforce.soap.enterprise.sobject.User.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, LastModifiedById__typeInfo)) {
     setLastModifiedById(
         __typeMapper.readString(__in, LastModifiedById__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, LastModifiedDate__typeInfo)) {
     setLastModifiedDate(
         (java.util.Calendar)
             __typeMapper.readObject(__in, LastModifiedDate__typeInfo, java.util.Calendar.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, MemberId__typeInfo)) {
     setMemberId(__typeMapper.readString(__in, MemberId__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, SystemModstamp__typeInfo)) {
     setSystemModstamp(
         (java.util.Calendar)
             __typeMapper.readObject(__in, SystemModstamp__typeInfo, java.util.Calendar.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, TeamRoleId__typeInfo)) {
     setTeamRoleId(__typeMapper.readString(__in, TeamRoleId__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, TeamTemplateId__typeInfo)) {
     setTeamTemplateId(
         __typeMapper.readString(__in, TeamTemplateId__typeInfo, java.lang.String.class));
   }
 }
Example #3
0
 protected void loadFields(
     com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper)
     throws java.io.IOException, com.sforce.ws.ConnectionException {
   super.loadFields(__in, __typeMapper);
   __in.peekTag();
   if (__typeMapper.isElement(__in, ccEmails__typeInfo)) {
     setCcEmails(
         (java.lang.String[])
             __typeMapper.readObject(__in, ccEmails__typeInfo, java.lang.String[].class));
   }
   __in.peekTag();
   if (__typeMapper.verifyElement(__in, description__typeInfo)) {
     setDescription(
         (java.lang.String)
             __typeMapper.readString(__in, description__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.verifyElement(__in, _protected__typeInfo)) {
     setProtected((boolean) __typeMapper.readBoolean(__in, _protected__typeInfo, boolean.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, recipients__typeInfo)) {
     setRecipients(
         (com.sforce.soap.metadata.WorkflowEmailRecipient[])
             __typeMapper.readObject(
                 __in,
                 recipients__typeInfo,
                 com.sforce.soap.metadata.WorkflowEmailRecipient[].class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, senderAddress__typeInfo)) {
     setSenderAddress(
         (java.lang.String)
             __typeMapper.readString(__in, senderAddress__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, senderType__typeInfo)) {
     setSenderType(
         (com.sforce.soap.metadata.ActionEmailSenderType)
             __typeMapper.readObject(
                 __in,
                 senderType__typeInfo,
                 com.sforce.soap.metadata.ActionEmailSenderType.class));
   }
   __in.peekTag();
   if (__typeMapper.verifyElement(__in, template__typeInfo)) {
     setTemplate(
         (java.lang.String)
             __typeMapper.readString(__in, template__typeInfo, java.lang.String.class));
   }
 }
Example #4
0
  private XMLizable bind(XmlInputStream xin, QName responseElement, Class responseType)
      throws IOException, ConnectionException {

    readSoapEnvelopeStart(xin);

    xin.peekTag();
    typeMapper.verifyTag(
        responseElement.getNamespaceURI(),
        responseElement.getLocalPart(),
        xin.getNamespace(),
        xin.getName());

    // todo: change responseElement to typeInfo.
    TypeInfo info =
        new TypeInfo(
            responseElement.getNamespaceURI(),
            responseElement.getLocalPart(),
            null,
            null,
            1,
            1,
            true);

    XMLizable result = (XMLizable) typeMapper.readObject(xin, info, responseType);
    readSoapEnvelopeEnd(xin);
    return result;
  }
 protected void loadFields(
     com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper)
     throws java.io.IOException, com.sforce.ws.ConnectionException {
   __in.peekTag();
   if (__typeMapper.verifyElement(__in, editable__typeInfo)) {
     setEditable((boolean) __typeMapper.readBoolean(__in, editable__typeInfo, boolean.class));
   }
   __in.peekTag();
   if (__typeMapper.verifyElement(__in, label__typeInfo)) {
     setLabel(
         (java.lang.String)
             __typeMapper.readString(__in, label__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, layoutComponents__typeInfo)) {
     setLayoutComponents(
         (com.sforce.soap.enterprise.DescribeLayoutComponent[])
             __typeMapper.readObject(
                 __in,
                 layoutComponents__typeInfo,
                 com.sforce.soap.enterprise.DescribeLayoutComponent[].class));
   }
   __in.peekTag();
   if (__typeMapper.verifyElement(__in, placeholder__typeInfo)) {
     setPlaceholder(
         (boolean) __typeMapper.readBoolean(__in, placeholder__typeInfo, boolean.class));
   }
   __in.peekTag();
   if (__typeMapper.verifyElement(__in, required__typeInfo)) {
     setRequired((boolean) __typeMapper.readBoolean(__in, required__typeInfo, boolean.class));
   }
 }
 protected void loadFields(
     com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper)
     throws java.io.IOException, com.sforce.ws.ConnectionException {
   __in.peekTag();
   if (__typeMapper.verifyElement(__in, label__typeInfo)) {
     setLabel(
         (java.lang.String)
             __typeMapper.readString(__in, label__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.verifyElement(__in, logoUrl__typeInfo)) {
     setLogoUrl(
         (java.lang.String)
             __typeMapper.readString(__in, logoUrl__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, namespace__typeInfo)) {
     setNamespace(
         (java.lang.String)
             __typeMapper.readString(__in, namespace__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.verifyElement(__in, selected__typeInfo)) {
     setSelected((boolean) __typeMapper.readBoolean(__in, selected__typeInfo, boolean.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, tabs__typeInfo)) {
     setTabs(
         (com.sforce.soap.partner.DescribeTab[])
             __typeMapper.readObject(
                 __in, tabs__typeInfo, com.sforce.soap.partner.DescribeTab[].class));
   }
 }
 protected void loadFields(
     com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper)
     throws java.io.IOException, com.sforce.ws.ConnectionException {
   __in.peekTag();
   if (__typeMapper.verifyElement(__in, masterRecord__typeInfo)) {
     setMasterRecord(
         (com.sforce.soap.partner.sobject.SObject)
             __typeMapper.readObject(
                 __in, masterRecord__typeInfo, com.sforce.soap.partner.sobject.SObject.class));
   }
   __in.peekTag();
   if (__typeMapper.verifyElement(__in, recordToMergeIds__typeInfo)) {
     setRecordToMergeIds(
         (java.lang.String[])
             __typeMapper.readObject(__in, recordToMergeIds__typeInfo, java.lang.String[].class));
   }
 }
Example #8
0
  protected void loadFields(
      com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper)
      throws java.io.IOException, com.sforce.ws.ConnectionException {

    __in.peekTag();
    if (__typeMapper.isElement(__in, result__typeInfo)) {
      setResult((String[]) __typeMapper.readObject(__in, result__typeInfo, String[].class));
    }
  }
Example #9
0
 protected void loadFields(
     com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper)
     throws java.io.IOException, com.sforce.ws.ConnectionException {
   super.loadFields(__in, __typeMapper);
   __in.peekTag();
   if (__typeMapper.isElement(__in, CreatedBy__typeInfo)) {
     setCreatedBy(
         (com.sforce.soap.enterprise.sobject.User)
             __typeMapper.readObject(
                 __in, CreatedBy__typeInfo, com.sforce.soap.enterprise.sobject.User.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, CreatedById__typeInfo)) {
     setCreatedById(
         (java.lang.String)
             __typeMapper.readString(__in, CreatedById__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, Queue__typeInfo)) {
     setQueue(
         (com.sforce.soap.enterprise.sobject.Group)
             __typeMapper.readObject(
                 __in, Queue__typeInfo, com.sforce.soap.enterprise.sobject.Group.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, QueueId__typeInfo)) {
     setQueueId(
         (java.lang.String)
             __typeMapper.readString(__in, QueueId__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, SobjectType__typeInfo)) {
     setSobjectType(
         (java.lang.String)
             __typeMapper.readString(__in, SobjectType__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, SystemModstamp__typeInfo)) {
     setSystemModstamp(
         (java.util.Calendar)
             __typeMapper.readObject(__in, SystemModstamp__typeInfo, java.util.Calendar.class));
   }
 }
 protected void setSObjectType(
     com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper)
     throws java.io.IOException, com.sforce.ws.ConnectionException {
   __in.peekTag();
   if (__typeMapper.isElement(__in, sObjectType__typeInfo)) {
     setSObjectType(
         (java.lang.String[])
             __typeMapper.readObject(__in, sObjectType__typeInfo, java.lang.String[].class));
   }
 }
 protected void setLayoutItems(
     com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper)
     throws java.io.IOException, com.sforce.ws.ConnectionException {
   __in.peekTag();
   if (__typeMapper.verifyElement(__in, layoutItems__typeInfo)) {
     setLayoutItems(
         (com.sforce.soap.partner.DescribeLayoutItem[])
             __typeMapper.readObject(
                 __in, layoutItems__typeInfo, com.sforce.soap.partner.DescribeLayoutItem[].class));
   }
 }
Example #12
0
 protected void setDifference(
     com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper)
     throws java.io.IOException, com.sforce.ws.ConnectionException {
   __in.peekTag();
   if (__typeMapper.verifyElement(__in, difference__typeInfo)) {
     setDifference(
         (com.sforce.soap.partner.DifferenceType)
             __typeMapper.readObject(
                 __in, difference__typeInfo, com.sforce.soap.partner.DifferenceType.class));
   }
 }
 protected void loadFields(
     com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper)
     throws java.io.IOException, com.sforce.ws.ConnectionException {
   __in.peekTag();
   if (__typeMapper.isElement(__in, actions__typeInfo)) {
     setActions(
         (com.sforce.soap.partner.ProcessRequest[])
             __typeMapper.readObject(
                 __in, actions__typeInfo, com.sforce.soap.partner.ProcessRequest[].class));
   }
 }
Example #14
0
 protected void loadFields(
     com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper)
     throws java.io.IOException, com.sforce.ws.ConnectionException {
   __in.peekTag();
   if (__typeMapper.isElement(__in, messages__typeInfo)) {
     setMessages(
         (com.sforce.soap.enterprise.Email[])
             __typeMapper.readObject(
                 __in, messages__typeInfo, com.sforce.soap.enterprise.Email[].class));
   }
 }
 protected void loadFields(
     com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper)
     throws java.io.IOException, com.sforce.ws.ConnectionException {
   __in.peekTag();
   if (__typeMapper.verifyElement(__in, result__typeInfo)) {
     setResult(
         (com.sforce.soap.partner.QueryResult)
             __typeMapper.readObject(
                 __in, result__typeInfo, com.sforce.soap.partner.QueryResult.class));
   }
 }
 protected void loadFields(
     com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper)
     throws java.io.IOException, com.sforce.ws.ConnectionException {
   super.loadFields(__in, __typeMapper);
   __in.peekTag();
   if (__typeMapper.verifyElement(__in, debugLevel__typeInfo)) {
     setDebugLevel(
         (com.sforce.soap.partner.DebugLevel)
             __typeMapper.readObject(
                 __in, debugLevel__typeInfo, com.sforce.soap.partner.DebugLevel.class));
   }
 }
 protected void loadFields(
     com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper)
     throws java.io.IOException, com.sforce.ws.ConnectionException {
   __in.peekTag();
   if (__typeMapper.verifyElement(__in, sObjectType__typeInfo)) {
     setSObjectType(
         (java.lang.String)
             __typeMapper.readString(__in, sObjectType__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.verifyElement(__in, startDate__typeInfo)) {
     setStartDate(
         (java.util.Calendar)
             __typeMapper.readObject(__in, startDate__typeInfo, java.util.Calendar.class));
   }
   __in.peekTag();
   if (__typeMapper.verifyElement(__in, endDate__typeInfo)) {
     setEndDate(
         (java.util.Calendar)
             __typeMapper.readObject(__in, endDate__typeInfo, java.util.Calendar.class));
   }
 }
Example #18
0
 protected void loadFields(
     com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper)
     throws java.io.IOException, com.sforce.ws.ConnectionException {
   __in.peekTag();
   if (__typeMapper.verifyElement(__in, channel__typeInfo)) {
     setChannel(
         (com.sforce.soap.metadata.Channel)
             __typeMapper.readObject(
                 __in, channel__typeInfo, com.sforce.soap.metadata.Channel.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, page__typeInfo)) {
     setPage(
         (java.lang.String) __typeMapper.readString(__in, page__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.verifyElement(__in, template__typeInfo)) {
     setTemplate(
         (com.sforce.soap.metadata.Template)
             __typeMapper.readObject(
                 __in, template__typeInfo, com.sforce.soap.metadata.Template.class));
   }
 }
 protected void loadFields(
     com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper)
     throws java.io.IOException, com.sforce.ws.ConnectionException {
   super.loadFields(__in, __typeMapper);
   __in.peekTag();
   if (__typeMapper.isElement(__in, CreatedBy__typeInfo)) {
     setCreatedBy(
         (com.sforce.soap.enterprise.sobject.Name)
             __typeMapper.readObject(
                 __in, CreatedBy__typeInfo, com.sforce.soap.enterprise.sobject.Name.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, CreatedById__typeInfo)) {
     setCreatedById(__typeMapper.readString(__in, CreatedById__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, CreatedDate__typeInfo)) {
     setCreatedDate(
         (java.util.Calendar)
             __typeMapper.readObject(__in, CreatedDate__typeInfo, java.util.Calendar.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, Field__typeInfo)) {
     setField(__typeMapper.readString(__in, Field__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, IsDeleted__typeInfo)) {
     setIsDeleted(
         (java.lang.Boolean)
             __typeMapper.readObject(__in, IsDeleted__typeInfo, java.lang.Boolean.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, NewValue__typeInfo)) {
     setNewValue(
         (java.lang.Object)
             __typeMapper.readObject(__in, NewValue__typeInfo, java.lang.Object.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, OldValue__typeInfo)) {
     setOldValue(
         (java.lang.Object)
             __typeMapper.readObject(__in, OldValue__typeInfo, java.lang.Object.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, Parent__typeInfo)) {
     setParent(
         (com.sforce.soap.enterprise.sobject.Servicio__c)
             __typeMapper.readObject(
                 __in, Parent__typeInfo, com.sforce.soap.enterprise.sobject.Servicio__c.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, ParentId__typeInfo)) {
     setParentId(__typeMapper.readString(__in, ParentId__typeInfo, java.lang.String.class));
   }
 }
  protected void loadFields(
      com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper)
      throws java.io.IOException, com.sforce.ws.ConnectionException {

    __in.peekTag();
    if (__typeMapper.isElement(__in, errors__typeInfo)) {
      setErrors((Error[]) __typeMapper.readObject(__in, errors__typeInfo, Error[].class));
    }
    __in.peekTag();
    if (__typeMapper.isElement(__in, id__typeInfo)) {
      setId(__typeMapper.readString(__in, id__typeInfo, String.class));
    }
    __in.peekTag();
    if (__typeMapper.verifyElement(__in, success__typeInfo)) {
      setSuccess(__typeMapper.readBoolean(__in, success__typeInfo, boolean.class));
    }
    __in.peekTag();
    if (__typeMapper.isElement(__in, created__typeInfo)) {
      setCreated(__typeMapper.readBoolean(__in, created__typeInfo, boolean.class));
    }
  }
Example #21
0
  private void readSoapHeader(XmlInputStream xin) throws IOException, ConnectionException {
    while (!headerEndTag(xin)) {
      xin.peekTag();

      if (xin.getEventType() == XmlInputStream.START_TAG) {
        QName tag = new QName(xin.getNamespace(), xin.getName());

        Class headerType = (knownHeaders != null) ? knownHeaders.get(tag) : null;

        if (headerType != null) {
          TypeInfo info = new TypeInfo(xin.getNamespace(), xin.getName(), null, null, 1, 1, true);
          XMLizable result = (XMLizable) typeMapper.readObject(xin, info, headerType);
          if (connection != null) {
            setHeader(tag, headerType, result);
          }
        } else {
          throw new ConnectionException("Unrecognized header: " + tag.toString());
        }
      }
    }
    xin.next();
  }
 protected void loadFields(
     com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper)
     throws java.io.IOException, com.sforce.ws.ConnectionException {
   __in.peekTag();
   if (__typeMapper.verifyElement(__in, callTypes__typeInfo)) {
     setCallTypes(
         (com.sforce.soap.partner.DescribeSoftphoneLayoutCallType[])
             __typeMapper.readObject(
                 __in,
                 callTypes__typeInfo,
                 com.sforce.soap.partner.DescribeSoftphoneLayoutCallType[].class));
   }
   __in.peekTag();
   if (__typeMapper.verifyElement(__in, id__typeInfo)) {
     setId((java.lang.String) __typeMapper.readString(__in, id__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.verifyElement(__in, name__typeInfo)) {
     setName(
         (java.lang.String) __typeMapper.readString(__in, name__typeInfo, java.lang.String.class));
   }
 }
  protected void loadFields(
      com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper)
      throws java.io.IOException, com.sforce.ws.ConnectionException {

    __in.peekTag();
    if (__typeMapper.verifyElement(__in, fieldList__typeInfo)) {
      setFieldList(
          (java.lang.String)
              __typeMapper.readString(__in, fieldList__typeInfo, java.lang.String.class));
    }
    __in.peekTag();
    if (__typeMapper.verifyElement(__in, sObjectType__typeInfo)) {
      setSObjectType(
          (java.lang.String)
              __typeMapper.readString(__in, sObjectType__typeInfo, java.lang.String.class));
    }
    __in.peekTag();
    if (__typeMapper.isElement(__in, ids__typeInfo)) {
      setIds(
          (java.lang.String[])
              __typeMapper.readObject(__in, ids__typeInfo, java.lang.String[].class));
    }
  }
Example #24
0
  private ConnectionException parseDetail(XmlInputStream xin, QName faultCode, String faultstring)
      throws IOException, ConnectionException {

    ConnectionException e;
    xin.nextTag(); // consume <detail>
    xin.peekTag(); // move to the body of <detail>

    if (xin.getEventType() == XmlInputStream.END_TAG) { // check for empty detail element
      throw new SoapFaultException(faultCode, faultstring);
    }

    TypeInfo info = new TypeInfo(null, null, null, null, 1, 1, true);

    try {
      e = (ConnectionException) typeMapper.readObject(xin, info, ConnectionException.class);
      if (e instanceof SoapFaultException) {
        ((SoapFaultException) e).setFaultCode(faultCode);
        if (faultstring != null
            && (faultstring.contains("Session timed out")
                || faultstring.contains("Session not found")
                || faultstring.contains("Illegal Session"))
            && "INVALID_SESSION_ID".equals(faultCode.getLocalPart())) {
          e = new SessionTimedOutException(faultstring, e);
        }
      }
    } catch (ConnectionException ce) {
      throw new ConnectionException(
          "Failed to parse detail: " + xin + " due to: " + ce, ce.getCause());
    }

    xin.nextTag(); // consume </detail>
    if (!"detail".equals(xin.getName())) {
      throw new ConnectionException("Failed to find </detail>");
    }

    return e;
  }
Example #25
0
 protected void loadFields(
     com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper)
     throws java.io.IOException, com.sforce.ws.ConnectionException {
   super.loadFields(__in, __typeMapper);
   __in.peekTag();
   if (__typeMapper.isElement(__in, CreatedBy__typeInfo)) {
     setCreatedBy(
         (com.sforce.soap.enterprise.sobject.User)
             __typeMapper.readObject(
                 __in, CreatedBy__typeInfo, com.sforce.soap.enterprise.sobject.User.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, CreatedById__typeInfo)) {
     setCreatedById(__typeMapper.readString(__in, CreatedById__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, CreatedDate__typeInfo)) {
     setCreatedDate(
         (java.util.Calendar)
             __typeMapper.readObject(__in, CreatedDate__typeInfo, java.util.Calendar.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, Description__typeInfo)) {
     setDescription(__typeMapper.readString(__in, Description__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, FeedSubscriptionsForEntity__typeInfo)) {
     setFeedSubscriptionsForEntity(
         (com.sforce.soap.enterprise.QueryResult)
             __typeMapper.readObject(
                 __in,
                 FeedSubscriptionsForEntity__typeInfo,
                 com.sforce.soap.enterprise.QueryResult.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, Feeds__typeInfo)) {
     setFeeds(
         (com.sforce.soap.enterprise.QueryResult)
             __typeMapper.readObject(
                 __in, Feeds__typeInfo, com.sforce.soap.enterprise.QueryResult.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, Name__typeInfo)) {
     setName(__typeMapper.readString(__in, Name__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, NetworkId__typeInfo)) {
     setNetworkId(__typeMapper.readString(__in, NetworkId__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, SystemModstamp__typeInfo)) {
     setSystemModstamp(
         (java.util.Calendar)
             __typeMapper.readObject(__in, SystemModstamp__typeInfo, java.util.Calendar.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, TalkingAbout__typeInfo)) {
     setTalkingAbout(
         (java.lang.Integer)
             __typeMapper.readObject(__in, TalkingAbout__typeInfo, java.lang.Integer.class));
   }
 }
 protected void loadFields(
     com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper)
     throws java.io.IOException, com.sforce.ws.ConnectionException {
   super.loadFields(__in, __typeMapper);
   __in.peekTag();
   if (__typeMapper.isElement(__in, CreatedDate__typeInfo)) {
     setCreatedDate(
         (java.util.Calendar)
             __typeMapper.readObject(__in, CreatedDate__typeInfo, java.util.Calendar.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, IsDeleted__typeInfo)) {
     setIsDeleted(
         (java.lang.Boolean)
             __typeMapper.readObject(__in, IsDeleted__typeInfo, java.lang.Boolean.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, Item__typeInfo)) {
     setItem(
         (com.sforce.soap.enterprise.sobject.JBS_StandardQuestions__c)
             __typeMapper.readObject(
                 __in,
                 Item__typeInfo,
                 com.sforce.soap.enterprise.sobject.JBS_StandardQuestions__c.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, ItemId__typeInfo)) {
     setItemId(
         (java.lang.String)
             __typeMapper.readString(__in, ItemId__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, Name__typeInfo)) {
     setName(
         (java.lang.String) __typeMapper.readString(__in, Name__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, SystemModstamp__typeInfo)) {
     setSystemModstamp(
         (java.util.Calendar)
             __typeMapper.readObject(__in, SystemModstamp__typeInfo, java.util.Calendar.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, TagDefinition__typeInfo)) {
     setTagDefinition(
         (com.sforce.soap.enterprise.sobject.TagDefinition)
             __typeMapper.readObject(
                 __in,
                 TagDefinition__typeInfo,
                 com.sforce.soap.enterprise.sobject.TagDefinition.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, TagDefinitionId__typeInfo)) {
     setTagDefinitionId(
         (java.lang.String)
             __typeMapper.readString(__in, TagDefinitionId__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, Type__typeInfo)) {
     setType(
         (java.lang.String) __typeMapper.readString(__in, Type__typeInfo, java.lang.String.class));
   }
 }
Example #27
0
 protected void loadFields(
     com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper)
     throws java.io.IOException, com.sforce.ws.ConnectionException {
   super.loadFields(__in, __typeMapper);
   __in.peekTag();
   if (__typeMapper.isElement(__in, BusinessProcessId__typeInfo)) {
     setBusinessProcessId(
         (java.lang.String)
             __typeMapper.readString(__in, BusinessProcessId__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, CreatedBy__typeInfo)) {
     setCreatedBy(
         (com.sforce.soap.enterprise.sobject.User)
             __typeMapper.readObject(
                 __in, CreatedBy__typeInfo, com.sforce.soap.enterprise.sobject.User.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, CreatedById__typeInfo)) {
     setCreatedById(
         (java.lang.String)
             __typeMapper.readString(__in, CreatedById__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, CreatedDate__typeInfo)) {
     setCreatedDate(
         (java.util.Calendar)
             __typeMapper.readObject(__in, CreatedDate__typeInfo, java.util.Calendar.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, Description__typeInfo)) {
     setDescription(
         (java.lang.String)
             __typeMapper.readString(__in, Description__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, DeveloperName__typeInfo)) {
     setDeveloperName(
         (java.lang.String)
             __typeMapper.readString(__in, DeveloperName__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, IsActive__typeInfo)) {
     setIsActive(
         (java.lang.Boolean)
             __typeMapper.readObject(__in, IsActive__typeInfo, java.lang.Boolean.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, LastModifiedBy__typeInfo)) {
     setLastModifiedBy(
         (com.sforce.soap.enterprise.sobject.User)
             __typeMapper.readObject(
                 __in, LastModifiedBy__typeInfo, com.sforce.soap.enterprise.sobject.User.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, LastModifiedById__typeInfo)) {
     setLastModifiedById(
         (java.lang.String)
             __typeMapper.readString(__in, LastModifiedById__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, LastModifiedDate__typeInfo)) {
     setLastModifiedDate(
         (java.util.Calendar)
             __typeMapper.readObject(__in, LastModifiedDate__typeInfo, java.util.Calendar.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, Name__typeInfo)) {
     setName(
         (java.lang.String) __typeMapper.readString(__in, Name__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, NamespacePrefix__typeInfo)) {
     setNamespacePrefix(
         (java.lang.String)
             __typeMapper.readString(__in, NamespacePrefix__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, SobjectType__typeInfo)) {
     setSobjectType(
         (java.lang.String)
             __typeMapper.readString(__in, SobjectType__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, SystemModstamp__typeInfo)) {
     setSystemModstamp(
         (java.util.Calendar)
             __typeMapper.readObject(__in, SystemModstamp__typeInfo, java.util.Calendar.class));
   }
 }
Example #28
0
 protected void loadFields(
     com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper)
     throws java.io.IOException, com.sforce.ws.ConnectionException {
   super.loadFields(__in, __typeMapper);
   __in.peekTag();
   if (__typeMapper.isElement(__in, Body__typeInfo)) {
     setBody(__typeMapper.readString(__in, Body__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, CommentCount__typeInfo)) {
     setCommentCount(
         (java.lang.Integer)
             __typeMapper.readObject(__in, CommentCount__typeInfo, java.lang.Integer.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, ContentData__typeInfo)) {
     setContentData((byte[]) __typeMapper.readObject(__in, ContentData__typeInfo, byte[].class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, ContentDescription__typeInfo)) {
     setContentDescription(
         __typeMapper.readString(__in, ContentDescription__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, ContentFileName__typeInfo)) {
     setContentFileName(
         __typeMapper.readString(__in, ContentFileName__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, ContentSize__typeInfo)) {
     setContentSize(
         (java.lang.Integer)
             __typeMapper.readObject(__in, ContentSize__typeInfo, java.lang.Integer.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, ContentType__typeInfo)) {
     setContentType(__typeMapper.readString(__in, ContentType__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, CreatedBy__typeInfo)) {
     setCreatedBy(
         (com.sforce.soap.enterprise.sobject.Name)
             __typeMapper.readObject(
                 __in, CreatedBy__typeInfo, com.sforce.soap.enterprise.sobject.Name.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, CreatedById__typeInfo)) {
     setCreatedById(__typeMapper.readString(__in, CreatedById__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, CreatedDate__typeInfo)) {
     setCreatedDate(
         (java.util.Calendar)
             __typeMapper.readObject(__in, CreatedDate__typeInfo, java.util.Calendar.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, FeedComments__typeInfo)) {
     setFeedComments(
         (com.sforce.soap.enterprise.QueryResult)
             __typeMapper.readObject(
                 __in, FeedComments__typeInfo, com.sforce.soap.enterprise.QueryResult.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, FeedLikes__typeInfo)) {
     setFeedLikes(
         (com.sforce.soap.enterprise.QueryResult)
             __typeMapper.readObject(
                 __in, FeedLikes__typeInfo, com.sforce.soap.enterprise.QueryResult.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, FeedTrackedChanges__typeInfo)) {
     setFeedTrackedChanges(
         (com.sforce.soap.enterprise.QueryResult)
             __typeMapper.readObject(
                 __in,
                 FeedTrackedChanges__typeInfo,
                 com.sforce.soap.enterprise.QueryResult.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, InsertedBy__typeInfo)) {
     setInsertedBy(
         (com.sforce.soap.enterprise.sobject.Name)
             __typeMapper.readObject(
                 __in, InsertedBy__typeInfo, com.sforce.soap.enterprise.sobject.Name.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, InsertedById__typeInfo)) {
     setInsertedById(
         __typeMapper.readString(__in, InsertedById__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, IsDeleted__typeInfo)) {
     setIsDeleted(
         (java.lang.Boolean)
             __typeMapper.readObject(__in, IsDeleted__typeInfo, java.lang.Boolean.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, LastModifiedDate__typeInfo)) {
     setLastModifiedDate(
         (java.util.Calendar)
             __typeMapper.readObject(__in, LastModifiedDate__typeInfo, java.util.Calendar.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, LikeCount__typeInfo)) {
     setLikeCount(
         (java.lang.Integer)
             __typeMapper.readObject(__in, LikeCount__typeInfo, java.lang.Integer.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, LinkUrl__typeInfo)) {
     setLinkUrl(__typeMapper.readString(__in, LinkUrl__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, NetworkScope__typeInfo)) {
     setNetworkScope(
         __typeMapper.readString(__in, NetworkScope__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, Parent__typeInfo)) {
     setParent(
         (com.sforce.soap.enterprise.sobject.Topic)
             __typeMapper.readObject(
                 __in, Parent__typeInfo, com.sforce.soap.enterprise.sobject.Topic.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, ParentId__typeInfo)) {
     setParentId(__typeMapper.readString(__in, ParentId__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, RelatedRecordId__typeInfo)) {
     setRelatedRecordId(
         __typeMapper.readString(__in, RelatedRecordId__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, SystemModstamp__typeInfo)) {
     setSystemModstamp(
         (java.util.Calendar)
             __typeMapper.readObject(__in, SystemModstamp__typeInfo, java.util.Calendar.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, Title__typeInfo)) {
     setTitle(__typeMapper.readString(__in, Title__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, Type__typeInfo)) {
     setType(__typeMapper.readString(__in, Type__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, Visibility__typeInfo)) {
     setVisibility(__typeMapper.readString(__in, Visibility__typeInfo, java.lang.String.class));
   }
 }
 protected void loadFields(
     com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper)
     throws java.io.IOException, com.sforce.ws.ConnectionException {
   super.loadFields(__in, __typeMapper);
   __in.peekTag();
   if (__typeMapper.isElement(__in, ActivityHistories__typeInfo)) {
     setActivityHistories(
         (com.sforce.soap.enterprise.QueryResult)
             __typeMapper.readObject(
                 __in, ActivityHistories__typeInfo, com.sforce.soap.enterprise.QueryResult.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, AttachedContentDocuments__typeInfo)) {
     setAttachedContentDocuments(
         (com.sforce.soap.enterprise.QueryResult)
             __typeMapper.readObject(
                 __in,
                 AttachedContentDocuments__typeInfo,
                 com.sforce.soap.enterprise.QueryResult.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, Attachments__typeInfo)) {
     setAttachments(
         (com.sforce.soap.enterprise.QueryResult)
             __typeMapper.readObject(
                 __in, Attachments__typeInfo, com.sforce.soap.enterprise.QueryResult.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, CombinedAttachments__typeInfo)) {
     setCombinedAttachments(
         (com.sforce.soap.enterprise.QueryResult)
             __typeMapper.readObject(
                 __in,
                 CombinedAttachments__typeInfo,
                 com.sforce.soap.enterprise.QueryResult.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, CreatedBy__typeInfo)) {
     setCreatedBy(
         (com.sforce.soap.enterprise.sobject.User)
             __typeMapper.readObject(
                 __in, CreatedBy__typeInfo, com.sforce.soap.enterprise.sobject.User.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, CreatedById__typeInfo)) {
     setCreatedById(__typeMapper.readString(__in, CreatedById__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, CreatedDate__typeInfo)) {
     setCreatedDate(
         (java.util.Calendar)
             __typeMapper.readObject(__in, CreatedDate__typeInfo, java.util.Calendar.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, Events__typeInfo)) {
     setEvents(
         (com.sforce.soap.enterprise.QueryResult)
             __typeMapper.readObject(
                 __in, Events__typeInfo, com.sforce.soap.enterprise.QueryResult.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, FeedSubscriptionsForEntity__typeInfo)) {
     setFeedSubscriptionsForEntity(
         (com.sforce.soap.enterprise.QueryResult)
             __typeMapper.readObject(
                 __in,
                 FeedSubscriptionsForEntity__typeInfo,
                 com.sforce.soap.enterprise.QueryResult.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, Histories__typeInfo)) {
     setHistories(
         (com.sforce.soap.enterprise.QueryResult)
             __typeMapper.readObject(
                 __in, Histories__typeInfo, com.sforce.soap.enterprise.QueryResult.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, IsDeleted__typeInfo)) {
     setIsDeleted(
         (java.lang.Boolean)
             __typeMapper.readObject(__in, IsDeleted__typeInfo, java.lang.Boolean.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, LastActivityDate__typeInfo)) {
     setLastActivityDate(
         (java.util.Calendar)
             __typeMapper.readObject(__in, LastActivityDate__typeInfo, java.util.Calendar.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, LastModifiedBy__typeInfo)) {
     setLastModifiedBy(
         (com.sforce.soap.enterprise.sobject.User)
             __typeMapper.readObject(
                 __in, LastModifiedBy__typeInfo, com.sforce.soap.enterprise.sobject.User.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, LastModifiedById__typeInfo)) {
     setLastModifiedById(
         __typeMapper.readString(__in, LastModifiedById__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, LastModifiedDate__typeInfo)) {
     setLastModifiedDate(
         (java.util.Calendar)
             __typeMapper.readObject(__in, LastModifiedDate__typeInfo, java.util.Calendar.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, LastReferencedDate__typeInfo)) {
     setLastReferencedDate(
         (java.util.Calendar)
             __typeMapper.readObject(
                 __in, LastReferencedDate__typeInfo, java.util.Calendar.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, LastViewedDate__typeInfo)) {
     setLastViewedDate(
         (java.util.Calendar)
             __typeMapper.readObject(__in, LastViewedDate__typeInfo, java.util.Calendar.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, Name__typeInfo)) {
     setName(__typeMapper.readString(__in, Name__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, Notes__typeInfo)) {
     setNotes(
         (com.sforce.soap.enterprise.QueryResult)
             __typeMapper.readObject(
                 __in, Notes__typeInfo, com.sforce.soap.enterprise.QueryResult.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, NotesAndAttachments__typeInfo)) {
     setNotesAndAttachments(
         (com.sforce.soap.enterprise.QueryResult)
             __typeMapper.readObject(
                 __in,
                 NotesAndAttachments__typeInfo,
                 com.sforce.soap.enterprise.QueryResult.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, OpenActivities__typeInfo)) {
     setOpenActivities(
         (com.sforce.soap.enterprise.QueryResult)
             __typeMapper.readObject(
                 __in, OpenActivities__typeInfo, com.sforce.soap.enterprise.QueryResult.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, Owner__typeInfo)) {
     setOwner(
         (com.sforce.soap.enterprise.sobject.Name)
             __typeMapper.readObject(
                 __in, Owner__typeInfo, com.sforce.soap.enterprise.sobject.Name.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, OwnerId__typeInfo)) {
     setOwnerId(__typeMapper.readString(__in, OwnerId__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, ProcessInstances__typeInfo)) {
     setProcessInstances(
         (com.sforce.soap.enterprise.QueryResult)
             __typeMapper.readObject(
                 __in, ProcessInstances__typeInfo, com.sforce.soap.enterprise.QueryResult.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, ProcessSteps__typeInfo)) {
     setProcessSteps(
         (com.sforce.soap.enterprise.QueryResult)
             __typeMapper.readObject(
                 __in, ProcessSteps__typeInfo, com.sforce.soap.enterprise.QueryResult.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, SystemModstamp__typeInfo)) {
     setSystemModstamp(
         (java.util.Calendar)
             __typeMapper.readObject(__in, SystemModstamp__typeInfo, java.util.Calendar.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, Tasks__typeInfo)) {
     setTasks(
         (com.sforce.soap.enterprise.QueryResult)
             __typeMapper.readObject(
                 __in, Tasks__typeInfo, com.sforce.soap.enterprise.QueryResult.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, cloudswarm__Description__c__typeInfo)) {
     setCloudswarm__Description__c(
         __typeMapper.readString(
             __in, cloudswarm__Description__c__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, cloudswarm__Notify_on_Swarm__c__typeInfo)) {
     setCloudswarm__Notify_on_Swarm__c(
         (java.lang.Boolean)
             __typeMapper.readObject(
                 __in, cloudswarm__Notify_on_Swarm__c__typeInfo, java.lang.Boolean.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, cloudswarm__Opportunity_Amount__c__typeInfo)) {
     setCloudswarm__Opportunity_Amount__c(
         (java.lang.Double)
             __typeMapper.readObject(
                 __in, cloudswarm__Opportunity_Amount__c__typeInfo, java.lang.Double.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, cloudswarm__Opportunity_Stage__c__typeInfo)) {
     setCloudswarm__Opportunity_Stage__c(
         __typeMapper.readString(
             __in, cloudswarm__Opportunity_Stage__c__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, cloudswarm__Opportunity_Type__c__typeInfo)) {
     setCloudswarm__Opportunity_Type__c(
         __typeMapper.readString(
             __in, cloudswarm__Opportunity_Type__c__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, cloudswarm__Type__c__typeInfo)) {
     setCloudswarm__Type__c(
         __typeMapper.readString(__in, cloudswarm__Type__c__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, cloudswarm__User__c__typeInfo)) {
     setCloudswarm__User__c(
         __typeMapper.readString(__in, cloudswarm__User__c__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, cloudswarm__User__r__typeInfo)) {
     setCloudswarm__User__r(
         (com.sforce.soap.enterprise.sobject.User)
             __typeMapper.readObject(
                 __in,
                 cloudswarm__User__r__typeInfo,
                 com.sforce.soap.enterprise.sobject.User.class));
   }
 }
 protected void loadFields(
     com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper)
     throws java.io.IOException, com.sforce.ws.ConnectionException {
   super.loadFields(__in, __typeMapper);
   __in.peekTag();
   if (__typeMapper.isElement(__in, CreatedBy__typeInfo)) {
     setCreatedBy(
         (com.sforce.soap.enterprise.sobject.User)
             __typeMapper.readObject(
                 __in, CreatedBy__typeInfo, com.sforce.soap.enterprise.sobject.User.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, CreatedById__typeInfo)) {
     setCreatedById(__typeMapper.readString(__in, CreatedById__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, CreatedDate__typeInfo)) {
     setCreatedDate(
         (java.util.Calendar)
             __typeMapper.readObject(__in, CreatedDate__typeInfo, java.util.Calendar.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, IsDeleted__typeInfo)) {
     setIsDeleted(
         (java.lang.Boolean)
             __typeMapper.readObject(__in, IsDeleted__typeInfo, java.lang.Boolean.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, LastModifiedBy__typeInfo)) {
     setLastModifiedBy(
         (com.sforce.soap.enterprise.sobject.User)
             __typeMapper.readObject(
                 __in, LastModifiedBy__typeInfo, com.sforce.soap.enterprise.sobject.User.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, LastModifiedById__typeInfo)) {
     setLastModifiedById(
         __typeMapper.readString(__in, LastModifiedById__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, LastModifiedDate__typeInfo)) {
     setLastModifiedDate(
         (java.util.Calendar)
             __typeMapper.readObject(__in, LastModifiedDate__typeInfo, java.util.Calendar.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, Name__typeInfo)) {
     setName(__typeMapper.readString(__in, Name__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, Reason__typeInfo)) {
     setReason(__typeMapper.readString(__in, Reason__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, Reply__typeInfo)) {
     setReply(
         (com.sforce.soap.enterprise.sobject.Reply)
             __typeMapper.readObject(
                 __in, Reply__typeInfo, com.sforce.soap.enterprise.sobject.Reply.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, ReplyId__typeInfo)) {
     setReplyId(__typeMapper.readString(__in, ReplyId__typeInfo, java.lang.String.class));
   }
   __in.peekTag();
   if (__typeMapper.isElement(__in, SystemModstamp__typeInfo)) {
     setSystemModstamp(
         (java.util.Calendar)
             __typeMapper.readObject(__in, SystemModstamp__typeInfo, java.util.Calendar.class));
   }
 }