com.sforce.soap.metadata.ForecastingSourceDefinition 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 ForecastingSourceDefinition extends com.sforce.soap.metadata.Metadata {
/**
* Constructor
*/
public ForecastingSourceDefinition() {}
/* 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 : categoryField of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean categoryField__is_set = false;
private java.lang.String categoryField;
public java.lang.String getCategoryField() {
return categoryField;
}
public void setCategoryField(java.lang.String categoryField) {
this.categoryField = categoryField;
categoryField__is_set = true;
}
protected void setCategoryField(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("categoryField", "http://soap.sforce.com/2006/04/metadata","categoryField","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
setCategoryField(__typeMapper.readString(__in, _lookupTypeInfo("categoryField", "http://soap.sforce.com/2006/04/metadata","categoryField","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
}
}
private void writeFieldCategoryField(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("categoryField", "http://soap.sforce.com/2006/04/metadata","categoryField","http://www.w3.org/2001/XMLSchema","string",0,1,true), categoryField, categoryField__is_set);
}
/**
* element : dateField of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean dateField__is_set = false;
private java.lang.String dateField;
public java.lang.String getDateField() {
return dateField;
}
public void setDateField(java.lang.String dateField) {
this.dateField = dateField;
dateField__is_set = true;
}
protected void setDateField(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("dateField", "http://soap.sforce.com/2006/04/metadata","dateField","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
setDateField(__typeMapper.readString(__in, _lookupTypeInfo("dateField", "http://soap.sforce.com/2006/04/metadata","dateField","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
}
}
private void writeFieldDateField(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("dateField", "http://soap.sforce.com/2006/04/metadata","dateField","http://www.w3.org/2001/XMLSchema","string",0,1,true), dateField, dateField__is_set);
}
/**
* element : familyField of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean familyField__is_set = false;
private java.lang.String familyField;
public java.lang.String getFamilyField() {
return familyField;
}
public void setFamilyField(java.lang.String familyField) {
this.familyField = familyField;
familyField__is_set = true;
}
protected void setFamilyField(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("familyField", "http://soap.sforce.com/2006/04/metadata","familyField","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
setFamilyField(__typeMapper.readString(__in, _lookupTypeInfo("familyField", "http://soap.sforce.com/2006/04/metadata","familyField","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
}
}
private void writeFieldFamilyField(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("familyField", "http://soap.sforce.com/2006/04/metadata","familyField","http://www.w3.org/2001/XMLSchema","string",0,1,true), familyField, familyField__is_set);
}
/**
* element : isProtected of type {http://www.w3.org/2001/XMLSchema}boolean
* java type: boolean
*/
private boolean isProtected__is_set = false;
private boolean isProtected;
public boolean getIsProtected() {
return isProtected;
}
public boolean isIsProtected() {
return isProtected;
}
public void setIsProtected(boolean isProtected) {
this.isProtected = isProtected;
isProtected__is_set = true;
}
protected void setIsProtected(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("isProtected", "http://soap.sforce.com/2006/04/metadata","isProtected","http://www.w3.org/2001/XMLSchema","boolean",0,1,true))) {
setIsProtected(__typeMapper.readBoolean(__in, _lookupTypeInfo("isProtected", "http://soap.sforce.com/2006/04/metadata","isProtected","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), boolean.class));
}
}
private void writeFieldIsProtected(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("isProtected", "http://soap.sforce.com/2006/04/metadata","isProtected","http://www.w3.org/2001/XMLSchema","boolean",0,1,true), isProtected, isProtected__is_set);
}
/**
* element : masterLabel of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean masterLabel__is_set = false;
private java.lang.String masterLabel;
public java.lang.String getMasterLabel() {
return masterLabel;
}
public void setMasterLabel(java.lang.String masterLabel) {
this.masterLabel = masterLabel;
masterLabel__is_set = true;
}
protected void setMasterLabel(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("masterLabel", "http://soap.sforce.com/2006/04/metadata","masterLabel","http://www.w3.org/2001/XMLSchema","string",1,1,true))) {
setMasterLabel(__typeMapper.readString(__in, _lookupTypeInfo("masterLabel", "http://soap.sforce.com/2006/04/metadata","masterLabel","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class));
}
}
private void writeFieldMasterLabel(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("masterLabel", "http://soap.sforce.com/2006/04/metadata","masterLabel","http://www.w3.org/2001/XMLSchema","string",1,1,true), masterLabel, masterLabel__is_set);
}
/**
* element : measureField of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean measureField__is_set = false;
private java.lang.String measureField;
public java.lang.String getMeasureField() {
return measureField;
}
public void setMeasureField(java.lang.String measureField) {
this.measureField = measureField;
measureField__is_set = true;
}
protected void setMeasureField(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("measureField", "http://soap.sforce.com/2006/04/metadata","measureField","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
setMeasureField(__typeMapper.readString(__in, _lookupTypeInfo("measureField", "http://soap.sforce.com/2006/04/metadata","measureField","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
}
}
private void writeFieldMeasureField(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("measureField", "http://soap.sforce.com/2006/04/metadata","measureField","http://www.w3.org/2001/XMLSchema","string",0,1,true), measureField, measureField__is_set);
}
/**
* element : sourceObject of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean sourceObject__is_set = false;
private java.lang.String sourceObject;
public java.lang.String getSourceObject() {
return sourceObject;
}
public void setSourceObject(java.lang.String sourceObject) {
this.sourceObject = sourceObject;
sourceObject__is_set = true;
}
protected void setSourceObject(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("sourceObject", "http://soap.sforce.com/2006/04/metadata","sourceObject","http://www.w3.org/2001/XMLSchema","string",1,1,true))) {
setSourceObject(__typeMapper.readString(__in, _lookupTypeInfo("sourceObject", "http://soap.sforce.com/2006/04/metadata","sourceObject","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class));
}
}
private void writeFieldSourceObject(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("sourceObject", "http://soap.sforce.com/2006/04/metadata","sourceObject","http://www.w3.org/2001/XMLSchema","string",1,1,true), sourceObject, sourceObject__is_set);
}
/**
* element : territory2Field of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean territory2Field__is_set = false;
private java.lang.String territory2Field;
public java.lang.String getTerritory2Field() {
return territory2Field;
}
public void setTerritory2Field(java.lang.String territory2Field) {
this.territory2Field = territory2Field;
territory2Field__is_set = true;
}
protected void setTerritory2Field(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("territory2Field", "http://soap.sforce.com/2006/04/metadata","territory2Field","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
setTerritory2Field(__typeMapper.readString(__in, _lookupTypeInfo("territory2Field", "http://soap.sforce.com/2006/04/metadata","territory2Field","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
}
}
private void writeFieldTerritory2Field(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("territory2Field", "http://soap.sforce.com/2006/04/metadata","territory2Field","http://www.w3.org/2001/XMLSchema","string",0,1,true), territory2Field, territory2Field__is_set);
}
/**
* element : userField of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean userField__is_set = false;
private java.lang.String userField;
public java.lang.String getUserField() {
return userField;
}
public void setUserField(java.lang.String userField) {
this.userField = userField;
userField__is_set = true;
}
protected void setUserField(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("userField", "http://soap.sforce.com/2006/04/metadata","userField","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
setUserField(__typeMapper.readString(__in, _lookupTypeInfo("userField", "http://soap.sforce.com/2006/04/metadata","userField","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
}
}
private void writeFieldUserField(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("userField", "http://soap.sforce.com/2006/04/metadata","userField","http://www.w3.org/2001/XMLSchema","string",0,1,true), userField, userField__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", "ForecastingSourceDefinition");
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("[ForecastingSourceDefinition ");
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 {
writeFieldCategoryField(__out, __typeMapper);
writeFieldDateField(__out, __typeMapper);
writeFieldFamilyField(__out, __typeMapper);
writeFieldIsProtected(__out, __typeMapper);
writeFieldMasterLabel(__out, __typeMapper);
writeFieldMeasureField(__out, __typeMapper);
writeFieldSourceObject(__out, __typeMapper);
writeFieldTerritory2Field(__out, __typeMapper);
writeFieldUserField(__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 {
setCategoryField(__in, __typeMapper);
setDateField(__in, __typeMapper);
setFamilyField(__in, __typeMapper);
setIsProtected(__in, __typeMapper);
setMasterLabel(__in, __typeMapper);
setMeasureField(__in, __typeMapper);
setSourceObject(__in, __typeMapper);
setTerritory2Field(__in, __typeMapper);
setUserField(__in, __typeMapper);
}
private void toString1(StringBuilder sb) {
toStringHelper(sb, "categoryField", categoryField);
toStringHelper(sb, "dateField", dateField);
toStringHelper(sb, "familyField", familyField);
toStringHelper(sb, "isProtected", isProtected);
toStringHelper(sb, "masterLabel", masterLabel);
toStringHelper(sb, "measureField", measureField);
toStringHelper(sb, "sourceObject", sourceObject);
toStringHelper(sb, "territory2Field", territory2Field);
toStringHelper(sb, "userField", userField);
}
}