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

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

There is a newer version: 30.0.0
Show newest version
package com.sforce.soap.tooling;

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

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

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

    private boolean select__is_set = false;

    private java.lang.String select;

    public java.lang.String getSelect() {
      return select;
    }

    public void setSelect(java.lang.String select) {
      this.select = select;
      select__is_set = true;
    }

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

    private boolean type__is_set = false;

    private java.lang.String type;

    public java.lang.String getType() {
      return type;
    }

    public void setType(java.lang.String type) {
      this.type = type;
      type__is_set = true;
    }

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

    private boolean ids__is_set = false;

    private java.lang.String[] ids = new java.lang.String[0];

    public java.lang.String[] getIds() {
      return ids;
    }

    public void setIds(java.lang.String[] ids) {
      this.ids = ids;
      ids__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, select__typeInfo, select, select__is_set);
       __typeMapper.writeString(__out, type__typeInfo, type, type__is_set);
       __typeMapper.writeObject(__out, ids__typeInfo, ids, ids__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, select__typeInfo)) {
            setSelect(__typeMapper.readString(__in, select__typeInfo, java.lang.String.class));
        }
        __in.peekTag();
        if (__typeMapper.verifyElement(__in, type__typeInfo)) {
            setType(__typeMapper.readString(__in, type__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));
        }
    }

    @Override
    public String toString() {
      java.lang.StringBuilder sb = new java.lang.StringBuilder();
      sb.append("[Retrieve_element ");
      sb.append(" select=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(select)+"'\n");
      sb.append(" type=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(type)+"'\n");
      sb.append(" ids=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(ids)+"'\n");
      sb.append("]\n");
      return sb.toString();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy