342 lines
15 KiB
Java
342 lines
15 KiB
Java
|
|
package com.sforce.soap.tooling.sobject;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* This is a generated class for the SObject Enterprise API.
|
||
|
|
* Do not edit this file, as your changes will be lost.
|
||
|
|
*/
|
||
|
|
public class IconDefinition extends com.sforce.soap.tooling.sobject.SObject {
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Constructor
|
||
|
|
*/
|
||
|
|
public IconDefinition() {}
|
||
|
|
|
||
|
|
/* 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 : ContentType of type {http://www.w3.org/2001/XMLSchema}string
|
||
|
|
* java type: java.lang.String
|
||
|
|
*/
|
||
|
|
private boolean ContentType__is_set = false;
|
||
|
|
|
||
|
|
private java.lang.String ContentType;
|
||
|
|
|
||
|
|
public java.lang.String getContentType() {
|
||
|
|
return ContentType;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setContentType(java.lang.String ContentType) {
|
||
|
|
this.ContentType = ContentType;
|
||
|
|
ContentType__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setContentType(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("ContentType", "urn:sobject.tooling.soap.sforce.com","ContentType","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
|
||
|
|
setContentType(__typeMapper.readString(__in, _lookupTypeInfo("ContentType", "urn:sobject.tooling.soap.sforce.com","ContentType","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldContentType(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("ContentType", "urn:sobject.tooling.soap.sforce.com","ContentType","http://www.w3.org/2001/XMLSchema","string",0,1,true), ContentType, ContentType__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : DurableId of type {http://www.w3.org/2001/XMLSchema}string
|
||
|
|
* java type: java.lang.String
|
||
|
|
*/
|
||
|
|
private boolean DurableId__is_set = false;
|
||
|
|
|
||
|
|
private java.lang.String DurableId;
|
||
|
|
|
||
|
|
public java.lang.String getDurableId() {
|
||
|
|
return DurableId;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setDurableId(java.lang.String DurableId) {
|
||
|
|
this.DurableId = DurableId;
|
||
|
|
DurableId__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setDurableId(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("DurableId", "urn:sobject.tooling.soap.sforce.com","DurableId","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
|
||
|
|
setDurableId(__typeMapper.readString(__in, _lookupTypeInfo("DurableId", "urn:sobject.tooling.soap.sforce.com","DurableId","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldDurableId(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("DurableId", "urn:sobject.tooling.soap.sforce.com","DurableId","http://www.w3.org/2001/XMLSchema","string",0,1,true), DurableId, DurableId__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : Height of type {http://www.w3.org/2001/XMLSchema}int
|
||
|
|
* java type: java.lang.Integer
|
||
|
|
*/
|
||
|
|
private boolean Height__is_set = false;
|
||
|
|
|
||
|
|
private java.lang.Integer Height;
|
||
|
|
|
||
|
|
public java.lang.Integer getHeight() {
|
||
|
|
return Height;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setHeight(java.lang.Integer 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", "urn:sobject.tooling.soap.sforce.com","Height","http://www.w3.org/2001/XMLSchema","int",0,1,true))) {
|
||
|
|
setHeight((java.lang.Integer)__typeMapper.readObject(__in, _lookupTypeInfo("Height", "urn:sobject.tooling.soap.sforce.com","Height","http://www.w3.org/2001/XMLSchema","int",0,1,true), java.lang.Integer.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", "urn:sobject.tooling.soap.sforce.com","Height","http://www.w3.org/2001/XMLSchema","int",0,1,true), Height, Height__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : TabDefinition of type {urn:sobject.tooling.soap.sforce.com}TabDefinition
|
||
|
|
* java type: com.sforce.soap.tooling.sobject.TabDefinition
|
||
|
|
*/
|
||
|
|
private boolean TabDefinition__is_set = false;
|
||
|
|
|
||
|
|
private com.sforce.soap.tooling.sobject.TabDefinition TabDefinition;
|
||
|
|
|
||
|
|
public com.sforce.soap.tooling.sobject.TabDefinition getTabDefinition() {
|
||
|
|
return TabDefinition;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setTabDefinition(com.sforce.soap.tooling.sobject.TabDefinition TabDefinition) {
|
||
|
|
this.TabDefinition = TabDefinition;
|
||
|
|
TabDefinition__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setTabDefinition(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("TabDefinition", "urn:sobject.tooling.soap.sforce.com","TabDefinition","urn:sobject.tooling.soap.sforce.com","TabDefinition",0,1,true))) {
|
||
|
|
setTabDefinition((com.sforce.soap.tooling.sobject.TabDefinition)__typeMapper.readObject(__in, _lookupTypeInfo("TabDefinition", "urn:sobject.tooling.soap.sforce.com","TabDefinition","urn:sobject.tooling.soap.sforce.com","TabDefinition",0,1,true), com.sforce.soap.tooling.sobject.TabDefinition.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldTabDefinition(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("TabDefinition", "urn:sobject.tooling.soap.sforce.com","TabDefinition","urn:sobject.tooling.soap.sforce.com","TabDefinition",0,1,true), TabDefinition, TabDefinition__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : TabDefinitionId of type {http://www.w3.org/2001/XMLSchema}string
|
||
|
|
* java type: java.lang.String
|
||
|
|
*/
|
||
|
|
private boolean TabDefinitionId__is_set = false;
|
||
|
|
|
||
|
|
private java.lang.String TabDefinitionId;
|
||
|
|
|
||
|
|
public java.lang.String getTabDefinitionId() {
|
||
|
|
return TabDefinitionId;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setTabDefinitionId(java.lang.String TabDefinitionId) {
|
||
|
|
this.TabDefinitionId = TabDefinitionId;
|
||
|
|
TabDefinitionId__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setTabDefinitionId(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("TabDefinitionId", "urn:sobject.tooling.soap.sforce.com","TabDefinitionId","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
|
||
|
|
setTabDefinitionId(__typeMapper.readString(__in, _lookupTypeInfo("TabDefinitionId", "urn:sobject.tooling.soap.sforce.com","TabDefinitionId","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldTabDefinitionId(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("TabDefinitionId", "urn:sobject.tooling.soap.sforce.com","TabDefinitionId","http://www.w3.org/2001/XMLSchema","string",0,1,true), TabDefinitionId, TabDefinitionId__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : Theme of type {http://www.w3.org/2001/XMLSchema}string
|
||
|
|
* java type: java.lang.String
|
||
|
|
*/
|
||
|
|
private boolean Theme__is_set = false;
|
||
|
|
|
||
|
|
private java.lang.String Theme;
|
||
|
|
|
||
|
|
public java.lang.String getTheme() {
|
||
|
|
return Theme;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setTheme(java.lang.String Theme) {
|
||
|
|
this.Theme = Theme;
|
||
|
|
Theme__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setTheme(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("Theme", "urn:sobject.tooling.soap.sforce.com","Theme","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
|
||
|
|
setTheme(__typeMapper.readString(__in, _lookupTypeInfo("Theme", "urn:sobject.tooling.soap.sforce.com","Theme","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldTheme(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("Theme", "urn:sobject.tooling.soap.sforce.com","Theme","http://www.w3.org/2001/XMLSchema","string",0,1,true), Theme, Theme__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : Url of type {http://www.w3.org/2001/XMLSchema}string
|
||
|
|
* java type: java.lang.String
|
||
|
|
*/
|
||
|
|
private boolean Url__is_set = false;
|
||
|
|
|
||
|
|
private java.lang.String Url;
|
||
|
|
|
||
|
|
public java.lang.String getUrl() {
|
||
|
|
return Url;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setUrl(java.lang.String Url) {
|
||
|
|
this.Url = Url;
|
||
|
|
Url__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setUrl(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("Url", "urn:sobject.tooling.soap.sforce.com","Url","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
|
||
|
|
setUrl(__typeMapper.readString(__in, _lookupTypeInfo("Url", "urn:sobject.tooling.soap.sforce.com","Url","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldUrl(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("Url", "urn:sobject.tooling.soap.sforce.com","Url","http://www.w3.org/2001/XMLSchema","string",0,1,true), Url, Url__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : Width of type {http://www.w3.org/2001/XMLSchema}int
|
||
|
|
* java type: java.lang.Integer
|
||
|
|
*/
|
||
|
|
private boolean Width__is_set = false;
|
||
|
|
|
||
|
|
private java.lang.Integer Width;
|
||
|
|
|
||
|
|
public java.lang.Integer getWidth() {
|
||
|
|
return Width;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setWidth(java.lang.Integer 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", "urn:sobject.tooling.soap.sforce.com","Width","http://www.w3.org/2001/XMLSchema","int",0,1,true))) {
|
||
|
|
setWidth((java.lang.Integer)__typeMapper.readObject(__in, _lookupTypeInfo("Width", "urn:sobject.tooling.soap.sforce.com","Width","http://www.w3.org/2001/XMLSchema","int",0,1,true), java.lang.Integer.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", "urn:sobject.tooling.soap.sforce.com","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());
|
||
|
|
__typeMapper.writeXsiType(__out, "urn:sobject.tooling.soap.sforce.com", "IconDefinition");
|
||
|
|
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 {
|
||
|
|
super.writeFields(__out, __typeMapper);
|
||
|
|
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 {
|
||
|
|
super.loadFields(__in, __typeMapper);
|
||
|
|
loadFields1(__in, __typeMapper);
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public String toString() {
|
||
|
|
java.lang.StringBuilder sb = new java.lang.StringBuilder();
|
||
|
|
sb.append("[IconDefinition ");
|
||
|
|
sb.append(super.toString());
|
||
|
|
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 {
|
||
|
|
writeFieldContentType(__out, __typeMapper);
|
||
|
|
writeFieldDurableId(__out, __typeMapper);
|
||
|
|
writeFieldHeight(__out, __typeMapper);
|
||
|
|
writeFieldTabDefinition(__out, __typeMapper);
|
||
|
|
writeFieldTabDefinitionId(__out, __typeMapper);
|
||
|
|
writeFieldTheme(__out, __typeMapper);
|
||
|
|
writeFieldUrl(__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 {
|
||
|
|
setContentType(__in, __typeMapper);
|
||
|
|
setDurableId(__in, __typeMapper);
|
||
|
|
setHeight(__in, __typeMapper);
|
||
|
|
setTabDefinition(__in, __typeMapper);
|
||
|
|
setTabDefinitionId(__in, __typeMapper);
|
||
|
|
setTheme(__in, __typeMapper);
|
||
|
|
setUrl(__in, __typeMapper);
|
||
|
|
setWidth(__in, __typeMapper);
|
||
|
|
}
|
||
|
|
|
||
|
|
private void toString1(StringBuilder sb) {
|
||
|
|
toStringHelper(sb, "ContentType", ContentType);
|
||
|
|
toStringHelper(sb, "DurableId", DurableId);
|
||
|
|
toStringHelper(sb, "Height", Height);
|
||
|
|
toStringHelper(sb, "TabDefinition", TabDefinition);
|
||
|
|
toStringHelper(sb, "TabDefinitionId", TabDefinitionId);
|
||
|
|
toStringHelper(sb, "Theme", Theme);
|
||
|
|
toStringHelper(sb, "Url", Url);
|
||
|
|
toStringHelper(sb, "Width", Width);
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
}
|