326 lines
16 KiB
Java
326 lines
16 KiB
Java
package com.sforce.soap.tooling.metadata;
|
|
|
|
/**
|
|
* This is a generated class for the SObject Enterprise API.
|
|
* Do not edit this file, as your changes will be lost.
|
|
*/
|
|
public class CustomMsgChannel implements com.sforce.ws.bind.XMLizable {
|
|
|
|
/**
|
|
* Constructor
|
|
*/
|
|
public CustomMsgChannel() {}
|
|
|
|
/* 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 : channelDefinition of type {http://www.w3.org/2001/XMLSchema}string
|
|
* java type: java.lang.String
|
|
*/
|
|
private boolean channelDefinition__is_set = false;
|
|
|
|
private java.lang.String channelDefinition;
|
|
|
|
public java.lang.String getChannelDefinition() {
|
|
return channelDefinition;
|
|
}
|
|
|
|
public void setChannelDefinition(java.lang.String channelDefinition) {
|
|
this.channelDefinition = channelDefinition;
|
|
channelDefinition__is_set = true;
|
|
}
|
|
|
|
protected void setChannelDefinition(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("channelDefinition", "urn:metadata.tooling.soap.sforce.com","channelDefinition","http://www.w3.org/2001/XMLSchema","string",1,1,true))) {
|
|
setChannelDefinition(__typeMapper.readString(__in, _lookupTypeInfo("channelDefinition", "urn:metadata.tooling.soap.sforce.com","channelDefinition","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class));
|
|
}
|
|
}
|
|
|
|
private void writeFieldChannelDefinition(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("channelDefinition", "urn:metadata.tooling.soap.sforce.com","channelDefinition","http://www.w3.org/2001/XMLSchema","string",1,1,true), channelDefinition, channelDefinition__is_set);
|
|
}
|
|
|
|
/**
|
|
* element : hasInboundReceipts of type {http://www.w3.org/2001/XMLSchema}boolean
|
|
* java type: boolean
|
|
*/
|
|
private boolean hasInboundReceipts__is_set = false;
|
|
|
|
private boolean hasInboundReceipts;
|
|
|
|
public boolean getHasInboundReceipts() {
|
|
return hasInboundReceipts;
|
|
}
|
|
|
|
public boolean isHasInboundReceipts() {
|
|
return hasInboundReceipts;
|
|
}
|
|
|
|
public void setHasInboundReceipts(boolean hasInboundReceipts) {
|
|
this.hasInboundReceipts = hasInboundReceipts;
|
|
hasInboundReceipts__is_set = true;
|
|
}
|
|
|
|
protected void setHasInboundReceipts(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("hasInboundReceipts", "urn:metadata.tooling.soap.sforce.com","hasInboundReceipts","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
|
|
setHasInboundReceipts(__typeMapper.readBoolean(__in, _lookupTypeInfo("hasInboundReceipts", "urn:metadata.tooling.soap.sforce.com","hasInboundReceipts","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), boolean.class));
|
|
}
|
|
}
|
|
|
|
private void writeFieldHasInboundReceipts(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("hasInboundReceipts", "urn:metadata.tooling.soap.sforce.com","hasInboundReceipts","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), hasInboundReceipts, hasInboundReceipts__is_set);
|
|
}
|
|
|
|
/**
|
|
* element : hasTypingIndicator of type {http://www.w3.org/2001/XMLSchema}boolean
|
|
* java type: boolean
|
|
*/
|
|
private boolean hasTypingIndicator__is_set = false;
|
|
|
|
private boolean hasTypingIndicator;
|
|
|
|
public boolean getHasTypingIndicator() {
|
|
return hasTypingIndicator;
|
|
}
|
|
|
|
public boolean isHasTypingIndicator() {
|
|
return hasTypingIndicator;
|
|
}
|
|
|
|
public void setHasTypingIndicator(boolean hasTypingIndicator) {
|
|
this.hasTypingIndicator = hasTypingIndicator;
|
|
hasTypingIndicator__is_set = true;
|
|
}
|
|
|
|
protected void setHasTypingIndicator(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("hasTypingIndicator", "urn:metadata.tooling.soap.sforce.com","hasTypingIndicator","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
|
|
setHasTypingIndicator(__typeMapper.readBoolean(__in, _lookupTypeInfo("hasTypingIndicator", "urn:metadata.tooling.soap.sforce.com","hasTypingIndicator","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), boolean.class));
|
|
}
|
|
}
|
|
|
|
private void writeFieldHasTypingIndicator(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("hasTypingIndicator", "urn:metadata.tooling.soap.sforce.com","hasTypingIndicator","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), hasTypingIndicator, hasTypingIndicator__is_set);
|
|
}
|
|
|
|
/**
|
|
* element : isInboundAcknowledgementEnabled of type {http://www.w3.org/2001/XMLSchema}boolean
|
|
* java type: boolean
|
|
*/
|
|
private boolean isInboundAcknowledgementEnabled__is_set = false;
|
|
|
|
private boolean isInboundAcknowledgementEnabled;
|
|
|
|
public boolean getIsInboundAcknowledgementEnabled() {
|
|
return isInboundAcknowledgementEnabled;
|
|
}
|
|
|
|
public boolean isIsInboundAcknowledgementEnabled() {
|
|
return isInboundAcknowledgementEnabled;
|
|
}
|
|
|
|
public void setIsInboundAcknowledgementEnabled(boolean isInboundAcknowledgementEnabled) {
|
|
this.isInboundAcknowledgementEnabled = isInboundAcknowledgementEnabled;
|
|
isInboundAcknowledgementEnabled__is_set = true;
|
|
}
|
|
|
|
protected void setIsInboundAcknowledgementEnabled(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("isInboundAcknowledgementEnabled", "urn:metadata.tooling.soap.sforce.com","isInboundAcknowledgementEnabled","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
|
|
setIsInboundAcknowledgementEnabled(__typeMapper.readBoolean(__in, _lookupTypeInfo("isInboundAcknowledgementEnabled", "urn:metadata.tooling.soap.sforce.com","isInboundAcknowledgementEnabled","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), boolean.class));
|
|
}
|
|
}
|
|
|
|
private void writeFieldIsInboundAcknowledgementEnabled(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("isInboundAcknowledgementEnabled", "urn:metadata.tooling.soap.sforce.com","isInboundAcknowledgementEnabled","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), isInboundAcknowledgementEnabled, isInboundAcknowledgementEnabled__is_set);
|
|
}
|
|
|
|
/**
|
|
* element : isProgressIndicatorEnabled of type {http://www.w3.org/2001/XMLSchema}boolean
|
|
* java type: boolean
|
|
*/
|
|
private boolean isProgressIndicatorEnabled__is_set = false;
|
|
|
|
private boolean isProgressIndicatorEnabled;
|
|
|
|
public boolean getIsProgressIndicatorEnabled() {
|
|
return isProgressIndicatorEnabled;
|
|
}
|
|
|
|
public boolean isIsProgressIndicatorEnabled() {
|
|
return isProgressIndicatorEnabled;
|
|
}
|
|
|
|
public void setIsProgressIndicatorEnabled(boolean isProgressIndicatorEnabled) {
|
|
this.isProgressIndicatorEnabled = isProgressIndicatorEnabled;
|
|
isProgressIndicatorEnabled__is_set = true;
|
|
}
|
|
|
|
protected void setIsProgressIndicatorEnabled(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("isProgressIndicatorEnabled", "urn:metadata.tooling.soap.sforce.com","isProgressIndicatorEnabled","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
|
|
setIsProgressIndicatorEnabled(__typeMapper.readBoolean(__in, _lookupTypeInfo("isProgressIndicatorEnabled", "urn:metadata.tooling.soap.sforce.com","isProgressIndicatorEnabled","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), boolean.class));
|
|
}
|
|
}
|
|
|
|
private void writeFieldIsProgressIndicatorEnabled(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("isProgressIndicatorEnabled", "urn:metadata.tooling.soap.sforce.com","isProgressIndicatorEnabled","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), isProgressIndicatorEnabled, isProgressIndicatorEnabled__is_set);
|
|
}
|
|
|
|
/**
|
|
* element : isTypingIndicatorDisabled of type {http://www.w3.org/2001/XMLSchema}boolean
|
|
* java type: boolean
|
|
*/
|
|
private boolean isTypingIndicatorDisabled__is_set = false;
|
|
|
|
private boolean isTypingIndicatorDisabled;
|
|
|
|
public boolean getIsTypingIndicatorDisabled() {
|
|
return isTypingIndicatorDisabled;
|
|
}
|
|
|
|
public boolean isIsTypingIndicatorDisabled() {
|
|
return isTypingIndicatorDisabled;
|
|
}
|
|
|
|
public void setIsTypingIndicatorDisabled(boolean isTypingIndicatorDisabled) {
|
|
this.isTypingIndicatorDisabled = isTypingIndicatorDisabled;
|
|
isTypingIndicatorDisabled__is_set = true;
|
|
}
|
|
|
|
protected void setIsTypingIndicatorDisabled(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("isTypingIndicatorDisabled", "urn:metadata.tooling.soap.sforce.com","isTypingIndicatorDisabled","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
|
|
setIsTypingIndicatorDisabled(__typeMapper.readBoolean(__in, _lookupTypeInfo("isTypingIndicatorDisabled", "urn:metadata.tooling.soap.sforce.com","isTypingIndicatorDisabled","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), boolean.class));
|
|
}
|
|
}
|
|
|
|
private void writeFieldIsTypingIndicatorDisabled(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("isTypingIndicatorDisabled", "urn:metadata.tooling.soap.sforce.com","isTypingIndicatorDisabled","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), isTypingIndicatorDisabled, isTypingIndicatorDisabled__is_set);
|
|
}
|
|
|
|
/**
|
|
* element : messagingChannel of type {http://www.w3.org/2001/XMLSchema}string
|
|
* java type: java.lang.String
|
|
*/
|
|
private boolean messagingChannel__is_set = false;
|
|
|
|
private java.lang.String messagingChannel;
|
|
|
|
public java.lang.String getMessagingChannel() {
|
|
return messagingChannel;
|
|
}
|
|
|
|
public void setMessagingChannel(java.lang.String messagingChannel) {
|
|
this.messagingChannel = messagingChannel;
|
|
messagingChannel__is_set = true;
|
|
}
|
|
|
|
protected void setMessagingChannel(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("messagingChannel", "urn:metadata.tooling.soap.sforce.com","messagingChannel","http://www.w3.org/2001/XMLSchema","string",1,1,true))) {
|
|
setMessagingChannel(__typeMapper.readString(__in, _lookupTypeInfo("messagingChannel", "urn:metadata.tooling.soap.sforce.com","messagingChannel","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class));
|
|
}
|
|
}
|
|
|
|
private void writeFieldMessagingChannel(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("messagingChannel", "urn:metadata.tooling.soap.sforce.com","messagingChannel","http://www.w3.org/2001/XMLSchema","string",1,1,true), messagingChannel, messagingChannel__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("[CustomMsgChannel ");
|
|
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 {
|
|
writeFieldChannelDefinition(__out, __typeMapper);
|
|
writeFieldHasInboundReceipts(__out, __typeMapper);
|
|
writeFieldHasTypingIndicator(__out, __typeMapper);
|
|
writeFieldIsInboundAcknowledgementEnabled(__out, __typeMapper);
|
|
writeFieldIsProgressIndicatorEnabled(__out, __typeMapper);
|
|
writeFieldIsTypingIndicatorDisabled(__out, __typeMapper);
|
|
writeFieldMessagingChannel(__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 {
|
|
setChannelDefinition(__in, __typeMapper);
|
|
setHasInboundReceipts(__in, __typeMapper);
|
|
setHasTypingIndicator(__in, __typeMapper);
|
|
setIsInboundAcknowledgementEnabled(__in, __typeMapper);
|
|
setIsProgressIndicatorEnabled(__in, __typeMapper);
|
|
setIsTypingIndicatorDisabled(__in, __typeMapper);
|
|
setMessagingChannel(__in, __typeMapper);
|
|
}
|
|
|
|
private void toString1(StringBuilder sb) {
|
|
toStringHelper(sb, "channelDefinition", channelDefinition);
|
|
toStringHelper(sb, "hasInboundReceipts", hasInboundReceipts);
|
|
toStringHelper(sb, "hasTypingIndicator", hasTypingIndicator);
|
|
toStringHelper(sb, "isInboundAcknowledgementEnabled", isInboundAcknowledgementEnabled);
|
|
toStringHelper(sb, "isProgressIndicatorEnabled", isProgressIndicatorEnabled);
|
|
toStringHelper(sb, "isTypingIndicatorDisabled", isTypingIndicatorDisabled);
|
|
toStringHelper(sb, "messagingChannel", messagingChannel);
|
|
}
|
|
|
|
|
|
}
|