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

com.sforce.soap.metadata.Container Maven / Gradle / Ivy

There is a newer version: 62.0.0
Show newest version
package com.sforce.soap.metadata;

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

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

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

    private int height;

    public int getHeight() {
      return height;
    }

    public void setHeight(int height) {
      this.height = height;
      height__is_set = true;
    }

    protected void setHeight(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("height", "http://soap.sforce.com/2006/04/metadata","height","http://www.w3.org/2001/XMLSchema","int",0,1,true))) {
        setHeight((int)__typeMapper.readInt(__in, _lookupTypeInfo("height", "http://soap.sforce.com/2006/04/metadata","height","http://www.w3.org/2001/XMLSchema","int",0,1,true), int.class));
      }
    }

    private void writeFieldHeight(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("height", "http://soap.sforce.com/2006/04/metadata","height","http://www.w3.org/2001/XMLSchema","int",0,1,true), height, height__is_set);
    }

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

    private boolean isContainerAutoSizeEnabled;

    public boolean getIsContainerAutoSizeEnabled() {
      return isContainerAutoSizeEnabled;
    }

    public boolean isIsContainerAutoSizeEnabled() {
      return isContainerAutoSizeEnabled;
    }

    public void setIsContainerAutoSizeEnabled(boolean isContainerAutoSizeEnabled) {
      this.isContainerAutoSizeEnabled = isContainerAutoSizeEnabled;
      isContainerAutoSizeEnabled__is_set = true;
    }

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

    private void writeFieldIsContainerAutoSizeEnabled(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("isContainerAutoSizeEnabled", "http://soap.sforce.com/2006/04/metadata","isContainerAutoSizeEnabled","http://www.w3.org/2001/XMLSchema","boolean",1,1,true), isContainerAutoSizeEnabled, isContainerAutoSizeEnabled__is_set);
    }

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

    private java.lang.String region;

    public java.lang.String getRegion() {
      return region;
    }

    public void setRegion(java.lang.String region) {
      this.region = region;
      region__is_set = true;
    }

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

    private void writeFieldRegion(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("region", "http://soap.sforce.com/2006/04/metadata","region","http://www.w3.org/2001/XMLSchema","string",1,1,true), region, region__is_set);
    }

    /**
     * element : sidebarComponents of type {http://soap.sforce.com/2006/04/metadata}SidebarComponent
     * java type: com.sforce.soap.metadata.SidebarComponent[]
     */
    private boolean sidebarComponents__is_set = false;

    private com.sforce.soap.metadata.SidebarComponent[] sidebarComponents = new com.sforce.soap.metadata.SidebarComponent[0];

    public com.sforce.soap.metadata.SidebarComponent[] getSidebarComponents() {
      return sidebarComponents;
    }

    public void setSidebarComponents(com.sforce.soap.metadata.SidebarComponent[] sidebarComponents) {
      this.sidebarComponents = sidebarComponents;
      sidebarComponents__is_set = true;
    }

    protected void setSidebarComponents(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("sidebarComponents", "http://soap.sforce.com/2006/04/metadata","sidebarComponents","http://soap.sforce.com/2006/04/metadata","SidebarComponent",0,-1,true))) {
        setSidebarComponents((com.sforce.soap.metadata.SidebarComponent[])__typeMapper.readObject(__in, _lookupTypeInfo("sidebarComponents", "http://soap.sforce.com/2006/04/metadata","sidebarComponents","http://soap.sforce.com/2006/04/metadata","SidebarComponent",0,-1,true), com.sforce.soap.metadata.SidebarComponent[].class));
      }
    }

    private void writeFieldSidebarComponents(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("sidebarComponents", "http://soap.sforce.com/2006/04/metadata","sidebarComponents","http://soap.sforce.com/2006/04/metadata","SidebarComponent",0,-1,true), sidebarComponents, sidebarComponents__is_set);
    }

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

    private java.lang.String style;

    public java.lang.String getStyle() {
      return style;
    }

    public void setStyle(java.lang.String style) {
      this.style = style;
      style__is_set = true;
    }

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

    private void writeFieldStyle(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("style", "http://soap.sforce.com/2006/04/metadata","style","http://www.w3.org/2001/XMLSchema","string",1,1,true), style, style__is_set);
    }

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

    private java.lang.String unit;

    public java.lang.String getUnit() {
      return unit;
    }

    public void setUnit(java.lang.String unit) {
      this.unit = unit;
      unit__is_set = true;
    }

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

    private void writeFieldUnit(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("unit", "http://soap.sforce.com/2006/04/metadata","unit","http://www.w3.org/2001/XMLSchema","string",1,1,true), unit, unit__is_set);
    }

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

    private int width;

    public int getWidth() {
      return width;
    }

    public void setWidth(int width) {
      this.width = width;
      width__is_set = true;
    }

    protected void setWidth(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("width", "http://soap.sforce.com/2006/04/metadata","width","http://www.w3.org/2001/XMLSchema","int",0,1,true))) {
        setWidth((int)__typeMapper.readInt(__in, _lookupTypeInfo("width", "http://soap.sforce.com/2006/04/metadata","width","http://www.w3.org/2001/XMLSchema","int",0,1,true), int.class));
      }
    }

    private void writeFieldWidth(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("width", "http://soap.sforce.com/2006/04/metadata","width","http://www.w3.org/2001/XMLSchema","int",0,1,true), width, width__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("[Container ");
      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 {
      writeFieldHeight(__out, __typeMapper);
      writeFieldIsContainerAutoSizeEnabled(__out, __typeMapper);
      writeFieldRegion(__out, __typeMapper);
      writeFieldSidebarComponents(__out, __typeMapper);
      writeFieldStyle(__out, __typeMapper);
      writeFieldUnit(__out, __typeMapper);
      writeFieldWidth(__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 {
      setHeight(__in, __typeMapper);
      setIsContainerAutoSizeEnabled(__in, __typeMapper);
      setRegion(__in, __typeMapper);
      setSidebarComponents(__in, __typeMapper);
      setStyle(__in, __typeMapper);
      setUnit(__in, __typeMapper);
      setWidth(__in, __typeMapper);
    }

    private void toString1(StringBuilder sb) {
      toStringHelper(sb, "height", height);
      toStringHelper(sb, "isContainerAutoSizeEnabled", isContainerAutoSizeEnabled);
      toStringHelper(sb, "region", region);
      toStringHelper(sb, "sidebarComponents", sidebarComponents);
      toStringHelper(sb, "style", style);
      toStringHelper(sb, "unit", unit);
      toStringHelper(sb, "width", width);
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy