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

com.sforce.soap.metadata.DashboardTableColumn 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 DashboardTableColumn implements com.sforce.ws.bind.XMLizable {

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

    /* 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 : aggregateType of type {http://soap.sforce.com/2006/04/metadata}ReportSummaryType
     * java type: com.sforce.soap.metadata.ReportSummaryType
     */
    private boolean aggregateType__is_set = false;

    private com.sforce.soap.metadata.ReportSummaryType aggregateType;

    public com.sforce.soap.metadata.ReportSummaryType getAggregateType() {
      return aggregateType;
    }

    public void setAggregateType(com.sforce.soap.metadata.ReportSummaryType aggregateType) {
      this.aggregateType = aggregateType;
      aggregateType__is_set = true;
    }

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

    private void writeFieldAggregateType(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("aggregateType", "http://soap.sforce.com/2006/04/metadata","aggregateType","http://soap.sforce.com/2006/04/metadata","ReportSummaryType",0,1,true), aggregateType, aggregateType__is_set);
    }

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

    private boolean calculatePercent;

    public boolean getCalculatePercent() {
      return calculatePercent;
    }

    public boolean isCalculatePercent() {
      return calculatePercent;
    }

    public void setCalculatePercent(boolean calculatePercent) {
      this.calculatePercent = calculatePercent;
      calculatePercent__is_set = true;
    }

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

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

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

    private java.lang.String column;

    public java.lang.String getColumn() {
      return column;
    }

    public void setColumn(java.lang.String column) {
      this.column = column;
      column__is_set = true;
    }

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

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

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

    private int decimalPlaces;

    public int getDecimalPlaces() {
      return decimalPlaces;
    }

    public void setDecimalPlaces(int decimalPlaces) {
      this.decimalPlaces = decimalPlaces;
      decimalPlaces__is_set = true;
    }

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

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

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

    private boolean showSubTotal;

    public boolean getShowSubTotal() {
      return showSubTotal;
    }

    public boolean isShowSubTotal() {
      return showSubTotal;
    }

    public void setShowSubTotal(boolean showSubTotal) {
      this.showSubTotal = showSubTotal;
      showSubTotal__is_set = true;
    }

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

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

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

    private boolean showTotal;

    public boolean getShowTotal() {
      return showTotal;
    }

    public boolean isShowTotal() {
      return showTotal;
    }

    public void setShowTotal(boolean showTotal) {
      this.showTotal = showTotal;
      showTotal__is_set = true;
    }

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

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

    /**
     * element : sortBy of type {http://soap.sforce.com/2006/04/metadata}DashboardComponentFilter
     * java type: com.sforce.soap.metadata.DashboardComponentFilter
     */
    private boolean sortBy__is_set = false;

    private com.sforce.soap.metadata.DashboardComponentFilter sortBy;

    public com.sforce.soap.metadata.DashboardComponentFilter getSortBy() {
      return sortBy;
    }

    public void setSortBy(com.sforce.soap.metadata.DashboardComponentFilter sortBy) {
      this.sortBy = sortBy;
      sortBy__is_set = true;
    }

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

    private void writeFieldSortBy(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
      __typeMapper.writeObject(__out, _lookupTypeInfo("sortBy", "http://soap.sforce.com/2006/04/metadata","sortBy","http://soap.sforce.com/2006/04/metadata","DashboardComponentFilter",0,1,true), sortBy, sortBy__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("[DashboardTableColumn ");
      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 {
      writeFieldAggregateType(__out, __typeMapper);
      writeFieldCalculatePercent(__out, __typeMapper);
      writeFieldColumn(__out, __typeMapper);
      writeFieldDecimalPlaces(__out, __typeMapper);
      writeFieldShowSubTotal(__out, __typeMapper);
      writeFieldShowTotal(__out, __typeMapper);
      writeFieldSortBy(__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 {
      setAggregateType(__in, __typeMapper);
      setCalculatePercent(__in, __typeMapper);
      setColumn(__in, __typeMapper);
      setDecimalPlaces(__in, __typeMapper);
      setShowSubTotal(__in, __typeMapper);
      setShowTotal(__in, __typeMapper);
      setSortBy(__in, __typeMapper);
    }

    private void toString1(StringBuilder sb) {
      toStringHelper(sb, "aggregateType", aggregateType);
      toStringHelper(sb, "calculatePercent", calculatePercent);
      toStringHelper(sb, "column", column);
      toStringHelper(sb, "decimalPlaces", decimalPlaces);
      toStringHelper(sb, "showSubTotal", showSubTotal);
      toStringHelper(sb, "showTotal", showTotal);
      toStringHelper(sb, "sortBy", sortBy);
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy