242 lines
11 KiB
Java
242 lines
11 KiB
Java
|
|
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 DashboardGridComponent implements com.sforce.ws.bind.XMLizable {
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Constructor
|
||
|
|
*/
|
||
|
|
public DashboardGridComponent() {}
|
||
|
|
|
||
|
|
/* Cache the typeInfo instead of declaring static fields throughout*/
|
||
|
|
private transient java.util.Map<String, com.sforce.ws.bind.TypeInfo> typeInfoCache = new java.util.HashMap<String, com.sforce.ws.bind.TypeInfo>();
|
||
|
|
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 : colSpan of type {http://www.w3.org/2001/XMLSchema}int
|
||
|
|
* java type: int
|
||
|
|
*/
|
||
|
|
private boolean colSpan__is_set = false;
|
||
|
|
|
||
|
|
private int colSpan;
|
||
|
|
|
||
|
|
public int getColSpan() {
|
||
|
|
return colSpan;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setColSpan(int colSpan) {
|
||
|
|
this.colSpan = colSpan;
|
||
|
|
colSpan__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setColSpan(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("colSpan", "http://soap.sforce.com/2006/04/metadata","colSpan","http://www.w3.org/2001/XMLSchema","int",1,1,true))) {
|
||
|
|
setColSpan((int)__typeMapper.readInt(__in, _lookupTypeInfo("colSpan", "http://soap.sforce.com/2006/04/metadata","colSpan","http://www.w3.org/2001/XMLSchema","int",1,1,true), int.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldColSpan(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("colSpan", "http://soap.sforce.com/2006/04/metadata","colSpan","http://www.w3.org/2001/XMLSchema","int",1,1,true), colSpan, colSpan__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : columnIndex of type {http://www.w3.org/2001/XMLSchema}int
|
||
|
|
* java type: int
|
||
|
|
*/
|
||
|
|
private boolean columnIndex__is_set = false;
|
||
|
|
|
||
|
|
private int columnIndex;
|
||
|
|
|
||
|
|
public int getColumnIndex() {
|
||
|
|
return columnIndex;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setColumnIndex(int columnIndex) {
|
||
|
|
this.columnIndex = columnIndex;
|
||
|
|
columnIndex__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setColumnIndex(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("columnIndex", "http://soap.sforce.com/2006/04/metadata","columnIndex","http://www.w3.org/2001/XMLSchema","int",1,1,true))) {
|
||
|
|
setColumnIndex((int)__typeMapper.readInt(__in, _lookupTypeInfo("columnIndex", "http://soap.sforce.com/2006/04/metadata","columnIndex","http://www.w3.org/2001/XMLSchema","int",1,1,true), int.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldColumnIndex(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("columnIndex", "http://soap.sforce.com/2006/04/metadata","columnIndex","http://www.w3.org/2001/XMLSchema","int",1,1,true), columnIndex, columnIndex__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : dashboardComponent of type {http://soap.sforce.com/2006/04/metadata}DashboardComponent
|
||
|
|
* java type: com.sforce.soap.metadata.DashboardComponent
|
||
|
|
*/
|
||
|
|
private boolean dashboardComponent__is_set = false;
|
||
|
|
|
||
|
|
private com.sforce.soap.metadata.DashboardComponent dashboardComponent;
|
||
|
|
|
||
|
|
public com.sforce.soap.metadata.DashboardComponent getDashboardComponent() {
|
||
|
|
return dashboardComponent;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setDashboardComponent(com.sforce.soap.metadata.DashboardComponent dashboardComponent) {
|
||
|
|
this.dashboardComponent = dashboardComponent;
|
||
|
|
dashboardComponent__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setDashboardComponent(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("dashboardComponent", "http://soap.sforce.com/2006/04/metadata","dashboardComponent","http://soap.sforce.com/2006/04/metadata","DashboardComponent",1,1,true))) {
|
||
|
|
setDashboardComponent((com.sforce.soap.metadata.DashboardComponent)__typeMapper.readObject(__in, _lookupTypeInfo("dashboardComponent", "http://soap.sforce.com/2006/04/metadata","dashboardComponent","http://soap.sforce.com/2006/04/metadata","DashboardComponent",1,1,true), com.sforce.soap.metadata.DashboardComponent.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldDashboardComponent(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("dashboardComponent", "http://soap.sforce.com/2006/04/metadata","dashboardComponent","http://soap.sforce.com/2006/04/metadata","DashboardComponent",1,1,true), dashboardComponent, dashboardComponent__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : rowIndex of type {http://www.w3.org/2001/XMLSchema}int
|
||
|
|
* java type: int
|
||
|
|
*/
|
||
|
|
private boolean rowIndex__is_set = false;
|
||
|
|
|
||
|
|
private int rowIndex;
|
||
|
|
|
||
|
|
public int getRowIndex() {
|
||
|
|
return rowIndex;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setRowIndex(int rowIndex) {
|
||
|
|
this.rowIndex = rowIndex;
|
||
|
|
rowIndex__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setRowIndex(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("rowIndex", "http://soap.sforce.com/2006/04/metadata","rowIndex","http://www.w3.org/2001/XMLSchema","int",1,1,true))) {
|
||
|
|
setRowIndex((int)__typeMapper.readInt(__in, _lookupTypeInfo("rowIndex", "http://soap.sforce.com/2006/04/metadata","rowIndex","http://www.w3.org/2001/XMLSchema","int",1,1,true), int.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldRowIndex(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("rowIndex", "http://soap.sforce.com/2006/04/metadata","rowIndex","http://www.w3.org/2001/XMLSchema","int",1,1,true), rowIndex, rowIndex__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : rowSpan of type {http://www.w3.org/2001/XMLSchema}int
|
||
|
|
* java type: int
|
||
|
|
*/
|
||
|
|
private boolean rowSpan__is_set = false;
|
||
|
|
|
||
|
|
private int rowSpan;
|
||
|
|
|
||
|
|
public int getRowSpan() {
|
||
|
|
return rowSpan;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setRowSpan(int rowSpan) {
|
||
|
|
this.rowSpan = rowSpan;
|
||
|
|
rowSpan__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setRowSpan(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("rowSpan", "http://soap.sforce.com/2006/04/metadata","rowSpan","http://www.w3.org/2001/XMLSchema","int",1,1,true))) {
|
||
|
|
setRowSpan((int)__typeMapper.readInt(__in, _lookupTypeInfo("rowSpan", "http://soap.sforce.com/2006/04/metadata","rowSpan","http://www.w3.org/2001/XMLSchema","int",1,1,true), int.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldRowSpan(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("rowSpan", "http://soap.sforce.com/2006/04/metadata","rowSpan","http://www.w3.org/2001/XMLSchema","int",1,1,true), rowSpan, rowSpan__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("[DashboardGridComponent ");
|
||
|
|
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 {
|
||
|
|
writeFieldColSpan(__out, __typeMapper);
|
||
|
|
writeFieldColumnIndex(__out, __typeMapper);
|
||
|
|
writeFieldDashboardComponent(__out, __typeMapper);
|
||
|
|
writeFieldRowIndex(__out, __typeMapper);
|
||
|
|
writeFieldRowSpan(__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 {
|
||
|
|
setColSpan(__in, __typeMapper);
|
||
|
|
setColumnIndex(__in, __typeMapper);
|
||
|
|
setDashboardComponent(__in, __typeMapper);
|
||
|
|
setRowIndex(__in, __typeMapper);
|
||
|
|
setRowSpan(__in, __typeMapper);
|
||
|
|
}
|
||
|
|
|
||
|
|
private void toString1(StringBuilder sb) {
|
||
|
|
toStringHelper(sb, "colSpan", colSpan);
|
||
|
|
toStringHelper(sb, "columnIndex", columnIndex);
|
||
|
|
toStringHelper(sb, "dashboardComponent", dashboardComponent);
|
||
|
|
toStringHelper(sb, "rowIndex", rowIndex);
|
||
|
|
toStringHelper(sb, "rowSpan", rowSpan);
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
}
|