datai/docs/reference-code/com/sforce/soap/tooling/sobject/CurrencySettings.java

342 lines
18 KiB
Java

package com.sforce.soap.tooling.sobject;
/**
* This is a generated class for the SObject Enterprise API.
* Do not edit this file, as your changes will be lost.
*/
public class CurrencySettings extends com.sforce.soap.tooling.sobject.SObject {
/**
* Constructor
*/
public CurrencySettings() {}
/* 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 : DurableId of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean DurableId__is_set = false;
private java.lang.String DurableId;
public java.lang.String getDurableId() {
return DurableId;
}
public void setDurableId(java.lang.String DurableId) {
this.DurableId = DurableId;
DurableId__is_set = true;
}
protected void setDurableId(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("DurableId", "urn:sobject.tooling.soap.sforce.com","DurableId","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
setDurableId(__typeMapper.readString(__in, _lookupTypeInfo("DurableId", "urn:sobject.tooling.soap.sforce.com","DurableId","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
}
}
private void writeFieldDurableId(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("DurableId", "urn:sobject.tooling.soap.sforce.com","DurableId","http://www.w3.org/2001/XMLSchema","string",0,1,true), DurableId, DurableId__is_set);
}
/**
* element : FullName of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean FullName__is_set = false;
private java.lang.String FullName;
public java.lang.String getFullName() {
return FullName;
}
public void setFullName(java.lang.String FullName) {
this.FullName = FullName;
FullName__is_set = true;
}
protected void setFullName(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("FullName", "urn:sobject.tooling.soap.sforce.com","FullName","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
setFullName(__typeMapper.readString(__in, _lookupTypeInfo("FullName", "urn:sobject.tooling.soap.sforce.com","FullName","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
}
}
private void writeFieldFullName(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("FullName", "urn:sobject.tooling.soap.sforce.com","FullName","http://www.w3.org/2001/XMLSchema","string",0,1,true), FullName, FullName__is_set);
}
/**
* element : IsCurrencyEffectiveDatesEnabled of type {http://www.w3.org/2001/XMLSchema}boolean
* java type: java.lang.Boolean
*/
private boolean IsCurrencyEffectiveDatesEnabled__is_set = false;
private java.lang.Boolean IsCurrencyEffectiveDatesEnabled;
public java.lang.Boolean getIsCurrencyEffectiveDatesEnabled() {
return IsCurrencyEffectiveDatesEnabled;
}
public void setIsCurrencyEffectiveDatesEnabled(java.lang.Boolean IsCurrencyEffectiveDatesEnabled) {
this.IsCurrencyEffectiveDatesEnabled = IsCurrencyEffectiveDatesEnabled;
IsCurrencyEffectiveDatesEnabled__is_set = true;
}
protected void setIsCurrencyEffectiveDatesEnabled(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("IsCurrencyEffectiveDatesEnabled", "urn:sobject.tooling.soap.sforce.com","IsCurrencyEffectiveDatesEnabled","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
setIsCurrencyEffectiveDatesEnabled((java.lang.Boolean)__typeMapper.readObject(__in, _lookupTypeInfo("IsCurrencyEffectiveDatesEnabled", "urn:sobject.tooling.soap.sforce.com","IsCurrencyEffectiveDatesEnabled","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), java.lang.Boolean.class));
}
}
private void writeFieldIsCurrencyEffectiveDatesEnabled(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("IsCurrencyEffectiveDatesEnabled", "urn:sobject.tooling.soap.sforce.com","IsCurrencyEffectiveDatesEnabled","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), IsCurrencyEffectiveDatesEnabled, IsCurrencyEffectiveDatesEnabled__is_set);
}
/**
* element : IsCurrencySymbolWithMultiCurrencyEnabled of type {http://www.w3.org/2001/XMLSchema}boolean
* java type: java.lang.Boolean
*/
private boolean IsCurrencySymbolWithMultiCurrencyEnabled__is_set = false;
private java.lang.Boolean IsCurrencySymbolWithMultiCurrencyEnabled;
public java.lang.Boolean getIsCurrencySymbolWithMultiCurrencyEnabled() {
return IsCurrencySymbolWithMultiCurrencyEnabled;
}
public void setIsCurrencySymbolWithMultiCurrencyEnabled(java.lang.Boolean IsCurrencySymbolWithMultiCurrencyEnabled) {
this.IsCurrencySymbolWithMultiCurrencyEnabled = IsCurrencySymbolWithMultiCurrencyEnabled;
IsCurrencySymbolWithMultiCurrencyEnabled__is_set = true;
}
protected void setIsCurrencySymbolWithMultiCurrencyEnabled(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("IsCurrencySymbolWithMultiCurrencyEnabled", "urn:sobject.tooling.soap.sforce.com","IsCurrencySymbolWithMultiCurrencyEnabled","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
setIsCurrencySymbolWithMultiCurrencyEnabled((java.lang.Boolean)__typeMapper.readObject(__in, _lookupTypeInfo("IsCurrencySymbolWithMultiCurrencyEnabled", "urn:sobject.tooling.soap.sforce.com","IsCurrencySymbolWithMultiCurrencyEnabled","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), java.lang.Boolean.class));
}
}
private void writeFieldIsCurrencySymbolWithMultiCurrencyEnabled(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("IsCurrencySymbolWithMultiCurrencyEnabled", "urn:sobject.tooling.soap.sforce.com","IsCurrencySymbolWithMultiCurrencyEnabled","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), IsCurrencySymbolWithMultiCurrencyEnabled, IsCurrencySymbolWithMultiCurrencyEnabled__is_set);
}
/**
* element : IsMultiCurrencyActivationAllowed of type {http://www.w3.org/2001/XMLSchema}boolean
* java type: java.lang.Boolean
*/
private boolean IsMultiCurrencyActivationAllowed__is_set = false;
private java.lang.Boolean IsMultiCurrencyActivationAllowed;
public java.lang.Boolean getIsMultiCurrencyActivationAllowed() {
return IsMultiCurrencyActivationAllowed;
}
public void setIsMultiCurrencyActivationAllowed(java.lang.Boolean IsMultiCurrencyActivationAllowed) {
this.IsMultiCurrencyActivationAllowed = IsMultiCurrencyActivationAllowed;
IsMultiCurrencyActivationAllowed__is_set = true;
}
protected void setIsMultiCurrencyActivationAllowed(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("IsMultiCurrencyActivationAllowed", "urn:sobject.tooling.soap.sforce.com","IsMultiCurrencyActivationAllowed","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
setIsMultiCurrencyActivationAllowed((java.lang.Boolean)__typeMapper.readObject(__in, _lookupTypeInfo("IsMultiCurrencyActivationAllowed", "urn:sobject.tooling.soap.sforce.com","IsMultiCurrencyActivationAllowed","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), java.lang.Boolean.class));
}
}
private void writeFieldIsMultiCurrencyActivationAllowed(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("IsMultiCurrencyActivationAllowed", "urn:sobject.tooling.soap.sforce.com","IsMultiCurrencyActivationAllowed","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), IsMultiCurrencyActivationAllowed, IsMultiCurrencyActivationAllowed__is_set);
}
/**
* element : IsMultiCurrencyEnabled of type {http://www.w3.org/2001/XMLSchema}boolean
* java type: java.lang.Boolean
*/
private boolean IsMultiCurrencyEnabled__is_set = false;
private java.lang.Boolean IsMultiCurrencyEnabled;
public java.lang.Boolean getIsMultiCurrencyEnabled() {
return IsMultiCurrencyEnabled;
}
public void setIsMultiCurrencyEnabled(java.lang.Boolean IsMultiCurrencyEnabled) {
this.IsMultiCurrencyEnabled = IsMultiCurrencyEnabled;
IsMultiCurrencyEnabled__is_set = true;
}
protected void setIsMultiCurrencyEnabled(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("IsMultiCurrencyEnabled", "urn:sobject.tooling.soap.sforce.com","IsMultiCurrencyEnabled","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
setIsMultiCurrencyEnabled((java.lang.Boolean)__typeMapper.readObject(__in, _lookupTypeInfo("IsMultiCurrencyEnabled", "urn:sobject.tooling.soap.sforce.com","IsMultiCurrencyEnabled","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), java.lang.Boolean.class));
}
}
private void writeFieldIsMultiCurrencyEnabled(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("IsMultiCurrencyEnabled", "urn:sobject.tooling.soap.sforce.com","IsMultiCurrencyEnabled","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), IsMultiCurrencyEnabled, IsMultiCurrencyEnabled__is_set);
}
/**
* element : IsParenCurrencyConvDisabled of type {http://www.w3.org/2001/XMLSchema}boolean
* java type: java.lang.Boolean
*/
private boolean IsParenCurrencyConvDisabled__is_set = false;
private java.lang.Boolean IsParenCurrencyConvDisabled;
public java.lang.Boolean getIsParenCurrencyConvDisabled() {
return IsParenCurrencyConvDisabled;
}
public void setIsParenCurrencyConvDisabled(java.lang.Boolean IsParenCurrencyConvDisabled) {
this.IsParenCurrencyConvDisabled = IsParenCurrencyConvDisabled;
IsParenCurrencyConvDisabled__is_set = true;
}
protected void setIsParenCurrencyConvDisabled(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("IsParenCurrencyConvDisabled", "urn:sobject.tooling.soap.sforce.com","IsParenCurrencyConvDisabled","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
setIsParenCurrencyConvDisabled((java.lang.Boolean)__typeMapper.readObject(__in, _lookupTypeInfo("IsParenCurrencyConvDisabled", "urn:sobject.tooling.soap.sforce.com","IsParenCurrencyConvDisabled","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), java.lang.Boolean.class));
}
}
private void writeFieldIsParenCurrencyConvDisabled(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("IsParenCurrencyConvDisabled", "urn:sobject.tooling.soap.sforce.com","IsParenCurrencyConvDisabled","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), IsParenCurrencyConvDisabled, IsParenCurrencyConvDisabled__is_set);
}
/**
* element : Metadata of type {urn:metadata.tooling.soap.sforce.com}CurrencySettings
* java type: com.sforce.soap.tooling.metadata.CurrencySettings
*/
private boolean Metadata__is_set = false;
private com.sforce.soap.tooling.metadata.CurrencySettings Metadata;
public com.sforce.soap.tooling.metadata.CurrencySettings getMetadata() {
return Metadata;
}
public void setMetadata(com.sforce.soap.tooling.metadata.CurrencySettings Metadata) {
this.Metadata = Metadata;
Metadata__is_set = true;
}
protected void setMetadata(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("Metadata", "urn:sobject.tooling.soap.sforce.com","Metadata","urn:metadata.tooling.soap.sforce.com","CurrencySettings",0,1,true))) {
setMetadata((com.sforce.soap.tooling.metadata.CurrencySettings)__typeMapper.readObject(__in, _lookupTypeInfo("Metadata", "urn:sobject.tooling.soap.sforce.com","Metadata","urn:metadata.tooling.soap.sforce.com","CurrencySettings",0,1,true), com.sforce.soap.tooling.metadata.CurrencySettings.class));
}
}
private void writeFieldMetadata(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("Metadata", "urn:sobject.tooling.soap.sforce.com","Metadata","urn:metadata.tooling.soap.sforce.com","CurrencySettings",0,1,true), Metadata, Metadata__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:sobject.tooling.soap.sforce.com", "CurrencySettings");
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("[CurrencySettings ");
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 {
writeFieldDurableId(__out, __typeMapper);
writeFieldFullName(__out, __typeMapper);
writeFieldIsCurrencyEffectiveDatesEnabled(__out, __typeMapper);
writeFieldIsCurrencySymbolWithMultiCurrencyEnabled(__out, __typeMapper);
writeFieldIsMultiCurrencyActivationAllowed(__out, __typeMapper);
writeFieldIsMultiCurrencyEnabled(__out, __typeMapper);
writeFieldIsParenCurrencyConvDisabled(__out, __typeMapper);
writeFieldMetadata(__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 {
setDurableId(__in, __typeMapper);
setFullName(__in, __typeMapper);
setIsCurrencyEffectiveDatesEnabled(__in, __typeMapper);
setIsCurrencySymbolWithMultiCurrencyEnabled(__in, __typeMapper);
setIsMultiCurrencyActivationAllowed(__in, __typeMapper);
setIsMultiCurrencyEnabled(__in, __typeMapper);
setIsParenCurrencyConvDisabled(__in, __typeMapper);
setMetadata(__in, __typeMapper);
}
private void toString1(StringBuilder sb) {
toStringHelper(sb, "DurableId", DurableId);
toStringHelper(sb, "FullName", FullName);
toStringHelper(sb, "IsCurrencyEffectiveDatesEnabled", IsCurrencyEffectiveDatesEnabled);
toStringHelper(sb, "IsCurrencySymbolWithMultiCurrencyEnabled", IsCurrencySymbolWithMultiCurrencyEnabled);
toStringHelper(sb, "IsMultiCurrencyActivationAllowed", IsMultiCurrencyActivationAllowed);
toStringHelper(sb, "IsMultiCurrencyEnabled", IsMultiCurrencyEnabled);
toStringHelper(sb, "IsParenCurrencyConvDisabled", IsParenCurrencyConvDisabled);
toStringHelper(sb, "Metadata", Metadata);
}
}