protected void writeFields(
     com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper)
     throws java.io.IOException {
   __typeMapper.writeObject(__out, masterRecord__typeInfo, masterRecord, masterRecord__is_set);
   __typeMapper.writeObject(
       __out, recordToMergeIds__typeInfo, recordToMergeIds, recordToMergeIds__is_set);
 }
 protected void writeFields(
     com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper)
     throws java.io.IOException {
   __typeMapper.writeString(__out, sObjectType__typeInfo, sObjectType, sObjectType__is_set);
   __typeMapper.writeObject(__out, startDate__typeInfo, startDate, startDate__is_set);
   __typeMapper.writeObject(__out, endDate__typeInfo, endDate, endDate__is_set);
 }
Beispiel #3
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 writeFields(
     com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper)
     throws java.io.IOException {
   __typeMapper.writeObject(__out, callTypes__typeInfo, callTypes, callTypes__is_set);
   __typeMapper.writeString(__out, id__typeInfo, id, id__is_set);
   __typeMapper.writeString(__out, name__typeInfo, name, name__is_set);
 }
 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));
   }
 }
Beispiel #6
0
  private void readSoapEnvelopeEnd(XmlInputStream xin) throws IOException, ConnectionException {
    xin.nextTag();
    typeMapper.verifyTag(Constants.SOAP_ENVELOPE_NS, "Body", xin.getNamespace(), xin.getName());

    xin.nextTag();
    typeMapper.verifyTag(Constants.SOAP_ENVELOPE_NS, "Envelope", xin.getNamespace(), xin.getName());
  }
 public void load(
     com.sforce.ws.parser.XmlInputStream __in, com.sforce.ws.bind.TypeMapper __typeMapper)
     throws java.io.IOException, com.sforce.ws.ConnectionException {
   __typeMapper.consumeStartTag(__in);
   loadFields(__in, __typeMapper);
   __typeMapper.consumeEndTag(__in);
 }
 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 writeFields(
     com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper)
     throws java.io.IOException {
   __typeMapper.writeObject(__out, channel__typeInfo, channel, channel__is_set);
   __typeMapper.writeString(__out, page__typeInfo, page, page__is_set);
   __typeMapper.writeObject(__out, template__typeInfo, template, template__is_set);
 }
 protected void setName(
     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, name__typeInfo)) {
     setName(__typeMapper.readString(__in, name__typeInfo, java.lang.String.class));
   }
 }
 protected void setTriggerOtherEmail(
     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, triggerOtherEmail__typeInfo)) {
     setTriggerOtherEmail(
         __typeMapper.readBoolean(__in, triggerOtherEmail__typeInfo, boolean.class));
   }
 }
 protected void writeFields(
     com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper)
     throws java.io.IOException {
   __typeMapper.writeString(__out, label__typeInfo, label, label__is_set);
   __typeMapper.writeString(__out, logoUrl__typeInfo, logoUrl, logoUrl__is_set);
   __typeMapper.writeString(__out, namespace__typeInfo, namespace, namespace__is_set);
   __typeMapper.writeBoolean(__out, selected__typeInfo, selected, selected__is_set);
   __typeMapper.writeObject(__out, tabs__typeInfo, tabs, tabs__is_set);
 }
 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, batchSize__typeInfo)) {
     setBatchSize((int) __typeMapper.readInt(__in, batchSize__typeInfo, int.class));
   }
 }
Beispiel #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, result__typeInfo)) {
      setResult((String[]) __typeMapper.readObject(__in, result__typeInfo, String[].class));
    }
  }
Beispiel #15
0
 protected void writeFields(
     com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper)
     throws java.io.IOException {
   super.writeFields(__out, __typeMapper);
   __typeMapper.writeBoolean(
       __out, enableIdeaThemes__typeInfo, enableIdeaThemes, enableIdeaThemes__is_set);
   __typeMapper.writeBoolean(__out, enableIdeas__typeInfo, enableIdeas, enableIdeas__is_set);
   __typeMapper.writeDouble(__out, halfLife__typeInfo, halfLife, halfLife__is_set);
 }
  protected void writeFields(
      com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper)
      throws java.io.IOException {

    __typeMapper.writeBoolean(__out, created__typeInfo, created, created__is_set);
    __typeMapper.writeObject(__out, errors__typeInfo, errors, errors__is_set);
    __typeMapper.writeString(__out, id__typeInfo, id, id__is_set);
    __typeMapper.writeBoolean(__out, success__typeInfo, success, success__is_set);
  }
 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 writeFields(
     com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper)
     throws java.io.IOException {
   __typeMapper.writeBoolean(__out, editable__typeInfo, editable, editable__is_set);
   __typeMapper.writeString(__out, label__typeInfo, label, label__is_set);
   __typeMapper.writeObject(
       __out, layoutComponents__typeInfo, layoutComponents, layoutComponents__is_set);
   __typeMapper.writeBoolean(__out, placeholder__typeInfo, placeholder, placeholder__is_set);
   __typeMapper.writeBoolean(__out, required__typeInfo, required, required__is_set);
 }
 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));
   }
 }
Beispiel #20
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 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));
   }
 }
 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, objectId__typeInfo)) {
     setObjectId(
         (java.lang.String)
             __typeMapper.readString(__in, objectId__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, actions__typeInfo)) {
     setActions(
         (com.sforce.soap.partner.ProcessRequest[])
             __typeMapper.readObject(
                 __in, actions__typeInfo, com.sforce.soap.partner.ProcessRequest[].class));
   }
 }
 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 writeFields(
     com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper)
     throws java.io.IOException {
   __typeMapper.writeObject(__out, actions__typeInfo, actions, actions__is_set);
   __typeMapper.writeInt(__out, timeLength__typeInfo, timeLength, timeLength__is_set);
   __typeMapper.writeObject(
       __out,
       workflowTimeTriggerUnit__typeInfo,
       workflowTimeTriggerUnit,
       workflowTimeTriggerUnit__is_set);
 }
 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, enabled__typeInfo)) {
     setEnabled((boolean) __typeMapper.readBoolean(__in, enabled__typeInfo, boolean.class));
   }
   __in.peekTag();
   if (__typeMapper.verifyElement(__in, name__typeInfo)) {
     setName(
         (java.lang.String) __typeMapper.readString(__in, name__typeInfo, java.lang.String.class));
   }
 }
 protected void writeFields(
     com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper)
     throws java.io.IOException {
   super.writeFields(__out, __typeMapper);
   __typeMapper.writeBoolean(
       __out,
       triggerAutoResponseEmail__typeInfo,
       triggerAutoResponseEmail,
       triggerAutoResponseEmail__is_set);
   __typeMapper.writeBoolean(
       __out, triggerOtherEmail__typeInfo, triggerOtherEmail, triggerOtherEmail__is_set);
   __typeMapper.writeBoolean(
       __out, triggerUserEmail__typeInfo, triggerUserEmail, triggerUserEmail__is_set);
 }
Beispiel #29
0
 protected void generateSimpleTypeClass(Schema schema, File dir) throws IOException {
   for (SimpleType simpleType : schema.getSimpleTypes()) {
     if (!typeMapper.isWellKnownType(
         simpleType.getSchema().getTargetNamespace(), simpleType.getName())) {
       generateClassFromSimpleType(schema, simpleType, dir);
     }
   }
 }
 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));
   }
 }