
com.sforce.soap.metadata.DiscoveryStory 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
The newest version!
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 DiscoveryStory extends com.sforce.soap.metadata.MetadataWithContent {
/**
* Constructor
*/
public DiscoveryStory() {}
/* 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 : application of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean application__is_set = false;
private java.lang.String application;
public java.lang.String getApplication() {
return application;
}
public void setApplication(java.lang.String application) {
this.application = application;
application__is_set = true;
}
protected void setApplication(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("application", "http://soap.sforce.com/2006/04/metadata","application","http://www.w3.org/2001/XMLSchema","string",1,1,true))) {
setApplication(__typeMapper.readString(__in, _lookupTypeInfo("application", "http://soap.sforce.com/2006/04/metadata","application","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class));
}
}
private void writeFieldApplication(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("application", "http://soap.sforce.com/2006/04/metadata","application","http://www.w3.org/2001/XMLSchema","string",1,1,true), application, application__is_set);
}
/**
* element : autopilot of type {http://soap.sforce.com/2006/04/metadata}DiscoveryStoryAutopilotStatus
* java type: java.lang.String
*/
private boolean autopilot__is_set = false;
private java.lang.String autopilot;
public java.lang.String getAutopilot() {
return autopilot;
}
public void setAutopilot(java.lang.String autopilot) {
this.autopilot = autopilot;
autopilot__is_set = true;
}
protected void setAutopilot(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("autopilot", "http://soap.sforce.com/2006/04/metadata","autopilot","http://soap.sforce.com/2006/04/metadata","DiscoveryStoryAutopilotStatus",0,1,true))) {
setAutopilot(__typeMapper.readString(__in, _lookupTypeInfo("autopilot", "http://soap.sforce.com/2006/04/metadata","autopilot","http://soap.sforce.com/2006/04/metadata","DiscoveryStoryAutopilotStatus",0,1,true), java.lang.String.class));
}
}
private void writeFieldAutopilot(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("autopilot", "http://soap.sforce.com/2006/04/metadata","autopilot","http://soap.sforce.com/2006/04/metadata","DiscoveryStoryAutopilotStatus",0,1,true), autopilot, autopilot__is_set);
}
/**
* element : classificationThreshold of type {http://www.w3.org/2001/XMLSchema}double
* java type: double
*/
private boolean classificationThreshold__is_set = false;
private double classificationThreshold;
public double getClassificationThreshold() {
return classificationThreshold;
}
public void setClassificationThreshold(double classificationThreshold) {
this.classificationThreshold = classificationThreshold;
classificationThreshold__is_set = true;
}
protected void setClassificationThreshold(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("classificationThreshold", "http://soap.sforce.com/2006/04/metadata","classificationThreshold","http://www.w3.org/2001/XMLSchema","double",0,1,true))) {
setClassificationThreshold((double)__typeMapper.readDouble(__in, _lookupTypeInfo("classificationThreshold", "http://soap.sforce.com/2006/04/metadata","classificationThreshold","http://www.w3.org/2001/XMLSchema","double",0,1,true), double.class));
}
}
private void writeFieldClassificationThreshold(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("classificationThreshold", "http://soap.sforce.com/2006/04/metadata","classificationThreshold","http://www.w3.org/2001/XMLSchema","double",0,1,true), classificationThreshold, classificationThreshold__is_set);
}
/**
* element : label of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean label__is_set = false;
private java.lang.String label;
public java.lang.String getLabel() {
return label;
}
public void setLabel(java.lang.String label) {
this.label = label;
label__is_set = true;
}
protected void setLabel(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("label", "http://soap.sforce.com/2006/04/metadata","label","http://www.w3.org/2001/XMLSchema","string",1,1,true))) {
setLabel(__typeMapper.readString(__in, _lookupTypeInfo("label", "http://soap.sforce.com/2006/04/metadata","label","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class));
}
}
private void writeFieldLabel(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("label", "http://soap.sforce.com/2006/04/metadata","label","http://www.w3.org/2001/XMLSchema","string",1,1,true), label, label__is_set);
}
/**
* element : outcome of type {http://soap.sforce.com/2006/04/metadata}DiscoveryStoryOutcome
* java type: com.sforce.soap.metadata.DiscoveryStoryOutcome
*/
private boolean outcome__is_set = false;
private com.sforce.soap.metadata.DiscoveryStoryOutcome outcome;
public com.sforce.soap.metadata.DiscoveryStoryOutcome getOutcome() {
return outcome;
}
public void setOutcome(com.sforce.soap.metadata.DiscoveryStoryOutcome outcome) {
this.outcome = outcome;
outcome__is_set = true;
}
protected void setOutcome(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("outcome", "http://soap.sforce.com/2006/04/metadata","outcome","http://soap.sforce.com/2006/04/metadata","DiscoveryStoryOutcome",1,1,true))) {
setOutcome((com.sforce.soap.metadata.DiscoveryStoryOutcome)__typeMapper.readObject(__in, _lookupTypeInfo("outcome", "http://soap.sforce.com/2006/04/metadata","outcome","http://soap.sforce.com/2006/04/metadata","DiscoveryStoryOutcome",1,1,true), com.sforce.soap.metadata.DiscoveryStoryOutcome.class));
}
}
private void writeFieldOutcome(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("outcome", "http://soap.sforce.com/2006/04/metadata","outcome","http://soap.sforce.com/2006/04/metadata","DiscoveryStoryOutcome",1,1,true), outcome, outcome__is_set);
}
/**
* element : sourceContainer of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean sourceContainer__is_set = false;
private java.lang.String sourceContainer;
public java.lang.String getSourceContainer() {
return sourceContainer;
}
public void setSourceContainer(java.lang.String sourceContainer) {
this.sourceContainer = sourceContainer;
sourceContainer__is_set = true;
}
protected void setSourceContainer(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("sourceContainer", "http://soap.sforce.com/2006/04/metadata","sourceContainer","http://www.w3.org/2001/XMLSchema","string",1,1,true))) {
setSourceContainer(__typeMapper.readString(__in, _lookupTypeInfo("sourceContainer", "http://soap.sforce.com/2006/04/metadata","sourceContainer","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class));
}
}
private void writeFieldSourceContainer(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("sourceContainer", "http://soap.sforce.com/2006/04/metadata","sourceContainer","http://www.w3.org/2001/XMLSchema","string",1,1,true), sourceContainer, sourceContainer__is_set);
}
/**
* element : sourceType of type {http://soap.sforce.com/2006/04/metadata}DiscoveryStorySourceType
* java type: java.lang.String
*/
private boolean sourceType__is_set = false;
private java.lang.String sourceType;
public java.lang.String getSourceType() {
return sourceType;
}
public void setSourceType(java.lang.String sourceType) {
this.sourceType = sourceType;
sourceType__is_set = true;
}
protected void setSourceType(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("sourceType", "http://soap.sforce.com/2006/04/metadata","sourceType","http://soap.sforce.com/2006/04/metadata","DiscoveryStorySourceType",1,1,true))) {
setSourceType(__typeMapper.readString(__in, _lookupTypeInfo("sourceType", "http://soap.sforce.com/2006/04/metadata","sourceType","http://soap.sforce.com/2006/04/metadata","DiscoveryStorySourceType",1,1,true), java.lang.String.class));
}
}
private void writeFieldSourceType(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("sourceType", "http://soap.sforce.com/2006/04/metadata","sourceType","http://soap.sforce.com/2006/04/metadata","DiscoveryStorySourceType",1,1,true), sourceType, sourceType__is_set);
}
/**
* element : validationContainer of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean validationContainer__is_set = false;
private java.lang.String validationContainer;
public java.lang.String getValidationContainer() {
return validationContainer;
}
public void setValidationContainer(java.lang.String validationContainer) {
this.validationContainer = validationContainer;
validationContainer__is_set = true;
}
protected void setValidationContainer(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("validationContainer", "http://soap.sforce.com/2006/04/metadata","validationContainer","http://www.w3.org/2001/XMLSchema","string",0,1,true))) {
setValidationContainer(__typeMapper.readString(__in, _lookupTypeInfo("validationContainer", "http://soap.sforce.com/2006/04/metadata","validationContainer","http://www.w3.org/2001/XMLSchema","string",0,1,true), java.lang.String.class));
}
}
private void writeFieldValidationContainer(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("validationContainer", "http://soap.sforce.com/2006/04/metadata","validationContainer","http://www.w3.org/2001/XMLSchema","string",0,1,true), validationContainer, validationContainer__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", "DiscoveryStory");
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("[DiscoveryStory ");
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 {
writeFieldApplication(__out, __typeMapper);
writeFieldAutopilot(__out, __typeMapper);
writeFieldClassificationThreshold(__out, __typeMapper);
writeFieldLabel(__out, __typeMapper);
writeFieldOutcome(__out, __typeMapper);
writeFieldSourceContainer(__out, __typeMapper);
writeFieldSourceType(__out, __typeMapper);
writeFieldValidationContainer(__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 {
setApplication(__in, __typeMapper);
setAutopilot(__in, __typeMapper);
setClassificationThreshold(__in, __typeMapper);
setLabel(__in, __typeMapper);
setOutcome(__in, __typeMapper);
setSourceContainer(__in, __typeMapper);
setSourceType(__in, __typeMapper);
setValidationContainer(__in, __typeMapper);
}
private void toString1(StringBuilder sb) {
toStringHelper(sb, "application", application);
toStringHelper(sb, "autopilot", autopilot);
toStringHelper(sb, "classificationThreshold", classificationThreshold);
toStringHelper(sb, "label", label);
toStringHelper(sb, "outcome", outcome);
toStringHelper(sb, "sourceContainer", sourceContainer);
toStringHelper(sb, "sourceType", sourceType);
toStringHelper(sb, "validationContainer", validationContainer);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy