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

com.sforce.soap.partner.DescribeTabSetResult Maven / Gradle / Ivy

The newest version!
package com.sforce.soap.partner;

/**
 * This is a generated class for the SObject Enterprise API.
 * Do not edit this file, as your changes will be lost.
 */
public class DescribeTabSetResult implements com.sforce.ws.bind.XMLizable , IDescribeTabSetResult{

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

    /* Cache the typeInfo instead of declaring static fields throughout*/
    private transient java.util.Map typeInfoCache = new java.util.HashMap();
    private com.sforce.ws.bind.TypeInfo _lookupTypeInfo(String fieldName, String namespace, String name, String typeNS, String type, int minOcc, int maxOcc, boolean elementForm) {
      com.sforce.ws.bind.TypeInfo typeInfo = typeInfoCache.get(fieldName);
      if (typeInfo == null) {
        typeInfo = new com.sforce.ws.bind.TypeInfo(namespace, name, typeNS, type, minOcc, maxOcc, elementForm);
        typeInfoCache.put(fieldName, typeInfo);
      }
      return typeInfo;
    }

    /**
     * element : description of type {http://www.w3.org/2001/XMLSchema}string
     * java type: java.lang.String
     */
    private boolean description__is_set = false;

    private java.lang.String description;

    @Override
    public java.lang.String getDescription() {
      return description;
    }

    @Override
    public void setDescription(java.lang.String description) {
      this.description = description;
      description__is_set = true;
    }

