All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sforce.soap.tooling.DescribeGlobalResult Maven / Gradle / Ivy

package com.sforce.soap.tooling;

/**
 * Generated by ComplexTypeCodeGenerator.java. Please do not edit.
 */
public class DescribeGlobalResult implements com.sforce.ws.bind.XMLizable {

    /**
     * Constructor
     */
    public DescribeGlobalResult() {}

    /**
     * element : encoding of type {http://www.w3.org/2001/XMLSchema}string
     * java type: java.lang.String
     */
    private static final com.sforce.ws.bind.TypeInfo encoding__typeInfo =
      new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","encoding","http://www.w3.org/2001/XMLSchema","string",1,1,true);

    private boolean encoding__is_set = false;

    private java.lang.String encoding;

    public java.lang.String getEncoding() {
      return encoding;
    }

    public void setEncoding(java.lang.String encoding) {
      this.encoding = encoding;
      encoding__is_set = true;
    }

    /**
     * element : maxBatchSize of type {http://www.w3.org/2001/XMLSchema}int
     * java type: int
     */
    private static final com.sforce.ws.bind.TypeInfo maxBatchSize__typeInfo =
      new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","maxBatchSize","http://www.w3.org/2001/XMLSchema","int",1,1,true);

    private boolean maxBatchSize__is_set = false;

    private int maxBatchSize;

    public int getMaxBatchSize() {
      return maxBatchSize;
    }

    public void setMaxBatchSize(int maxBatchSize) {
      this.maxBatchSize = maxBatchSize;
      maxBatchSize__is_set = true;
    }

    /**
     * element : sobjects of type {urn:tooling.soap.sforce.com}DescribeGlobalSObjectResult
     * java type: com.sforce.soap.tooling.DescribeGlobalSObjectResult[]
     */
    private static final com.sforce.ws.bind.TypeInfo sobjects__typeInfo =
      new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","sobjects","urn:tooling.soap.sforce.com","DescribeGlobalSObjectResult",0,-1,true);

    private boolean sobjects__is_set = false;

    private com.sforce.soap.tooling.DescribeGlobalSObjectResult[] sobjects = new com.sforce.soap.tooling.DescribeGlobalSObjectResult[0];

    public com.sforce.soap.tooling.DescribeGlobalSObjectResult[] getSobjects() {
      return sobjects;
    }

    public void setSobjects(com.sforce.soap.tooling.DescribeGlobalSObjectResult[] sobjects) {
      this.sobjects = sobjects;
      sobjects__is_set = true;
    }

    /**
     */
    @Override
    public void write(javax.xml.namespace.QName __element,
        com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper)
        throws java.io.IOException {
      __out.writeStartTag(__element.getNamespaceURI(), __element.getLocalPart());
      writeFields(__out, __typeMapper);
      __out.writeEndTag(__element.getNamespaceURI(), __element.getLocalPart());
    }

    protected void writeFields(com.sforce.ws.parser.XmlOutputStream __out,
         com.sforce.ws.bind.TypeMapper __typeMapper)
         throws java.io.IOException {
       __typeMapper.writeString(__out, encoding__typeInfo, encoding, encoding__is_set);
       __typeMapper.writeInt(__out, maxBatchSize__typeInfo, maxBatchSize, maxBatchSize__is_set);
       __typeMapper.writeObject(__out, sobjects__typeInfo, sobjects, sobjects__is_set);
    }

    @Override
    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, encoding__typeInfo)) {
            setEncoding(__typeMapper.readString(__in, encoding__typeInfo, java.lang.String.class));
        }
        __in.peekTag();
        if (__typeMapper.verifyElement(__in, maxBatchSize__typeInfo)) {
            setMaxBatchSize((int)__typeMapper.readInt(__in, maxBatchSize__typeInfo, int.class));
        }
        __in.peekTag();
        if (__typeMapper.isElement(__in, sobjects__typeInfo)) {
            setSobjects((com.sforce.soap.tooling.DescribeGlobalSObjectResult[])__typeMapper.readObject(__in, sobjects__typeInfo, com.sforce.soap.tooling.DescribeGlobalSObjectResult[].class));
        }
    }

    @Override
    public String toString() {
      java.lang.StringBuilder sb = new java.lang.StringBuilder();
      sb.append("[DescribeGlobalResult ");
      sb.append(" encoding=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(encoding)+"'\n");
      sb.append(" maxBatchSize=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(maxBatchSize)+"'\n");
      sb.append(" sobjects=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(sobjects)+"'\n");
      sb.append("]\n");
      return sb.toString();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy