コード例 #1
0
 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);
 }
コード例 #2
0
 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);
 }
コード例 #3
0
ファイル: SoapConnection.java プロジェクト: forcedotcom/wsc
  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;
  }
コード例 #4
0
 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);
 }
コード例 #5
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, 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));
   }
 }
コード例 #6
0
ファイル: SoapConnection.java プロジェクト: forcedotcom/wsc
  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());
  }
コード例 #7
0
 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);
 }
コード例 #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.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));
   }
 }
コード例 #9
0
 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);
 }
コード例 #10
0
 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));
   }
 }
コード例 #11
0
 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));
   }
 }
コード例 #12
0
 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);
 }
コード例 #13
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, batchSize__typeInfo)) {
     setBatchSize((int) __typeMapper.readInt(__in, batchSize__typeInfo, int.class));
   }
 }
コード例 #14
0
ファイル: QueryResultList.java プロジェクト: vitkin/sfdc-wsc
  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));
    }
  }
コード例 #15
0
ファイル: IdeasSettings.java プロジェクト: abhishekbunty/g2
 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);
 }
コード例 #16
0
  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));
   }
 }
コード例 #18
0
 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);
 }
コード例 #19
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, result__typeInfo)) {
     setResult(
         (com.sforce.soap.partner.QueryResult)
             __typeMapper.readObject(
                 __in, result__typeInfo, com.sforce.soap.partner.QueryResult.class));
   }
 }
コード例 #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));
   }
 }
コード例 #21
0
 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));
   }
 }
コード例 #22
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.verifyElement(__in, objectId__typeInfo)) {
     setObjectId(
         (java.lang.String)
             __typeMapper.readString(__in, objectId__typeInfo, java.lang.String.class));
   }
 }
コード例 #23
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, actions__typeInfo)) {
     setActions(
         (com.sforce.soap.partner.ProcessRequest[])
             __typeMapper.readObject(
                 __in, actions__typeInfo, com.sforce.soap.partner.ProcessRequest[].class));
   }
 }
コード例 #24
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));
   }
 }
コード例 #25
0
 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);
 }
コード例 #26
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.verifyElement(__in, debugLevel__typeInfo)) {
     setDebugLevel(
         (com.sforce.soap.partner.DebugLevel)
             __typeMapper.readObject(
                 __in, debugLevel__typeInfo, com.sforce.soap.partner.DebugLevel.class));
   }
 }
コード例 #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 {
   __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));
   }
 }
コード例 #28
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,
       triggerAutoResponseEmail__typeInfo,
       triggerAutoResponseEmail,
       triggerAutoResponseEmail__is_set);
   __typeMapper.writeBoolean(
       __out, triggerOtherEmail__typeInfo, triggerOtherEmail, triggerOtherEmail__is_set);
   __typeMapper.writeBoolean(
       __out, triggerUserEmail__typeInfo, triggerUserEmail, triggerUserEmail__is_set);
 }
コード例 #29
0
ファイル: Generator.java プロジェクト: vitkin/sfdc-wsc
 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);
     }
   }
 }
コード例 #30
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, 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));
   }
 }