302 lines
15 KiB
Java
302 lines
15 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 SurveySettings extends com.sforce.soap.metadata.Metadata {
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Constructor
|
||
|
|
*/
|
||
|
|
public SurveySettings() {}
|
||
|
|
|
||
|
|
/* 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 : enableConversationalSurveys of type {http://www.w3.org/2001/XMLSchema}boolean
|
||
|
|
* java type: boolean
|
||
|
|
*/
|
||
|
|
private boolean enableConversationalSurveys__is_set = false;
|
||
|
|
|
||
|
|
private boolean enableConversationalSurveys;
|
||
|
|
|
||
|
|
public boolean getEnableConversationalSurveys() {
|
||
|
|
return enableConversationalSurveys;
|
||
|
|
}
|
||
|
|
|
||
|
|
public boolean isEnableConversationalSurveys() {
|
||
|
|
return enableConversationalSurveys;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setEnableConversationalSurveys(boolean enableConversationalSurveys) {
|
||
|
|
this.enableConversationalSurveys = enableConversationalSurveys;
|
||
|
|
enableConversationalSurveys__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setEnableConversationalSurveys(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("enableConversationalSurveys", "http://soap.sforce.com/2006/04/metadata","enableConversationalSurveys","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
|
||
|
|
setEnableConversationalSurveys(__typeMapper.readBoolean(__in, _lookupTypeInfo("enableConversationalSurveys", "http://soap.sforce.com/2006/04/metadata","enableConversationalSurveys","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), boolean.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldEnableConversationalSurveys(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("enableConversationalSurveys", "http://soap.sforce.com/2006/04/metadata","enableConversationalSurveys","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), enableConversationalSurveys, enableConversationalSurveys__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : enableGenerativeAISurveys of type {http://www.w3.org/2001/XMLSchema}boolean
|
||
|
|
* java type: boolean
|
||
|
|
*/
|
||
|
|
private boolean enableGenerativeAISurveys__is_set = false;
|
||
|
|
|
||
|
|
private boolean enableGenerativeAISurveys;
|
||
|
|
|
||
|
|
public boolean getEnableGenerativeAISurveys() {
|
||
|
|
return enableGenerativeAISurveys;
|
||
|
|
}
|
||
|
|
|
||
|
|
public boolean isEnableGenerativeAISurveys() {
|
||
|
|
return enableGenerativeAISurveys;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setEnableGenerativeAISurveys(boolean enableGenerativeAISurveys) {
|
||
|
|
this.enableGenerativeAISurveys = enableGenerativeAISurveys;
|
||
|
|
enableGenerativeAISurveys__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setEnableGenerativeAISurveys(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("enableGenerativeAISurveys", "http://soap.sforce.com/2006/04/metadata","enableGenerativeAISurveys","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
|
||
|
|
setEnableGenerativeAISurveys(__typeMapper.readBoolean(__in, _lookupTypeInfo("enableGenerativeAISurveys", "http://soap.sforce.com/2006/04/metadata","enableGenerativeAISurveys","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), boolean.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldEnableGenerativeAISurveys(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("enableGenerativeAISurveys", "http://soap.sforce.com/2006/04/metadata","enableGenerativeAISurveys","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), enableGenerativeAISurveys, enableGenerativeAISurveys__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : enableIndustriesCxmEnabled of type {http://www.w3.org/2001/XMLSchema}boolean
|
||
|
|
* java type: boolean
|
||
|
|
*/
|
||
|
|
private boolean enableIndustriesCxmEnabled__is_set = false;
|
||
|
|
|
||
|
|
private boolean enableIndustriesCxmEnabled;
|
||
|
|
|
||
|
|
public boolean getEnableIndustriesCxmEnabled() {
|
||
|
|
return enableIndustriesCxmEnabled;
|
||
|
|
}
|
||
|
|
|
||
|
|
public boolean isEnableIndustriesCxmEnabled() {
|
||
|
|
return enableIndustriesCxmEnabled;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setEnableIndustriesCxmEnabled(boolean enableIndustriesCxmEnabled) {
|
||
|
|
this.enableIndustriesCxmEnabled = enableIndustriesCxmEnabled;
|
||
|
|
enableIndustriesCxmEnabled__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setEnableIndustriesCxmEnabled(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("enableIndustriesCxmEnabled", "http://soap.sforce.com/2006/04/metadata","enableIndustriesCxmEnabled","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
|
||
|
|
setEnableIndustriesCxmEnabled(__typeMapper.readBoolean(__in, _lookupTypeInfo("enableIndustriesCxmEnabled", "http://soap.sforce.com/2006/04/metadata","enableIndustriesCxmEnabled","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), boolean.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldEnableIndustriesCxmEnabled(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("enableIndustriesCxmEnabled", "http://soap.sforce.com/2006/04/metadata","enableIndustriesCxmEnabled","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), enableIndustriesCxmEnabled, enableIndustriesCxmEnabled__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : enableSurvey of type {http://www.w3.org/2001/XMLSchema}boolean
|
||
|
|
* java type: boolean
|
||
|
|
*/
|
||
|
|
private boolean enableSurvey__is_set = false;
|
||
|
|
|
||
|
|
private boolean enableSurvey;
|
||
|
|
|
||
|
|
public boolean getEnableSurvey() {
|
||
|
|
return enableSurvey;
|
||
|
|
}
|
||
|
|
|
||
|
|
public boolean isEnableSurvey() {
|
||
|
|
return enableSurvey;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setEnableSurvey(boolean enableSurvey) {
|
||
|
|
this.enableSurvey = enableSurvey;
|
||
|
|
enableSurvey__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setEnableSurvey(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("enableSurvey", "http://soap.sforce.com/2006/04/metadata","enableSurvey","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
|
||
|
|
setEnableSurvey(__typeMapper.readBoolean(__in, _lookupTypeInfo("enableSurvey", "http://soap.sforce.com/2006/04/metadata","enableSurvey","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), boolean.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldEnableSurvey(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("enableSurvey", "http://soap.sforce.com/2006/04/metadata","enableSurvey","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), enableSurvey, enableSurvey__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : enableSurveyInvLinkWithoutAppExtension of type {http://www.w3.org/2001/XMLSchema}boolean
|
||
|
|
* java type: boolean
|
||
|
|
*/
|
||
|
|
private boolean enableSurveyInvLinkWithoutAppExtension__is_set = false;
|
||
|
|
|
||
|
|
private boolean enableSurveyInvLinkWithoutAppExtension;
|
||
|
|
|
||
|
|
public boolean getEnableSurveyInvLinkWithoutAppExtension() {
|
||
|
|
return enableSurveyInvLinkWithoutAppExtension;
|
||
|
|
}
|
||
|
|
|
||
|
|
public boolean isEnableSurveyInvLinkWithoutAppExtension() {
|
||
|
|
return enableSurveyInvLinkWithoutAppExtension;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setEnableSurveyInvLinkWithoutAppExtension(boolean enableSurveyInvLinkWithoutAppExtension) {
|
||
|
|
this.enableSurveyInvLinkWithoutAppExtension = enableSurveyInvLinkWithoutAppExtension;
|
||
|
|
enableSurveyInvLinkWithoutAppExtension__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setEnableSurveyInvLinkWithoutAppExtension(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("enableSurveyInvLinkWithoutAppExtension", "http://soap.sforce.com/2006/04/metadata","enableSurveyInvLinkWithoutAppExtension","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
|
||
|
|
setEnableSurveyInvLinkWithoutAppExtension(__typeMapper.readBoolean(__in, _lookupTypeInfo("enableSurveyInvLinkWithoutAppExtension", "http://soap.sforce.com/2006/04/metadata","enableSurveyInvLinkWithoutAppExtension","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), boolean.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldEnableSurveyInvLinkWithoutAppExtension(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("enableSurveyInvLinkWithoutAppExtension", "http://soap.sforce.com/2006/04/metadata","enableSurveyInvLinkWithoutAppExtension","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), enableSurveyInvLinkWithoutAppExtension, enableSurveyInvLinkWithoutAppExtension__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : enableSurveyOwnerCanManageResponse of type {http://www.w3.org/2001/XMLSchema}boolean
|
||
|
|
* java type: boolean
|
||
|
|
*/
|
||
|
|
private boolean enableSurveyOwnerCanManageResponse__is_set = false;
|
||
|
|
|
||
|
|
private boolean enableSurveyOwnerCanManageResponse;
|
||
|
|
|
||
|
|
public boolean getEnableSurveyOwnerCanManageResponse() {
|
||
|
|
return enableSurveyOwnerCanManageResponse;
|
||
|
|
}
|
||
|
|
|
||
|
|
public boolean isEnableSurveyOwnerCanManageResponse() {
|
||
|
|
return enableSurveyOwnerCanManageResponse;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setEnableSurveyOwnerCanManageResponse(boolean enableSurveyOwnerCanManageResponse) {
|
||
|
|
this.enableSurveyOwnerCanManageResponse = enableSurveyOwnerCanManageResponse;
|
||
|
|
enableSurveyOwnerCanManageResponse__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setEnableSurveyOwnerCanManageResponse(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("enableSurveyOwnerCanManageResponse", "http://soap.sforce.com/2006/04/metadata","enableSurveyOwnerCanManageResponse","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
|
||
|
|
setEnableSurveyOwnerCanManageResponse(__typeMapper.readBoolean(__in, _lookupTypeInfo("enableSurveyOwnerCanManageResponse", "http://soap.sforce.com/2006/04/metadata","enableSurveyOwnerCanManageResponse","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), boolean.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldEnableSurveyOwnerCanManageResponse(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("enableSurveyOwnerCanManageResponse", "http://soap.sforce.com/2006/04/metadata","enableSurveyOwnerCanManageResponse","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), enableSurveyOwnerCanManageResponse, enableSurveyOwnerCanManageResponse__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, "http://soap.sforce.com/2006/04/metadata", "SurveySettings");
|
||
|
|
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("[SurveySettings ");
|
||
|
|
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 {
|
||
|
|
writeFieldEnableConversationalSurveys(__out, __typeMapper);
|
||
|
|
writeFieldEnableGenerativeAISurveys(__out, __typeMapper);
|
||
|
|
writeFieldEnableIndustriesCxmEnabled(__out, __typeMapper);
|
||
|
|
writeFieldEnableSurvey(__out, __typeMapper);
|
||
|
|
writeFieldEnableSurveyInvLinkWithoutAppExtension(__out, __typeMapper);
|
||
|
|
writeFieldEnableSurveyOwnerCanManageResponse(__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 {
|
||
|
|
setEnableConversationalSurveys(__in, __typeMapper);
|
||
|
|
setEnableGenerativeAISurveys(__in, __typeMapper);
|
||
|
|
setEnableIndustriesCxmEnabled(__in, __typeMapper);
|
||
|
|
setEnableSurvey(__in, __typeMapper);
|
||
|
|
setEnableSurveyInvLinkWithoutAppExtension(__in, __typeMapper);
|
||
|
|
setEnableSurveyOwnerCanManageResponse(__in, __typeMapper);
|
||
|
|
}
|
||
|
|
|
||
|
|
private void toString1(StringBuilder sb) {
|
||
|
|
toStringHelper(sb, "enableConversationalSurveys", enableConversationalSurveys);
|
||
|
|
toStringHelper(sb, "enableGenerativeAISurveys", enableGenerativeAISurveys);
|
||
|
|
toStringHelper(sb, "enableIndustriesCxmEnabled", enableIndustriesCxmEnabled);
|
||
|
|
toStringHelper(sb, "enableSurvey", enableSurvey);
|
||
|
|
toStringHelper(sb, "enableSurveyInvLinkWithoutAppExtension", enableSurveyInvLinkWithoutAppExtension);
|
||
|
|
toStringHelper(sb, "enableSurveyOwnerCanManageResponse", enableSurveyOwnerCanManageResponse);
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
}
|