298 lines
15 KiB
Java
298 lines
15 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 MobileSettings extends com.sforce.soap.tooling.metadata.MetadataForSettings {
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Constructor
|
||
|
|
*/
|
||
|
|
public MobileSettings() {}
|
||
|
|
|
||
|
|
/* 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 : dashboardMobile of type {urn:metadata.tooling.soap.sforce.com}DashboardMobileSettings
|
||
|
|
* java type: com.sforce.soap.tooling.metadata.DashboardMobileSettings
|
||
|
|
*/
|
||
|
|
private boolean dashboardMobile__is_set = false;
|
||
|
|
|
||
|
|
private com.sforce.soap.tooling.metadata.DashboardMobileSettings dashboardMobile;
|
||
|
|
|
||
|
|
public com.sforce.soap.tooling.metadata.DashboardMobileSettings getDashboardMobile() {
|
||
|
|
return dashboardMobile;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setDashboardMobile(com.sforce.soap.tooling.metadata.DashboardMobileSettings dashboardMobile) {
|
||
|
|
this.dashboardMobile = dashboardMobile;
|
||
|
|
dashboardMobile__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setDashboardMobile(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("dashboardMobile", "urn:metadata.tooling.soap.sforce.com","dashboardMobile","urn:metadata.tooling.soap.sforce.com","DashboardMobileSettings",0,1,true))) {
|
||
|
|
setDashboardMobile((com.sforce.soap.tooling.metadata.DashboardMobileSettings)__typeMapper.readObject(__in, _lookupTypeInfo("dashboardMobile", "urn:metadata.tooling.soap.sforce.com","dashboardMobile","urn:metadata.tooling.soap.sforce.com","DashboardMobileSettings",0,1,true), com.sforce.soap.tooling.metadata.DashboardMobileSettings.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldDashboardMobile(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("dashboardMobile", "urn:metadata.tooling.soap.sforce.com","dashboardMobile","urn:metadata.tooling.soap.sforce.com","DashboardMobileSettings",0,1,true), dashboardMobile, dashboardMobile__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : enableImportContactFromDevice of type {http://www.w3.org/2001/XMLSchema}boolean
|
||
|
|
* java type: boolean
|
||
|
|
*/
|
||
|
|
private boolean enableImportContactFromDevice__is_set = false;
|
||
|
|
|
||
|
|
private boolean enableImportContactFromDevice;
|
||
|
|
|
||
|
|
public boolean getEnableImportContactFromDevice() {
|
||
|
|
return enableImportContactFromDevice;
|
||
|
|
}
|
||
|
|
|
||
|
|
public boolean isEnableImportContactFromDevice() {
|
||
|
|
return enableImportContactFromDevice;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setEnableImportContactFromDevice(boolean enableImportContactFromDevice) {
|
||
|
|
this.enableImportContactFromDevice = enableImportContactFromDevice;
|
||
|
|
enableImportContactFromDevice__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setEnableImportContactFromDevice(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("enableImportContactFromDevice", "urn:metadata.tooling.soap.sforce.com","enableImportContactFromDevice","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
|
||
|
|
setEnableImportContactFromDevice(__typeMapper.readBoolean(__in, _lookupTypeInfo("enableImportContactFromDevice", "urn:metadata.tooling.soap.sforce.com","enableImportContactFromDevice","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), boolean.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldEnableImportContactFromDevice(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("enableImportContactFromDevice", "urn:metadata.tooling.soap.sforce.com","enableImportContactFromDevice","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), enableImportContactFromDevice, enableImportContactFromDevice__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : enableOfflineDraftsEnabled of type {http://www.w3.org/2001/XMLSchema}boolean
|
||
|
|
* java type: boolean
|
||
|
|
*/
|
||
|
|
private boolean enableOfflineDraftsEnabled__is_set = false;
|
||
|
|
|
||
|
|
private boolean enableOfflineDraftsEnabled;
|
||
|
|
|
||
|
|
public boolean getEnableOfflineDraftsEnabled() {
|
||
|
|
return enableOfflineDraftsEnabled;
|
||
|
|
}
|
||
|
|
|
||
|
|
public boolean isEnableOfflineDraftsEnabled() {
|
||
|
|
return enableOfflineDraftsEnabled;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setEnableOfflineDraftsEnabled(boolean enableOfflineDraftsEnabled) {
|
||
|
|
this.enableOfflineDraftsEnabled = enableOfflineDraftsEnabled;
|
||
|
|
enableOfflineDraftsEnabled__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setEnableOfflineDraftsEnabled(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("enableOfflineDraftsEnabled", "urn:metadata.tooling.soap.sforce.com","enableOfflineDraftsEnabled","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
|
||
|
|
setEnableOfflineDraftsEnabled(__typeMapper.readBoolean(__in, _lookupTypeInfo("enableOfflineDraftsEnabled", "urn:metadata.tooling.soap.sforce.com","enableOfflineDraftsEnabled","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), boolean.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldEnableOfflineDraftsEnabled(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("enableOfflineDraftsEnabled", "urn:metadata.tooling.soap.sforce.com","enableOfflineDraftsEnabled","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), enableOfflineDraftsEnabled, enableOfflineDraftsEnabled__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : enablePopulateNameManuallyInToday of type {http://www.w3.org/2001/XMLSchema}boolean
|
||
|
|
* java type: boolean
|
||
|
|
*/
|
||
|
|
private boolean enablePopulateNameManuallyInToday__is_set = false;
|
||
|
|
|
||
|
|
private boolean enablePopulateNameManuallyInToday;
|
||
|
|
|
||
|
|
public boolean getEnablePopulateNameManuallyInToday() {
|
||
|
|
return enablePopulateNameManuallyInToday;
|
||
|
|
}
|
||
|
|
|
||
|
|
public boolean isEnablePopulateNameManuallyInToday() {
|
||
|
|
return enablePopulateNameManuallyInToday;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setEnablePopulateNameManuallyInToday(boolean enablePopulateNameManuallyInToday) {
|
||
|
|
this.enablePopulateNameManuallyInToday = enablePopulateNameManuallyInToday;
|
||
|
|
enablePopulateNameManuallyInToday__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setEnablePopulateNameManuallyInToday(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("enablePopulateNameManuallyInToday", "urn:metadata.tooling.soap.sforce.com","enablePopulateNameManuallyInToday","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
|
||
|
|
setEnablePopulateNameManuallyInToday(__typeMapper.readBoolean(__in, _lookupTypeInfo("enablePopulateNameManuallyInToday", "urn:metadata.tooling.soap.sforce.com","enablePopulateNameManuallyInToday","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), boolean.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldEnablePopulateNameManuallyInToday(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("enablePopulateNameManuallyInToday", "urn:metadata.tooling.soap.sforce.com","enablePopulateNameManuallyInToday","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), enablePopulateNameManuallyInToday, enablePopulateNameManuallyInToday__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : enableS1EncryptedStoragePref2 of type {http://www.w3.org/2001/XMLSchema}boolean
|
||
|
|
* java type: boolean
|
||
|
|
*/
|
||
|
|
private boolean enableS1EncryptedStoragePref2__is_set = false;
|
||
|
|
|
||
|
|
private boolean enableS1EncryptedStoragePref2;
|
||
|
|
|
||
|
|
public boolean getEnableS1EncryptedStoragePref2() {
|
||
|
|
return enableS1EncryptedStoragePref2;
|
||
|
|
}
|
||
|
|
|
||
|
|
public boolean isEnableS1EncryptedStoragePref2() {
|
||
|
|
return enableS1EncryptedStoragePref2;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setEnableS1EncryptedStoragePref2(boolean enableS1EncryptedStoragePref2) {
|
||
|
|
this.enableS1EncryptedStoragePref2 = enableS1EncryptedStoragePref2;
|
||
|
|
enableS1EncryptedStoragePref2__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setEnableS1EncryptedStoragePref2(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("enableS1EncryptedStoragePref2", "urn:metadata.tooling.soap.sforce.com","enableS1EncryptedStoragePref2","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
|
||
|
|
setEnableS1EncryptedStoragePref2(__typeMapper.readBoolean(__in, _lookupTypeInfo("enableS1EncryptedStoragePref2", "urn:metadata.tooling.soap.sforce.com","enableS1EncryptedStoragePref2","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), boolean.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldEnableS1EncryptedStoragePref2(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("enableS1EncryptedStoragePref2", "urn:metadata.tooling.soap.sforce.com","enableS1EncryptedStoragePref2","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), enableS1EncryptedStoragePref2, enableS1EncryptedStoragePref2__is_set);
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* element : enableS1OfflinePref of type {http://www.w3.org/2001/XMLSchema}boolean
|
||
|
|
* java type: boolean
|
||
|
|
*/
|
||
|
|
private boolean enableS1OfflinePref__is_set = false;
|
||
|
|
|
||
|
|
private boolean enableS1OfflinePref;
|
||
|
|
|
||
|
|
public boolean getEnableS1OfflinePref() {
|
||
|
|
return enableS1OfflinePref;
|
||
|
|
}
|
||
|
|
|
||
|
|
public boolean isEnableS1OfflinePref() {
|
||
|
|
return enableS1OfflinePref;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setEnableS1OfflinePref(boolean enableS1OfflinePref) {
|
||
|
|
this.enableS1OfflinePref = enableS1OfflinePref;
|
||
|
|
enableS1OfflinePref__is_set = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
protected void setEnableS1OfflinePref(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("enableS1OfflinePref", "urn:metadata.tooling.soap.sforce.com","enableS1OfflinePref","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
|
||
|
|
setEnableS1OfflinePref(__typeMapper.readBoolean(__in, _lookupTypeInfo("enableS1OfflinePref", "urn:metadata.tooling.soap.sforce.com","enableS1OfflinePref","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), boolean.class));
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
private void writeFieldEnableS1OfflinePref(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
|
||
|
|
__typeMapper.writeObject(__out, _lookupTypeInfo("enableS1OfflinePref", "urn:metadata.tooling.soap.sforce.com","enableS1OfflinePref","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), enableS1OfflinePref, enableS1OfflinePref__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:metadata.tooling.soap.sforce.com", "MobileSettings");
|
||
|
|
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("[MobileSettings ");
|
||
|
|
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 {
|
||
|
|
writeFieldDashboardMobile(__out, __typeMapper);
|
||
|
|
writeFieldEnableImportContactFromDevice(__out, __typeMapper);
|
||
|
|
writeFieldEnableOfflineDraftsEnabled(__out, __typeMapper);
|
||
|
|
writeFieldEnablePopulateNameManuallyInToday(__out, __typeMapper);
|
||
|
|
writeFieldEnableS1EncryptedStoragePref2(__out, __typeMapper);
|
||
|
|
writeFieldEnableS1OfflinePref(__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 {
|
||
|
|
setDashboardMobile(__in, __typeMapper);
|
||
|
|
setEnableImportContactFromDevice(__in, __typeMapper);
|
||
|
|
setEnableOfflineDraftsEnabled(__in, __typeMapper);
|
||
|
|
setEnablePopulateNameManuallyInToday(__in, __typeMapper);
|
||
|
|
setEnableS1EncryptedStoragePref2(__in, __typeMapper);
|
||
|
|
setEnableS1OfflinePref(__in, __typeMapper);
|
||
|
|
}
|
||
|
|
|
||
|
|
private void toString1(StringBuilder sb) {
|
||
|
|
toStringHelper(sb, "dashboardMobile", dashboardMobile);
|
||
|
|
toStringHelper(sb, "enableImportContactFromDevice", enableImportContactFromDevice);
|
||
|
|
toStringHelper(sb, "enableOfflineDraftsEnabled", enableOfflineDraftsEnabled);
|
||
|
|
toStringHelper(sb, "enablePopulateNameManuallyInToday", enablePopulateNameManuallyInToday);
|
||
|
|
toStringHelper(sb, "enableS1EncryptedStoragePref2", enableS1EncryptedStoragePref2);
|
||
|
|
toStringHelper(sb, "enableS1OfflinePref", enableS1OfflinePref);
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
}
|