com.sforce.soap.metadata.SiteSettings Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of force-metadata-api Show documentation
Show all versions of force-metadata-api Show documentation
Force.com Web Service Connector
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 SiteSettings extends com.sforce.soap.metadata.Metadata {
/**
* Constructor
*/
public SiteSettings() {}
/* Cache the typeInfo instead of declaring static fields throughout*/
private transient java.util.Map typeInfoCache = new java.util.HashMap();
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 : enableEnhancedSitesAndContentPlatform of type {http://www.w3.org/2001/XMLSchema}boolean
* java type: boolean
*/
private boolean enableEnhancedSitesAndContentPlatform__is_set = false;
private boolean enableEnhancedSitesAndContentPlatform;
public boolean getEnableEnhancedSitesAndContentPlatform() {
return enableEnhancedSitesAndContentPlatform;
}
public boolean isEnableEnhancedSitesAndContentPlatform() {
return enableEnhancedSitesAndContentPlatform;
}
public void setEnableEnhancedSitesAndContentPlatform(boolean enableEnhancedSitesAndContentPlatform) {
this.enableEnhancedSitesAndContentPlatform = enableEnhancedSitesAndContentPlatform;
enableEnhancedSitesAndContentPlatform__is_set = true;
}
protected void setEnableEnhancedSitesAndContentPlatform(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("enableEnhancedSitesAndContentPlatform", "http://soap.sforce.com/2006/04/metadata","enableEnhancedSitesAndContentPlatform","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
setEnableEnhancedSitesAndContentPlatform(__typeMapper.readBoolean(__in, _lookupTypeInfo("enableEnhancedSitesAndContentPlatform", "http://soap.sforce.com/2006/04/metadata","enableEnhancedSitesAndContentPlatform","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), boolean.class));
}
}
private void writeFieldEnableEnhancedSitesAndContentPlatform(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("enableEnhancedSitesAndContentPlatform", "http://soap.sforce.com/2006/04/metadata","enableEnhancedSitesAndContentPlatform","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), enableEnhancedSitesAndContentPlatform, enableEnhancedSitesAndContentPlatform__is_set);
}
/**
* element : enableProxyLoginICHeader of type {http://www.w3.org/2001/XMLSchema}boolean
* java type: boolean
*/
private boolean enableProxyLoginICHeader__is_set = false;
private boolean enableProxyLoginICHeader;
public boolean getEnableProxyLoginICHeader() {
return enableProxyLoginICHeader;
}
public boolean isEnableProxyLoginICHeader() {
return enableProxyLoginICHeader;
}
public void setEnableProxyLoginICHeader(boolean enableProxyLoginICHeader) {
this.enableProxyLoginICHeader = enableProxyLoginICHeader;
enableProxyLoginICHeader__is_set = true;
}
protected void setEnableProxyLoginICHeader(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("enableProxyLoginICHeader", "http://soap.sforce.com/2006/04/metadata","enableProxyLoginICHeader","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
setEnableProxyLoginICHeader(__typeMapper.readBoolean(__in, _lookupTypeInfo("enableProxyLoginICHeader", "http://soap.sforce.com/2006/04/metadata","enableProxyLoginICHeader","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), boolean.class));
}
}
private void writeFieldEnableProxyLoginICHeader(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("enableProxyLoginICHeader", "http://soap.sforce.com/2006/04/metadata","enableProxyLoginICHeader","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), enableProxyLoginICHeader, enableProxyLoginICHeader__is_set);
}
/**
* element : enableSitesRecordReassignOrgPref of type {http://www.w3.org/2001/XMLSchema}boolean
* java type: boolean
*/
private boolean enableSitesRecordReassignOrgPref__is_set = false;
private boolean enableSitesRecordReassignOrgPref;
public boolean getEnableSitesRecordReassignOrgPref() {
return enableSitesRecordReassignOrgPref;
}
public boolean isEnableSitesRecordReassignOrgPref() {
return enableSitesRecordReassignOrgPref;
}
public void setEnableSitesRecordReassignOrgPref(boolean enableSitesRecordReassignOrgPref) {
this.enableSitesRecordReassignOrgPref = enableSitesRecordReassignOrgPref;
enableSitesRecordReassignOrgPref__is_set = true;
}
protected void setEnableSitesRecordReassignOrgPref(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("enableSitesRecordReassignOrgPref", "http://soap.sforce.com/2006/04/metadata","enableSitesRecordReassignOrgPref","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
setEnableSitesRecordReassignOrgPref(__typeMapper.readBoolean(__in, _lookupTypeInfo("enableSitesRecordReassignOrgPref", "http://soap.sforce.com/2006/04/metadata","enableSitesRecordReassignOrgPref","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), boolean.class));
}
}
private void writeFieldEnableSitesRecordReassignOrgPref(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("enableSitesRecordReassignOrgPref", "http://soap.sforce.com/2006/04/metadata","enableSitesRecordReassignOrgPref","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), enableSitesRecordReassignOrgPref, enableSitesRecordReassignOrgPref__is_set);
}
/**
* element : enableTopicsInSites of type {http://www.w3.org/2001/XMLSchema}boolean
* java type: boolean
*/
private boolean enableTopicsInSites__is_set = false;
private boolean enableTopicsInSites;
public boolean getEnableTopicsInSites() {
return enableTopicsInSites;
}
public boolean isEnableTopicsInSites() {
return enableTopicsInSites;
}
public void setEnableTopicsInSites(boolean enableTopicsInSites) {
this.enableTopicsInSites = enableTopicsInSites;
enableTopicsInSites__is_set = true;
}
protected void setEnableTopicsInSites(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("enableTopicsInSites", "http://soap.sforce.com/2006/04/metadata","enableTopicsInSites","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
setEnableTopicsInSites(__typeMapper.readBoolean(__in, _lookupTypeInfo("enableTopicsInSites", "http://soap.sforce.com/2006/04/metadata","enableTopicsInSites","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), boolean.class));
}
}
private void writeFieldEnableTopicsInSites(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("enableTopicsInSites", "http://soap.sforce.com/2006/04/metadata","enableTopicsInSites","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), enableTopicsInSites, enableTopicsInSites__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", "SiteSettings");
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("[SiteSettings ");
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 {
writeFieldEnableEnhancedSitesAndContentPlatform(__out, __typeMapper);
writeFieldEnableProxyLoginICHeader(__out, __typeMapper);
writeFieldEnableSitesRecordReassignOrgPref(__out, __typeMapper);
writeFieldEnableTopicsInSites(__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 {
setEnableEnhancedSitesAndContentPlatform(__in, __typeMapper);
setEnableProxyLoginICHeader(__in, __typeMapper);
setEnableSitesRecordReassignOrgPref(__in, __typeMapper);
setEnableTopicsInSites(__in, __typeMapper);
}
private void toString1(StringBuilder sb) {
toStringHelper(sb, "enableEnhancedSitesAndContentPlatform", enableEnhancedSitesAndContentPlatform);
toStringHelper(sb, "enableProxyLoginICHeader", enableProxyLoginICHeader);
toStringHelper(sb, "enableSitesRecordReassignOrgPref", enableSitesRecordReassignOrgPref);
toStringHelper(sb, "enableTopicsInSites", enableTopicsInSites);
}
}