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

com.sforce.soap.partner.DescribeLayoutSaveOption 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 DescribeLayoutSaveOption implements com.sforce.ws.bind.XMLizable , IDescribeLayoutSaveOption{

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

    /* 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 : defaultValue of type {http://www.w3.org/2001/XMLSchema}boolean
     * java type: boolean
     */
    private boolean defaultValue__is_set = false;

    private boolean defaultValue;

    @Override
    public boolean getDefaultValue() {
      return defaultValue;
    }

    @Override
    public boolean isDefaultValue() {
      return defaultValue;
    }

    @Override
    public void setDefaultValue(boolean defaultValue) {
      this.defaultValue = defaultValue;
      defaultValue__is_set = true;
    }

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

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

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

    private boolean isDisplayed;

    @Override
    public boolean getIsDisplayed() {
      return isDisplayed;
    }

    @Override
    public boolean isIsDisplayed() {
      return isDisplayed;
    }

    @Override
    public void setIsDisplayed(boolean isDisplayed) {
      this.isDisplayed = isDisplayed;
      isDisplayed__is_set = true;
    }

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

    private void writeFieldIsDisplayed(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("isDisplayed", "urn:partner.soap.sforce.com","isDisplayed","http://www.w3.org/2001/XMLSchema","boolean",1,1,true), isDisplayed, isDisplayed__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 : name of type {http://www.w3.org/2001/XMLSchema}string
     * java type: java.lang.String
     */
    private boolean name__is_set = false;

    private java.lang.String name;

    @Override
    public java.lang.String getName() {
      return name;
    }

    @Override
    public void setName(java.lang.String name) {
      this.name = name;
      name__is_set = true;
    }

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

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

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

    private java.lang.String restHeaderName;

    @Override
    public java.lang.String getRestHeaderName() {
      return restHeaderName;
    }

    @Override
    public void setRestHeaderName(java.lang.String restHeaderName) {
      this.restHeaderName = restHeaderName;
      restHeaderName__is_set = true;
    }

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

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

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

    private java.lang.String soapHeaderName;

    @Override
    public java.lang.String getSoapHeaderName() {
      return soapHeaderName;
    }

    @Override
    public void setSoapHeaderName(java.lang.String soapHeaderName) {
      this.soapHeaderName = soapHeaderName;
      soapHeaderName__is_set = true;
    }

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

    private void writeFieldSoapHeaderName(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("soapHeaderName", "urn:partner.soap.sforce.com","soapHeaderName","http://www.w3.org/2001/XMLSchema","string",1,1,true), soapHeaderName, soapHeaderName__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("[DescribeLayoutSaveOption ");
      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 {
      writeFieldDefaultValue(__out, __typeMapper);
      writeFieldIsDisplayed(__out, __typeMapper);
      writeFieldLabel(__out, __typeMapper);
      writeFieldName(__out, __typeMapper);
      writeFieldRestHeaderName(__out, __typeMapper);
      writeFieldSoapHeaderName(__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 {
      setDefaultValue(__in, __typeMapper);
      setIsDisplayed(__in, __typeMapper);
      setLabel(__in, __typeMapper);
      setName(__in, __typeMapper);
      setRestHeaderName(__in, __typeMapper);
      setSoapHeaderName(__in, __typeMapper);
    }

    private void toString1(StringBuilder sb) {
      toStringHelper(sb, "defaultValue", defaultValue);
      toStringHelper(sb, "isDisplayed", isDisplayed);
      toStringHelper(sb, "label", label);
      toStringHelper(sb, "name", name);
      toStringHelper(sb, "restHeaderName", restHeaderName);
      toStringHelper(sb, "soapHeaderName", soapHeaderName);
    }


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy