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

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

The 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 EclairMap implements com.sforce.ws.bind.XMLizable {

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

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

    private double boundingBoxBottom;

    public double getBoundingBoxBottom() {
      return boundingBoxBottom;
    }

    public void setBoundingBoxBottom(double boundingBoxBottom) {
      this.boundingBoxBottom = boundingBoxBottom;
      boundingBoxBottom__is_set = true;
    }

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

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

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

    private double boundingBoxLeft;

    public double getBoundingBoxLeft() {
      return boundingBoxLeft;
    }

    public void setBoundingBoxLeft(double boundingBoxLeft) {
      this.boundingBoxLeft = boundingBoxLeft;
      boundingBoxLeft__is_set = true;
    }

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

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

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

    private double boundingBoxRight;

    public double getBoundingBoxRight() {
      return boundingBoxRight;
    }

    public void setBoundingBoxRight(double boundingBoxRight) {
      this.boundingBoxRight = boundingBoxRight;
      boundingBoxRight__is_set = true;
    }

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

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

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

    private double boundingBoxTop;

    public double getBoundingBoxTop() {
      return boundingBoxTop;
    }

    public void setBoundingBoxTop(double boundingBoxTop) {
      this.boundingBoxTop = boundingBoxTop;
      boundingBoxTop__is_set = true;
    }

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

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

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

    private java.lang.String mapLabel;

    public java.lang.String getMapLabel() {
      return mapLabel;
    }

    public void setMapLabel(java.lang.String mapLabel) {
      this.mapLabel = mapLabel;
      mapLabel__is_set = true;
    }

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

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

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

    private java.lang.String mapName;

    public java.lang.String getMapName() {
      return mapName;
    }

    public void setMapName(java.lang.String mapName) {
      this.mapName = mapName;
      mapName__is_set = true;
    }

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

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

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

    private java.lang.String projection;

    public java.lang.String getProjection() {
      return projection;
    }

    public void setProjection(java.lang.String projection) {
      this.projection = projection;
      projection__is_set = true;
    }

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

    private void writeFieldProjection(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("projection", "http://soap.sforce.com/2006/04/metadata","projection","http://www.w3.org/2001/XMLSchema","string",1,1,true), projection, projection__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("[EclairMap ");
      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 {
      writeFieldBoundingBoxBottom(__out, __typeMapper);
      writeFieldBoundingBoxLeft(__out, __typeMapper);
      writeFieldBoundingBoxRight(__out, __typeMapper);
      writeFieldBoundingBoxTop(__out, __typeMapper);
      writeFieldMapLabel(__out, __typeMapper);
      writeFieldMapName(__out, __typeMapper);
      writeFieldProjection(__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 {
      setBoundingBoxBottom(__in, __typeMapper);
      setBoundingBoxLeft(__in, __typeMapper);
      setBoundingBoxRight(__in, __typeMapper);
      setBoundingBoxTop(__in, __typeMapper);
      setMapLabel(__in, __typeMapper);
      setMapName(__in, __typeMapper);
      setProjection(__in, __typeMapper);
    }

    private void toString1(StringBuilder sb) {
      toStringHelper(sb, "boundingBoxBottom", boundingBoxBottom);
      toStringHelper(sb, "boundingBoxLeft", boundingBoxLeft);
      toStringHelper(sb, "boundingBoxRight", boundingBoxRight);
      toStringHelper(sb, "boundingBoxTop", boundingBoxTop);
      toStringHelper(sb, "mapLabel", mapLabel);
      toStringHelper(sb, "mapName", mapName);
      toStringHelper(sb, "projection", projection);
    }


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy