com.sforce.soap.metadata.ForecastingSettings 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 ForecastingSettings extends com.sforce.soap.metadata.Metadata {
/**
* Constructor
*/
public ForecastingSettings() {}
/* 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 : defaultToPersonalCurrency of type {http://www.w3.org/2001/XMLSchema}boolean
* java type: boolean
*/
private boolean defaultToPersonalCurrency__is_set = false;
private boolean defaultToPersonalCurrency;
public boolean getDefaultToPersonalCurrency() {
return defaultToPersonalCurrency;
}
public boolean isDefaultToPersonalCurrency() {
return defaultToPersonalCurrency;
}
public void setDefaultToPersonalCurrency(boolean defaultToPersonalCurrency) {
this.defaultToPersonalCurrency = defaultToPersonalCurrency;
defaultToPersonalCurrency__is_set = true;
}
protected void setDefaultToPersonalCurrency(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("defaultToPersonalCurrency", "http://soap.sforce.com/2006/04/metadata","defaultToPersonalCurrency","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
setDefaultToPersonalCurrency(__typeMapper.readBoolean(__in, _lookupTypeInfo("defaultToPersonalCurrency", "http://soap.sforce.com/2006/04/metadata","defaultToPersonalCurrency","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), boolean.class));
}
}
private void writeFieldDefaultToPersonalCurrency(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("defaultToPersonalCurrency", "http://soap.sforce.com/2006/04/metadata","defaultToPersonalCurrency","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), defaultToPersonalCurrency, defaultToPersonalCurrency__is_set);
}
/**
* element : enableForecasts of type {http://www.w3.org/2001/XMLSchema}boolean
* java type: boolean
*/
private boolean enableForecasts__is_set = false;
private boolean enableForecasts;
public boolean getEnableForecasts() {
return enableForecasts;
}
public boolean isEnableForecasts() {
return enableForecasts;
}
public void setEnableForecasts(boolean enableForecasts) {
this.enableForecasts = enableForecasts;
enableForecasts__is_set = true;
}
protected void setEnableForecasts(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("enableForecasts", "http://soap.sforce.com/2006/04/metadata","enableForecasts","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
setEnableForecasts(__typeMapper.readBoolean(__in, _lookupTypeInfo("enableForecasts", "http://soap.sforce.com/2006/04/metadata","enableForecasts","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), boolean.class));
}
}
private void writeFieldEnableForecasts(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("enableForecasts", "http://soap.sforce.com/2006/04/metadata","enableForecasts","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), enableForecasts, enableForecasts__is_set);
}
/**
* element : forecastingCategoryMappings of type {http://soap.sforce.com/2006/04/metadata}ForecastingCategoryMapping
* java type: com.sforce.soap.metadata.ForecastingCategoryMapping[]
*/
private boolean forecastingCategoryMappings__is_set = false;
private com.sforce.soap.metadata.ForecastingCategoryMapping[] forecastingCategoryMappings = new com.sforce.soap.metadata.ForecastingCategoryMapping[0];
public com.sforce.soap.metadata.ForecastingCategoryMapping[] getForecastingCategoryMappings() {
return forecastingCategoryMappings;
}
public void setForecastingCategoryMappings(com.sforce.soap.metadata.ForecastingCategoryMapping[] forecastingCategoryMappings) {
this.forecastingCategoryMappings = forecastingCategoryMappings;
forecastingCategoryMappings__is_set = true;
}
protected void setForecastingCategoryMappings(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("forecastingCategoryMappings", "http://soap.sforce.com/2006/04/metadata","forecastingCategoryMappings","http://soap.sforce.com/2006/04/metadata","ForecastingCategoryMapping",0,-1,true))) {
setForecastingCategoryMappings((com.sforce.soap.metadata.ForecastingCategoryMapping[])__typeMapper.readObject(__in, _lookupTypeInfo("forecastingCategoryMappings", "http://soap.sforce.com/2006/04/metadata","forecastingCategoryMappings","http://soap.sforce.com/2006/04/metadata","ForecastingCategoryMapping",0,-1,true), com.sforce.soap.metadata.ForecastingCategoryMapping[].class));
}
}
private void writeFieldForecastingCategoryMappings(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("forecastingCategoryMappings", "http://soap.sforce.com/2006/04/metadata","forecastingCategoryMappings","http://soap.sforce.com/2006/04/metadata","ForecastingCategoryMapping",0,-1,true), forecastingCategoryMappings, forecastingCategoryMappings__is_set);
}
/**
* element : forecastingDisplayedFamilySettings of type {http://soap.sforce.com/2006/04/metadata}ForecastingDisplayedFamilySettings
* java type: com.sforce.soap.metadata.ForecastingDisplayedFamilySettings[]
*/
private boolean forecastingDisplayedFamilySettings__is_set = false;
private com.sforce.soap.metadata.ForecastingDisplayedFamilySettings[] forecastingDisplayedFamilySettings = new com.sforce.soap.metadata.ForecastingDisplayedFamilySettings[0];
public com.sforce.soap.metadata.ForecastingDisplayedFamilySettings[] getForecastingDisplayedFamilySettings() {
return forecastingDisplayedFamilySettings;
}
public void setForecastingDisplayedFamilySettings(com.sforce.soap.metadata.ForecastingDisplayedFamilySettings[] forecastingDisplayedFamilySettings) {
this.forecastingDisplayedFamilySettings = forecastingDisplayedFamilySettings;
forecastingDisplayedFamilySettings__is_set = true;
}
protected void setForecastingDisplayedFamilySettings(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("forecastingDisplayedFamilySettings", "http://soap.sforce.com/2006/04/metadata","forecastingDisplayedFamilySettings","http://soap.sforce.com/2006/04/metadata","ForecastingDisplayedFamilySettings",0,-1,true))) {
setForecastingDisplayedFamilySettings((com.sforce.soap.metadata.ForecastingDisplayedFamilySettings[])__typeMapper.readObject(__in, _lookupTypeInfo("forecastingDisplayedFamilySettings", "http://soap.sforce.com/2006/04/metadata","forecastingDisplayedFamilySettings","http://soap.sforce.com/2006/04/metadata","ForecastingDisplayedFamilySettings",0,-1,true), com.sforce.soap.metadata.ForecastingDisplayedFamilySettings[].class));
}
}
private void writeFieldForecastingDisplayedFamilySettings(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("forecastingDisplayedFamilySettings", "http://soap.sforce.com/2006/04/metadata","forecastingDisplayedFamilySettings","http://soap.sforce.com/2006/04/metadata","ForecastingDisplayedFamilySettings",0,-1,true), forecastingDisplayedFamilySettings, forecastingDisplayedFamilySettings__is_set);
}
/**
* element : forecastingTypeSettings of type {http://soap.sforce.com/2006/04/metadata}ForecastingTypeSettings
* java type: com.sforce.soap.metadata.ForecastingTypeSettings[]
*/
private boolean forecastingTypeSettings__is_set = false;
private com.sforce.soap.metadata.ForecastingTypeSettings[] forecastingTypeSettings = new com.sforce.soap.metadata.ForecastingTypeSettings[0];
public com.sforce.soap.metadata.ForecastingTypeSettings[] getForecastingTypeSettings() {
return forecastingTypeSettings;
}
public void setForecastingTypeSettings(com.sforce.soap.metadata.ForecastingTypeSettings[] forecastingTypeSettings) {
this.forecastingTypeSettings = forecastingTypeSettings;
forecastingTypeSettings__is_set = true;
}
protected void setForecastingTypeSettings(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("forecastingTypeSettings", "http://soap.sforce.com/2006/04/metadata","forecastingTypeSettings","http://soap.sforce.com/2006/04/metadata","ForecastingTypeSettings",0,-1,true))) {
setForecastingTypeSettings((com.sforce.soap.metadata.ForecastingTypeSettings[])__typeMapper.readObject(__in, _lookupTypeInfo("forecastingTypeSettings", "http://soap.sforce.com/2006/04/metadata","forecastingTypeSettings","http://soap.sforce.com/2006/04/metadata","ForecastingTypeSettings",0,-1,true), com.sforce.soap.metadata.ForecastingTypeSettings[].class));
}
}
private void writeFieldForecastingTypeSettings(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("forecastingTypeSettings", "http://soap.sforce.com/2006/04/metadata","forecastingTypeSettings","http://soap.sforce.com/2006/04/metadata","ForecastingTypeSettings",0,-1,true), forecastingTypeSettings, forecastingTypeSettings__is_set);
}
/**
* element : globalAdjustmentsSettings of type {http://soap.sforce.com/2006/04/metadata}AdjustmentsSettings
* java type: com.sforce.soap.metadata.AdjustmentsSettings
*/
private boolean globalAdjustmentsSettings__is_set = false;
private com.sforce.soap.metadata.AdjustmentsSettings globalAdjustmentsSettings;
public com.sforce.soap.metadata.AdjustmentsSettings getGlobalAdjustmentsSettings() {
return globalAdjustmentsSettings;
}
public void setGlobalAdjustmentsSettings(com.sforce.soap.metadata.AdjustmentsSettings globalAdjustmentsSettings) {
this.globalAdjustmentsSettings = globalAdjustmentsSettings;
globalAdjustmentsSettings__is_set = true;
}
protected void setGlobalAdjustmentsSettings(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("globalAdjustmentsSettings", "http://soap.sforce.com/2006/04/metadata","globalAdjustmentsSettings","http://soap.sforce.com/2006/04/metadata","AdjustmentsSettings",1,1,true))) {
setGlobalAdjustmentsSettings((com.sforce.soap.metadata.AdjustmentsSettings)__typeMapper.readObject(__in, _lookupTypeInfo("globalAdjustmentsSettings", "http://soap.sforce.com/2006/04/metadata","globalAdjustmentsSettings","http://soap.sforce.com/2006/04/metadata","AdjustmentsSettings",1,1,true), com.sforce.soap.metadata.AdjustmentsSettings.class));
}
}
private void writeFieldGlobalAdjustmentsSettings(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("globalAdjustmentsSettings", "http://soap.sforce.com/2006/04/metadata","globalAdjustmentsSettings","http://soap.sforce.com/2006/04/metadata","AdjustmentsSettings",1,1,true), globalAdjustmentsSettings, globalAdjustmentsSettings__is_set);
}
/**
* element : globalForecastRangeSettings of type {http://soap.sforce.com/2006/04/metadata}ForecastRangeSettings
* java type: com.sforce.soap.metadata.ForecastRangeSettings
*/
private boolean globalForecastRangeSettings__is_set = false;
private com.sforce.soap.metadata.ForecastRangeSettings globalForecastRangeSettings;
public com.sforce.soap.metadata.ForecastRangeSettings getGlobalForecastRangeSettings() {
return globalForecastRangeSettings;
}
public void setGlobalForecastRangeSettings(com.sforce.soap.metadata.ForecastRangeSettings globalForecastRangeSettings) {
this.globalForecastRangeSettings = globalForecastRangeSettings;
globalForecastRangeSettings__is_set = true;
}
protected void setGlobalForecastRangeSettings(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("globalForecastRangeSettings", "http://soap.sforce.com/2006/04/metadata","globalForecastRangeSettings","http://soap.sforce.com/2006/04/metadata","ForecastRangeSettings",1,1,true))) {
setGlobalForecastRangeSettings((com.sforce.soap.metadata.ForecastRangeSettings)__typeMapper.readObject(__in, _lookupTypeInfo("globalForecastRangeSettings", "http://soap.sforce.com/2006/04/metadata","globalForecastRangeSettings","http://soap.sforce.com/2006/04/metadata","ForecastRangeSettings",1,1,true), com.sforce.soap.metadata.ForecastRangeSettings.class));
}
}
private void writeFieldGlobalForecastRangeSettings(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("globalForecastRangeSettings", "http://soap.sforce.com/2006/04/metadata","globalForecastRangeSettings","http://soap.sforce.com/2006/04/metadata","ForecastRangeSettings",1,1,true), globalForecastRangeSettings, globalForecastRangeSettings__is_set);
}
/**
* element : globalQuotasSettings of type {http://soap.sforce.com/2006/04/metadata}QuotasSettings
* java type: com.sforce.soap.metadata.QuotasSettings
*/
private boolean globalQuotasSettings__is_set = false;
private com.sforce.soap.metadata.QuotasSettings globalQuotasSettings;
public com.sforce.soap.metadata.QuotasSettings getGlobalQuotasSettings() {
return globalQuotasSettings;
}
public void setGlobalQuotasSettings(com.sforce.soap.metadata.QuotasSettings globalQuotasSettings) {
this.globalQuotasSettings = globalQuotasSettings;
globalQuotasSettings__is_set = true;
}
protected void setGlobalQuotasSettings(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("globalQuotasSettings", "http://soap.sforce.com/2006/04/metadata","globalQuotasSettings","http://soap.sforce.com/2006/04/metadata","QuotasSettings",1,1,true))) {
setGlobalQuotasSettings((com.sforce.soap.metadata.QuotasSettings)__typeMapper.readObject(__in, _lookupTypeInfo("globalQuotasSettings", "http://soap.sforce.com/2006/04/metadata","globalQuotasSettings","http://soap.sforce.com/2006/04/metadata","QuotasSettings",1,1,true), com.sforce.soap.metadata.QuotasSettings.class));
}
}
private void writeFieldGlobalQuotasSettings(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("globalQuotasSettings", "http://soap.sforce.com/2006/04/metadata","globalQuotasSettings","http://soap.sforce.com/2006/04/metadata","QuotasSettings",1,1,true), globalQuotasSettings, globalQuotasSettings__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", "ForecastingSettings");
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("[ForecastingSettings ");
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 {
writeFieldDefaultToPersonalCurrency(__out, __typeMapper);
writeFieldEnableForecasts(__out, __typeMapper);
writeFieldForecastingCategoryMappings(__out, __typeMapper);
writeFieldForecastingDisplayedFamilySettings(__out, __typeMapper);
writeFieldForecastingTypeSettings(__out, __typeMapper);
writeFieldGlobalAdjustmentsSettings(__out, __typeMapper);
writeFieldGlobalForecastRangeSettings(__out, __typeMapper);
writeFieldGlobalQuotasSettings(__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 {
setDefaultToPersonalCurrency(__in, __typeMapper);
setEnableForecasts(__in, __typeMapper);
setForecastingCategoryMappings(__in, __typeMapper);
setForecastingDisplayedFamilySettings(__in, __typeMapper);
setForecastingTypeSettings(__in, __typeMapper);
setGlobalAdjustmentsSettings(__in, __typeMapper);
setGlobalForecastRangeSettings(__in, __typeMapper);
setGlobalQuotasSettings(__in, __typeMapper);
}
private void toString1(StringBuilder sb) {
toStringHelper(sb, "defaultToPersonalCurrency", defaultToPersonalCurrency);
toStringHelper(sb, "enableForecasts", enableForecasts);
toStringHelper(sb, "forecastingCategoryMappings", forecastingCategoryMappings);
toStringHelper(sb, "forecastingDisplayedFamilySettings", forecastingDisplayedFamilySettings);
toStringHelper(sb, "forecastingTypeSettings", forecastingTypeSettings);
toStringHelper(sb, "globalAdjustmentsSettings", globalAdjustmentsSettings);
toStringHelper(sb, "globalForecastRangeSettings", globalForecastRangeSettings);
toStringHelper(sb, "globalQuotasSettings", globalQuotasSettings);
}
}