246 lines
12 KiB
Java
246 lines
12 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 ServicePresenceStatusInfo extends com.sforce.soap.tooling.sobject.SObject {
|
|
|
|
/**
|
|
* Constructor
|
|
*/
|
|
public ServicePresenceStatusInfo() {}
|
|
|
|
/* 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 : 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 : HasChannels of type {http://www.w3.org/2001/XMLSchema}boolean
|
|
* java type: java.lang.Boolean
|
|
*/
|
|
private boolean HasChannels__is_set = false;
|
|
|
|
private java.lang.Boolean HasChannels;
|
|
|
|
public java.lang.Boolean getHasChannels() {
|
|
return HasChannels;
|
|
}
|
|
|
|
public void setHasChannels(java.lang.Boolean HasChannels) {
|
|
this.HasChannels = HasChannels;
|
|
HasChannels__is_set = true;
|
|
}
|
|
|
|
protected void setHasChannels(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("HasChannels", "urn:sobject.tooling.soap.sforce.com","HasChannels","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
|
|
setHasChannels((java.lang.Boolean)__typeMapper.readObject(__in, _lookupTypeInfo("HasChannels", "urn:sobject.tooling.soap.sforce.com","HasChannels","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), java.lang.Boolean.class));
|
|
}
|
|
}
|
|
|
|
private void writeFieldHasChannels(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("HasChannels", "urn:sobject.tooling.soap.sforce.com","HasChannels","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), HasChannels, HasChannels__is_set);
|
|
}
|
|
|
|
/**
|
|
* element : MasterLabel of type {http://www.w3.org/2001/XMLSchema}string
|
|
* java type: java.lang.String
|
|
*/
|
|
private boolean MasterLabel__is_set = false;
|
|
|
|
private java.lang.String MasterLabel;
|
|
|
|
public java.lang.String getMasterLabel() {
|
|
return MasterLabel;
|
|
}
|
|
|
|
public void setMasterLabel(java.lang.String MasterLabel) {
|
|
this.MasterLabel = MasterLabel;
|
|
MasterLabel__is_set = true;
|
|
}
|
|
|
|
protected void setMasterLabel(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("MasterLabel", "urn:sobject.tooling.soap.sforce.com","MasterLabel","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
|
|
setMasterLabel(__typeMapper.readString(__in, _lookupTypeInfo("MasterLabel", "urn:sobject.tooling.soap.sforce.com","MasterLabel","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
|
|
}
|
|
}
|
|
|
|
private void writeFieldMasterLabel(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("MasterLabel", "urn:sobject.tooling.soap.sforce.com","MasterLabel","http://www.w3.org/2001/XMLSchema","string",0,1,true), MasterLabel, MasterLabel__is_set);
|
|
}
|
|
|
|
/**
|
|
* element : ServicePresenceStatusId of type {http://www.w3.org/2001/XMLSchema}string
|
|
* java type: java.lang.String
|
|
*/
|
|
private boolean ServicePresenceStatusId__is_set = false;
|
|
|
|
private java.lang.String ServicePresenceStatusId;
|
|
|
|
public java.lang.String getServicePresenceStatusId() {
|
|
return ServicePresenceStatusId;
|
|
}
|
|
|
|
public void setServicePresenceStatusId(java.lang.String ServicePresenceStatusId) {
|
|
this.ServicePresenceStatusId = ServicePresenceStatusId;
|
|
ServicePresenceStatusId__is_set = true;
|
|
}
|
|
|
|
protected void setServicePresenceStatusId(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("ServicePresenceStatusId", "urn:sobject.tooling.soap.sforce.com","ServicePresenceStatusId","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
|
|
setServicePresenceStatusId(__typeMapper.readString(__in, _lookupTypeInfo("ServicePresenceStatusId", "urn:sobject.tooling.soap.sforce.com","ServicePresenceStatusId","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
|
|
}
|
|
}
|
|
|
|
private void writeFieldServicePresenceStatusId(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("ServicePresenceStatusId", "urn:sobject.tooling.soap.sforce.com","ServicePresenceStatusId","http://www.w3.org/2001/XMLSchema","string",0,1,true), ServicePresenceStatusId, ServicePresenceStatusId__is_set);
|
|
}
|
|
|
|
/**
|
|
* element : StatusCapacityModel of type {http://www.w3.org/2001/XMLSchema}string
|
|
* java type: java.lang.String
|
|
*/
|
|
private boolean StatusCapacityModel__is_set = false;
|
|
|
|
private java.lang.String StatusCapacityModel;
|
|
|
|
public java.lang.String getStatusCapacityModel() {
|
|
return StatusCapacityModel;
|
|
}
|
|
|
|
public void setStatusCapacityModel(java.lang.String StatusCapacityModel) {
|
|
this.StatusCapacityModel = StatusCapacityModel;
|
|
StatusCapacityModel__is_set = true;
|
|
}
|
|
|
|
protected void setStatusCapacityModel(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("StatusCapacityModel", "urn:sobject.tooling.soap.sforce.com","StatusCapacityModel","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
|
|
setStatusCapacityModel(__typeMapper.readString(__in, _lookupTypeInfo("StatusCapacityModel", "urn:sobject.tooling.soap.sforce.com","StatusCapacityModel","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
|
|
}
|
|
}
|
|
|
|
private void writeFieldStatusCapacityModel(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("StatusCapacityModel", "urn:sobject.tooling.soap.sforce.com","StatusCapacityModel","http://www.w3.org/2001/XMLSchema","string",0,1,true), StatusCapacityModel, StatusCapacityModel__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", "ServicePresenceStatusInfo");
|
|
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("[ServicePresenceStatusInfo ");
|
|
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 {
|
|
writeFieldDurableId(__out, __typeMapper);
|
|
writeFieldHasChannels(__out, __typeMapper);
|
|
writeFieldMasterLabel(__out, __typeMapper);
|
|
writeFieldServicePresenceStatusId(__out, __typeMapper);
|
|
writeFieldStatusCapacityModel(__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 {
|
|
setDurableId(__in, __typeMapper);
|
|
setHasChannels(__in, __typeMapper);
|
|
setMasterLabel(__in, __typeMapper);
|
|
setServicePresenceStatusId(__in, __typeMapper);
|
|
setStatusCapacityModel(__in, __typeMapper);
|
|
}
|
|
|
|
private void toString1(StringBuilder sb) {
|
|
toStringHelper(sb, "DurableId", DurableId);
|
|
toStringHelper(sb, "HasChannels", HasChannels);
|
|
toStringHelper(sb, "MasterLabel", MasterLabel);
|
|
toStringHelper(sb, "ServicePresenceStatusId", ServicePresenceStatusId);
|
|
toStringHelper(sb, "StatusCapacityModel", StatusCapacityModel);
|
|
}
|
|
|
|
|
|
}
|