    protected void setDescription(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, _lookupTypeInfo("description", "urn:partner.soap.sforce.com","description","http://www.w3.org/2001/XMLSchema","string",1,1,true))) {
        setDescription(__typeMapper.readString(__in, _lookupTypeInfo("description", "urn:partner.soap.sforce.com","description","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class));
      }
    }

    private void writeFieldDescription(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("description", "urn:partner.soap.sforce.com","description","http://www.w3.org/2001/XMLSchema","string",1,1,true), description, description__is_set);
    }

    /**
     * element : label of type {http://www.w3.org/2001/XMLSchema}string
     * java type: java.lang.String
     */
    private boolean label__is_set = false;

    private java.lang.String label;

    @Override
    public java.lang.String getLabel() {
      return label;
    }

    @Override
    public void setLabel(java.lang.String label) {
      this.label = label;
      label__is_set = true;
    }

    protected void setLabel(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, _lookupTypeInfo("label", "urn:partner.soap.sforce.com","label","http://www.w3.org/2001/XMLSchema","string",1,1,true))) {
        setLabel(__typeMapper.readString(__in, _lookupTypeInfo("label", "urn:partner.soap.sforce.com","label","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class));
      }
    }

    private void writeFieldLabel(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("label", "urn:partner.soap.sforce.com","label","http://www.w3.org/2001/XMLSchema","string",1,1,true), label, label__is_set);
    }

    /**
     * element : logoUrl of type {http://www.w3.org/2001/XMLSchema}string
     * java type: java.lang.String
     */
    private boolean logoUrl__is_set = false;

    private java.lang.String logoUrl;

    @Override
    public java.lang.String getLogoUrl() {
      return logoUrl;
    }

    @Override
    public void setLogoUrl(java.lang.String logoUrl) {
      this.logoUrl = logoUrl;
      logoUrl__is_set = true;
    }

    protected void setLogoUrl(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, _lookupTypeInfo("logoUrl", "urn:partner.soap.sforce.com","logoUrl","http://www.w3.org/2001/XMLSchema","string",1,1,true))) {
        setLogoUrl(__typeMapper.readString(__in, _lookupTypeInfo("logoUrl", "urn:partner.soap.sforce.com","logoUrl","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class));
      }
    }

    private void writeFieldLogoUrl(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("logoUrl", "urn:partner.soap.sforce.com","logoUrl","http://www.w3.org/2001/XMLSchema","string",1,1,true), logoUrl, logoUrl__is_set);
    }

    /**
     * element : namespace of type {http://www.w3.org/2001/XMLSchema}string
     * java type: java.lang.String
     */
    private boolean namespace__is_set = false;

    private java.lang.String namespace;

    @Override
    public java.lang.String getNamespace() {
      return namespace;
    }

    @Override
    public void setNamespace(java.lang.String namespace) {
      this.namespace = namespace;
      namespace__is_set = true;
    }

    protected void setNamespace(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, _lookupTypeInfo("namespace", "urn:partner.soap.sforce.com","namespace","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
        setNamespace(__typeMapper.readString(__in, _lookupTypeInfo("namespace", "urn:partner.soap.sforce.com","namespace","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
      }
    }

    private void writeFieldNamespace(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("namespace", "urn:partner.soap.sforce.com","namespace","http://www.w3.org/2001/XMLSchema","string",0,1,true), namespace, namespace__is_set);
    }

    /**
     * element : selected of type {http://www.w3.org/2001/XMLSchema}boolean
     * java type: boolean
     */
    private boolean selected__is_set = false;

    private boolean selected;

    @Override
    public boolean getSelected() {
      return selected;
    }

    @Override
    public boolean isSelected() {
      return selected;
    }

    @Override
    public void setSelected(boolean selected) {
      this.selected = selected;
      selected__is_set = true;
    }

    protected void setSelected(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, _lookupTypeInfo("selected", "urn:partner.soap.sforce.com","selected","http://www.w3.org/2001/XMLSchema","boolean",1,1,true))) {
        setSelected(__typeMapper.readBoolean(__in, _lookupTypeInfo("selected", "urn:partner.soap.sforce.com","selected","http://www.w3.org/2001/XMLSchema","boolean",1,1,true), boolean.class));
      }
    }

    private void writeFieldSelected(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("selected", "urn:partner.soap.sforce.com","selected","http://www.w3.org/2001/XMLSchema","boolean",1,1,true), selected, selected__is_set);
    }

    /**
     * element : tabSetId of type {http://www.w3.org/2001/XMLSchema}string
     * java type: java.lang.String
     */
    private boolean tabSetId__is_set = false;

    private java.lang.String tabSetId;

    @Override
    public java.lang.String getTabSetId() {
      return tabSetId;
    }

    @Override
    public void setTabSetId(java.lang.String tabSetId) {
      this.tabSetId = tabSetId;
      tabSetId__is_set = true;
    }

    protected void setTabSetId(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, _lookupTypeInfo("tabSetId", "urn:partner.soap.sforce.com","tabSetId","http://www.w3.org/2001/XMLSchema","string",1,1,true))) {
        setTabSetId(__typeMapper.readString(__in, _lookupTypeInfo("tabSetId", "urn:partner.soap.sforce.com","tabSetId","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class));
      }
    }

    private void writeFieldTabSetId(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("tabSetId", "urn:partner.soap.sforce.com","tabSetId","http://www.w3.org/2001/XMLSchema","string",1,1,true), tabSetId, tabSetId__is_set);
    }

    /**
     * element : tabs of type {urn:partner.soap.sforce.com}DescribeTab
     * java type: com.sforce.soap.partner.DescribeTab[]
     */
    private boolean tabs__is_set = false;

    private com.sforce.soap.partner.DescribeTab[] tabs = new com.sforce.soap.partner.DescribeTab[0];

    @Override
    public com.sforce.soap.partner.DescribeTab[] getTabs() {
      return tabs;
    }

    @Override
    public void setTabs(com.sforce.soap.partner.IDescribeTab[] tabs) {
      this.tabs = castArray(com.sforce.soap.partner.DescribeTab.class, tabs);
      tabs__is_set = true;
    }

    protected void setTabs(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, _lookupTypeInfo("tabs", "urn:partner.soap.sforce.com","tabs","urn:partner.soap.sforce.com","DescribeTab",0,-1,true))) {
        setTabs((com.sforce.soap.partner.DescribeTab[])__typeMapper.readObject(__in, _lookupTypeInfo("tabs", "urn:partner.soap.sforce.com","tabs","urn:partner.soap.sforce.com","DescribeTab",0,-1,true), com.sforce.soap.partner.DescribeTab[].class));
      }
    }

    private void writeFieldTabs(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("tabs", "urn:partner.soap.sforce.com","tabs","urn:partner.soap.sforce.com","DescribeTab",0,-1,true), tabs, tabs__is_set);
    }

    /**
     */
    @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 {
       writeFields1(__out, __typeMapper);
    }

    @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 {
        loadFields1(__in, __typeMapper);
    }

    @Override
    public String toString() {
      java.lang.StringBuilder sb = new java.lang.StringBuilder();
      sb.append("[DescribeTabSetResult ");
      toString1(sb);

      sb.append("]\n");
      return sb.toString();
    }

    private void toStringHelper(StringBuilder sb, String name, Object value) {
      sb.append(' ').append(name).append("='").append(com.sforce.ws.util.Verbose.toString(value)).append("'\n");
    }

    private void writeFields1(com.sforce.ws.parser.XmlOutputStream __out,
         com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      writeFieldDescription(__out, __typeMapper);
      writeFieldLabel(__out, __typeMapper);
      writeFieldLogoUrl(__out, __typeMapper);
      writeFieldNamespace(__out, __typeMapper);
      writeFieldSelected(__out, __typeMapper);
      writeFieldTabSetId(__out, __typeMapper);
      writeFieldTabs(__out, __typeMapper);
    }

    private void loadFields1(com.sforce.ws.parser.XmlInputStream __in,
        com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
      setDescription(__in, __typeMapper);
      setLabel(__in, __typeMapper);
      setLogoUrl(__in, __typeMapper);
      setNamespace(__in, __typeMapper);
      setSelected(__in, __typeMapper);
      setTabSetId(__in, __typeMapper);
      setTabs(__in, __typeMapper);
    }

    private void toString1(StringBuilder sb) {
      toStringHelper(sb, "description", description);
      toStringHelper(sb, "label", label);
      toStringHelper(sb, "logoUrl", logoUrl);
      toStringHelper(sb, "namespace", namespace);
      toStringHelper(sb, "selected", selected);
      toStringHelper(sb, "tabSetId", tabSetId);
      toStringHelper(sb, "tabs", tabs);
    }


    @SuppressWarnings("unchecked")
    private  T[] castArray(Class clazz, U[] array) {
        if (array == null) {
            return null;
        }
        T[] retVal = (T[]) java.lang.reflect.Array.newInstance(clazz, array.length);
        for (int i=0; i < array.length; i++) {
            retVal[i] = (T)array[i];
        }

        return retVal;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy