com.sforce.soap.metadata.State 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 State implements com.sforce.ws.bind.XMLizable {
/**
* Constructor
*/
public State() {}
/* 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 : active of type {http://www.w3.org/2001/XMLSchema}boolean
* java type: boolean
*/
private boolean active__is_set = false;
private boolean active;
public boolean getActive() {
return active;
}
public boolean isActive() {
return active;
}
public void setActive(boolean active) {
this.active = active;
active__is_set = true;
}
protected void setActive(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("active", "http://soap.sforce.com/2006/04/metadata","active","http://www.w3.org/2001/XMLSchema","boolean",1,1,true))) {
setActive(__typeMapper.readBoolean(__in, _lookupTypeInfo("active", "http://soap.sforce.com/2006/04/metadata","active","http://www.w3.org/2001/XMLSchema","boolean",1,1,true), boolean.class));
}
}
private void writeFieldActive(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("active", "http://soap.sforce.com/2006/04/metadata","active","http://www.w3.org/2001/XMLSchema","boolean",1,1,true), active, active__is_set);
}
/**
* element : integrationValue of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean integrationValue__is_set = false;
private java.lang.String integrationValue;
public java.lang.String getIntegrationValue() {
return integrationValue;
}
public void setIntegrationValue(java.lang.String integrationValue) {
this.integrationValue = integrationValue;
integrationValue__is_set = true;
}
protected void setIntegrationValue(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("integrationValue", "http://soap.sforce.com/2006/04/metadata","integrationValue","http://www.w3.org/2001/XMLSchema","string",1,1,true))) {
setIntegrationValue(__typeMapper.readString(__in, _lookupTypeInfo("integrationValue", "http://soap.sforce.com/2006/04/metadata","integrationValue","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class));
}
}
private void writeFieldIntegrationValue(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("integrationValue", "http://soap.sforce.com/2006/04/metadata","integrationValue","http://www.w3.org/2001/XMLSchema","string",1,1,true), integrationValue, integrationValue__is_set);
}
/**
* element : isoCode of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean isoCode__is_set = false;
private java.lang.String isoCode;
public java.lang.String getIsoCode() {
return isoCode;
}
public void setIsoCode(java.lang.String isoCode) {
this.isoCode = isoCode;
isoCode__is_set = true;
}
protected void setIsoCode(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("isoCode", "http://soap.sforce.com/2006/04/metadata","isoCode","http://www.w3.org/2001/XMLSchema","string",1,1,true))) {
setIsoCode(__typeMapper.readString(__in, _lookupTypeInfo("isoCode", "http://soap.sforce.com/2006/04/metadata","isoCode","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class));
}
}
private void writeFieldIsoCode(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("isoCode", "http://soap.sforce.com/2006/04/metadata","isoCode","http://www.w3.org/2001/XMLSchema","string",1,1,true), isoCode, isoCode__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 : standard of type {http://www.w3.org/2001/XMLSchema}boolean
* java type: boolean
*/
private boolean standard__is_set = false;
private boolean standard;
public boolean getStandard() {
return standard;
}
public boolean isStandard() {
return standard;
}
public void setStandard(boolean standard) {
this.standard = standard;
standard__is_set = true;
}
protected void setStandard(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("standard", "http://soap.sforce.com/2006/04/metadata","standard","http://www.w3.org/2001/XMLSchema","boolean",1,1,true))) {
setStandard(__typeMapper.readBoolean(__in, _lookupTypeInfo("standard", "http://soap.sforce.com/2006/04/metadata","standard","http://www.w3.org/2001/XMLSchema","boolean",1,1,true), boolean.class));
}
}
private void writeFieldStandard(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("standard", "http://soap.sforce.com/2006/04/metadata","standard","http://www.w3.org/2001/XMLSchema","boolean",1,1,true), standard, standard__is_set);
}
/**
* element : visible of type {http://www.w3.org/2001/XMLSchema}boolean
* java type: boolean
*/
private boolean visible__is_set = false;
private boolean visible;
public boolean getVisible() {
return visible;
}
public boolean isVisible() {
return visible;
}
public void setVisible(boolean visible) {
this.visible = visible;
visible__is_set = true;
}
protected void setVisible(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("visible", "http://soap.sforce.com/2006/04/metadata","visible","http://www.w3.org/2001/XMLSchema","boolean",1,1,true))) {
setVisible(__typeMapper.readBoolean(__in, _lookupTypeInfo("visible", "http://soap.sforce.com/2006/04/metadata","visible","http://www.w3.org/2001/XMLSchema","boolean",1,1,true), boolean.class));
}
}
private void writeFieldVisible(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("visible", "http://soap.sforce.com/2006/04/metadata","visible","http://www.w3.org/2001/XMLSchema","boolean",1,1,true), visible, visible__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());
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 {
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 {
loadFields1(__in, __typeMapper);
}
@Override
public String toString() {
java.lang.StringBuilder sb = new java.lang.StringBuilder();
sb.append("[State ");
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 {
writeFieldActive(__out, __typeMapper);
writeFieldIntegrationValue(__out, __typeMapper);
writeFieldIsoCode(__out, __typeMapper);
writeFieldLabel(__out, __typeMapper);
writeFieldStandard(__out, __typeMapper);
writeFieldVisible(__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 {
setActive(__in, __typeMapper);
setIntegrationValue(__in, __typeMapper);
setIsoCode(__in, __typeMapper);
setLabel(__in, __typeMapper);
setStandard(__in, __typeMapper);
setVisible(__in, __typeMapper);
}
private void toString1(StringBuilder sb) {
toStringHelper(sb, "active", active);
toStringHelper(sb, "integrationValue", integrationValue);
toStringHelper(sb, "isoCode", isoCode);
toStringHelper(sb, "label", label);
toStringHelper(sb, "standard", standard);
toStringHelper(sb, "visible", visible);
}
}