274 lines
13 KiB
Java
274 lines
13 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 ContactCenterChannel implements com.sforce.ws.bind.XMLizable {
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Constructor
|
||
|
|
*/
|
||
|
|
public ContactCenterChannel() {}
|
||
|
|
|
||
|
|
/* 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 : channel of type {http://www.w3.org/2001/XMLSchema}string
|
||
|
|
* java type: java.lang.String
|
||
|
|
*/
|
||
|
|
private boolean channel__is_set = false;
|
||
|
|
|
||
|
|
private java.lang.String channel;
|
||
|
|
|
||
|
|
public java.lang.String getChannel() {
|
||
|
|
return channel;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setChannel(java.lang.String channel) {
|
||
|
|
this.channel = channel;
|
||
|
|
channel__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setChannel(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("channel", "http://soap.sforce.com/2006/04/metadata","channel","http://www.w3.org/2001/XMLSchema","string",1,1,true))) {
|
||
|
|
setChannel(__typeMapper.readString(__in, _lookupTypeInfo("channel", "http://soap.sforce.com/2006/04/metadata","channel","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldChannel(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("channel", "http://soap.sforce.com/2006/04/metadata","channel","http://www.w3.org/2001/XMLSchema","string",1,1,true), channel, channel__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : contactCenter of type {http://www.w3.org/2001/XMLSchema}string
|
||
|
|
* java type: java.lang.String
|
||
|
|
*/
|
||
|
|
private boolean contactCenter__is_set = false;
|
||
|
|
|
||
|
|
private java.lang.String contactCenter;
|
||
|
|
|
||
|
|
public java.lang.String getContactCenter() {
|
||
|
|
return contactCenter;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setContactCenter(java.lang.String contactCenter) {
|
||
|
|
this.contactCenter = contactCenter;
|
||
|
|
contactCenter__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setContactCenter(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("contactCenter", "http://soap.sforce.com/2006/04/metadata","contactCenter","http://www.w3.org/2001/XMLSchema","string",1,1,true))) {
|
||
|
|
setContactCenter(__typeMapper.readString(__in, _lookupTypeInfo("contactCenter", "http://soap.sforce.com/2006/04/metadata","contactCenter","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldContactCenter(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("contactCenter", "http://soap.sforce.com/2006/04/metadata","contactCenter","http://www.w3.org/2001/XMLSchema","string",1,1,true), contactCenter, contactCenter__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : omniCallbackFallbackQueue of type {http://www.w3.org/2001/XMLSchema}string
|
||
|
|
* java type: java.lang.String
|
||
|
|
*/
|
||
|
|
private boolean omniCallbackFallbackQueue__is_set = false;
|
||
|
|
|
||
|
|
private java.lang.String omniCallbackFallbackQueue;
|
||
|
|
|
||
|
|
public java.lang.String getOmniCallbackFallbackQueue() {
|
||
|
|
return omniCallbackFallbackQueue;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setOmniCallbackFallbackQueue(java.lang.String omniCallbackFallbackQueue) {
|
||
|
|
this.omniCallbackFallbackQueue = omniCallbackFallbackQueue;
|
||
|
|
omniCallbackFallbackQueue__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setOmniCallbackFallbackQueue(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("omniCallbackFallbackQueue", "http://soap.sforce.com/2006/04/metadata","omniCallbackFallbackQueue","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
|
||
|
|
setOmniCallbackFallbackQueue(__typeMapper.readString(__in, _lookupTypeInfo("omniCallbackFallbackQueue", "http://soap.sforce.com/2006/04/metadata","omniCallbackFallbackQueue","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldOmniCallbackFallbackQueue(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("omniCallbackFallbackQueue", "http://soap.sforce.com/2006/04/metadata","omniCallbackFallbackQueue","http://www.w3.org/2001/XMLSchema","string",0,1,true), omniCallbackFallbackQueue, omniCallbackFallbackQueue__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : omniCallbackHandler of type {http://www.w3.org/2001/XMLSchema}string
|
||
|
|
* java type: java.lang.String
|
||
|
|
*/
|
||
|
|
private boolean omniCallbackHandler__is_set = false;
|
||
|
|
|
||
|
|
private java.lang.String omniCallbackHandler;
|
||
|
|
|
||
|
|
public java.lang.String getOmniCallbackHandler() {
|
||
|
|
return omniCallbackHandler;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setOmniCallbackHandler(java.lang.String omniCallbackHandler) {
|
||
|
|
this.omniCallbackHandler = omniCallbackHandler;
|
||
|
|
omniCallbackHandler__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setOmniCallbackHandler(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("omniCallbackHandler", "http://soap.sforce.com/2006/04/metadata","omniCallbackHandler","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
|
||
|
|
setOmniCallbackHandler(__typeMapper.readString(__in, _lookupTypeInfo("omniCallbackHandler", "http://soap.sforce.com/2006/04/metadata","omniCallbackHandler","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldOmniCallbackHandler(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("omniCallbackHandler", "http://soap.sforce.com/2006/04/metadata","omniCallbackHandler","http://www.w3.org/2001/XMLSchema","string",0,1,true), omniCallbackHandler, omniCallbackHandler__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : voiceMailFallbackQueue of type {http://www.w3.org/2001/XMLSchema}string
|
||
|
|
* java type: java.lang.String
|
||
|
|
*/
|
||
|
|
private boolean voiceMailFallbackQueue__is_set = false;
|
||
|
|
|
||
|
|
private java.lang.String voiceMailFallbackQueue;
|
||
|
|
|
||
|
|
public java.lang.String getVoiceMailFallbackQueue() {
|
||
|
|
return voiceMailFallbackQueue;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setVoiceMailFallbackQueue(java.lang.String voiceMailFallbackQueue) {
|
||
|
|
this.voiceMailFallbackQueue = voiceMailFallbackQueue;
|
||
|
|
voiceMailFallbackQueue__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setVoiceMailFallbackQueue(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("voiceMailFallbackQueue", "http://soap.sforce.com/2006/04/metadata","voiceMailFallbackQueue","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
|
||
|
|
setVoiceMailFallbackQueue(__typeMapper.readString(__in, _lookupTypeInfo("voiceMailFallbackQueue", "http://soap.sforce.com/2006/04/metadata","voiceMailFallbackQueue","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldVoiceMailFallbackQueue(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("voiceMailFallbackQueue", "http://soap.sforce.com/2006/04/metadata","voiceMailFallbackQueue","http://www.w3.org/2001/XMLSchema","string",0,1,true), voiceMailFallbackQueue, voiceMailFallbackQueue__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : voiceMailHandler of type {http://www.w3.org/2001/XMLSchema}string
|
||
|
|
* java type: java.lang.String
|
||
|
|
*/
|
||
|
|
private boolean voiceMailHandler__is_set = false;
|
||
|
|
|
||
|
|
private java.lang.String voiceMailHandler;
|
||
|
|
|
||
|
|
public java.lang.String getVoiceMailHandler() {
|
||
|
|
return voiceMailHandler;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setVoiceMailHandler(java.lang.String voiceMailHandler) {
|
||
|
|
this.voiceMailHandler = voiceMailHandler;
|
||
|
|
voiceMailHandler__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setVoiceMailHandler(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("voiceMailHandler", "http://soap.sforce.com/2006/04/metadata","voiceMailHandler","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
|
||
|
|
setVoiceMailHandler(__typeMapper.readString(__in, _lookupTypeInfo("voiceMailHandler", "http://soap.sforce.com/2006/04/metadata","voiceMailHandler","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldVoiceMailHandler(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("voiceMailHandler", "http://soap.sforce.com/2006/04/metadata","voiceMailHandler","http://www.w3.org/2001/XMLSchema","string",0,1,true), voiceMailHandler, voiceMailHandler__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("[ContactCenterChannel ");
|
||
|
|
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 {
|
||
|
|
writeFieldChannel(__out, __typeMapper);
|
||
|
|
writeFieldContactCenter(__out, __typeMapper);
|
||
|
|
writeFieldOmniCallbackFallbackQueue(__out, __typeMapper);
|
||
|
|
writeFieldOmniCallbackHandler(__out, __typeMapper);
|
||
|
|
writeFieldVoiceMailFallbackQueue(__out, __typeMapper);
|
||
|
|
writeFieldVoiceMailHandler(__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 {
|
||
|
|
setChannel(__in, __typeMapper);
|
||
|
|
setContactCenter(__in, __typeMapper);
|
||
|
|
setOmniCallbackFallbackQueue(__in, __typeMapper);
|
||
|
|
setOmniCallbackHandler(__in, __typeMapper);
|
||
|
|
setVoiceMailFallbackQueue(__in, __typeMapper);
|
||
|
|
setVoiceMailHandler(__in, __typeMapper);
|
||
|
|
}
|
||
|
|
|
||
|
|
private void toString1(StringBuilder sb) {
|
||
|
|
toStringHelper(sb, "channel", channel);
|
||
|
|
toStringHelper(sb, "contactCenter", contactCenter);
|
||
|
|
toStringHelper(sb, "omniCallbackFallbackQueue", omniCallbackFallbackQueue);
|
||
|
|
toStringHelper(sb, "omniCallbackHandler", omniCallbackHandler);
|
||
|
|
toStringHelper(sb, "voiceMailFallbackQueue", voiceMailFallbackQueue);
|
||
|
|
toStringHelper(sb, "voiceMailHandler", voiceMailHandler);
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
}
|