com.sforce.soap.partner.Address Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of force-partner-api Show documentation
Show all versions of force-partner-api Show documentation
Force.com Web Service Connector
The newest version!
package com.sforce.soap.partner;
/**
* This is a generated class for the SObject Enterprise API.
* Do not edit this file, as your changes will be lost.
*/
public class Address extends com.sforce.soap.partner.Location implements IAddress{
/**
* Constructor
*/
public Address() {}
/* 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 : city of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean city__is_set = false;
private java.lang.String city;
@Override
public java.lang.String getCity() {
return city;
}
@Override
public void setCity(java.lang.String city) {
this.city = city;
city__is_set = true;
}
protected void setCity(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("city", "urn:partner.soap.sforce.com","city","http://www.w3.org/2001/XMLSchema","string",1,1,true))) {
setCity(__typeMapper.readString(__in, _lookupTypeInfo("city", "urn:partner.soap.sforce.com","city","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class));
}
}
private void writeFieldCity(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("city", "urn:partner.soap.sforce.com","city","http://www.w3.org/2001/XMLSchema","string",1,1,true), city, city__is_set);
}
/**
* element : country of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean country__is_set = false;
private java.lang.String country;
@Override
public java.lang.String getCountry() {
return country;
}
@Override
public void setCountry(java.lang.String country) {
this.country = country;
country__is_set = true;
}
protected void setCountry(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("country", "urn:partner.soap.sforce.com","country","http://www.w3.org/2001/XMLSchema","string",1,1,true))) {
setCountry(__typeMapper.readString(__in, _lookupTypeInfo("country", "urn:partner.soap.sforce.com","country","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class));
}
}
private void writeFieldCountry(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("country", "urn:partner.soap.sforce.com","country","http://www.w3.org/2001/XMLSchema","string",1,1,true), country, country__is_set);
}
/**
* element : countryCode of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean countryCode__is_set = false;
private java.lang.String countryCode;
@Override
public java.lang.String getCountryCode() {
return countryCode;
}
@Override
public void setCountryCode(java.lang.String countryCode) {
this.countryCode = countryCode;
countryCode__is_set = true;
}
protected void setCountryCode(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("countryCode", "urn:partner.soap.sforce.com","countryCode","http://www.w3.org/2001/XMLSchema","string",1,1,true))) {
setCountryCode(__typeMapper.readString(__in, _lookupTypeInfo("countryCode", "urn:partner.soap.sforce.com","countryCode","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class));
}
}
private void writeFieldCountryCode(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("countryCode", "urn:partner.soap.sforce.com","countryCode","http://www.w3.org/2001/XMLSchema","string",1,1,true), countryCode, countryCode__is_set);
}
/**
* element : geocodeAccuracy of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean geocodeAccuracy__is_set = false;
private java.lang.String geocodeAccuracy;
@Override
public java.lang.String getGeocodeAccuracy() {
return geocodeAccuracy;
}
@Override
public void setGeocodeAccuracy(java.lang.String geocodeAccuracy) {
this.geocodeAccuracy = geocodeAccuracy;
geocodeAccuracy__is_set = true;
}
protected void setGeocodeAccuracy(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("geocodeAccuracy", "urn:partner.soap.sforce.com","geocodeAccuracy","http://www.w3.org/2001/XMLSchema","string",1,1,true))) {
setGeocodeAccuracy(__typeMapper.readString(__in, _lookupTypeInfo("geocodeAccuracy", "urn:partner.soap.sforce.com","geocodeAccuracy","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class));
}
}
private void writeFieldGeocodeAccuracy(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("geocodeAccuracy", "urn:partner.soap.sforce.com","geocodeAccuracy","http://www.w3.org/2001/XMLSchema","string",1,1,true), geocodeAccuracy, geocodeAccuracy__is_set);
}
/**
* element : postalCode of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean postalCode__is_set = false;
private java.lang.String postalCode;
@Override
public java.lang.String getPostalCode() {
return postalCode;
}
@Override
public void setPostalCode(java.lang.String postalCode) {
this.postalCode = postalCode;
postalCode__is_set = true;
}
protected void setPostalCode(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("postalCode", "urn:partner.soap.sforce.com","postalCode","http://www.w3.org/2001/XMLSchema","string",1,1,true))) {
setPostalCode(__typeMapper.readString(__in, _lookupTypeInfo("postalCode", "urn:partner.soap.sforce.com","postalCode","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class));
}
}
private void writeFieldPostalCode(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("postalCode", "urn:partner.soap.sforce.com","postalCode","http://www.w3.org/2001/XMLSchema","string",1,1,true), postalCode, postalCode__is_set);
}
/**
* element : state of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean state__is_set = false;
private java.lang.String state;
@Override
public java.lang.String getState() {
return state;
}
@Override
public void setState(java.lang.String state) {
this.state = state;
state__is_set = true;
}
protected void setState(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("state", "urn:partner.soap.sforce.com","state","http://www.w3.org/2001/XMLSchema","string",1,1,true))) {
setState(__typeMapper.readString(__in, _lookupTypeInfo("state", "urn:partner.soap.sforce.com","state","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class));
}
}
private void writeFieldState(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("state", "urn:partner.soap.sforce.com","state","http://www.w3.org/2001/XMLSchema","string",1,1,true), state, state__is_set);
}
/**
* element : stateCode of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean stateCode__is_set = false;
private java.lang.String stateCode;
@Override
public java.lang.String getStateCode() {
return stateCode;
}
@Override
public void setStateCode(java.lang.String stateCode) {
this.stateCode = stateCode;
stateCode__is_set = true;
}
protected void setStateCode(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("stateCode", "urn:partner.soap.sforce.com","stateCode","http://www.w3.org/2001/XMLSchema","string",1,1,true))) {
setStateCode(__typeMapper.readString(__in, _lookupTypeInfo("stateCode", "urn:partner.soap.sforce.com","stateCode","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class));
}
}
private void writeFieldStateCode(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("stateCode", "urn:partner.soap.sforce.com","stateCode","http://www.w3.org/2001/XMLSchema","string",1,1,true), stateCode, stateCode__is_set);
}
/**
* element : street of type {http://www.w3.org/2001/XMLSchema}string
* java type: java.lang.String
*/
private boolean street__is_set = false;
private java.lang.String street;
@Override
public java.lang.String getStreet() {
return street;
}
@Override
public void setStreet(java.lang.String street) {
this.street = street;
street__is_set = true;
}
protected void setStreet(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("street", "urn:partner.soap.sforce.com","street","http://www.w3.org/2001/XMLSchema","string",1,1,true))) {
setStreet(__typeMapper.readString(__in, _lookupTypeInfo("street", "urn:partner.soap.sforce.com","street","http://www.w3.org/2001/XMLSchema","string",1,1,true), java.lang.String.class));
}
}
private void writeFieldStreet(com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException {
__typeMapper.writeObject(__out, _lookupTypeInfo("street", "urn:partner.soap.sforce.com","street","http://www.w3.org/2001/XMLSchema","string",1,1,true), street, street__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:partner.soap.sforce.com", "address");
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("[Address ");
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 {
writeFieldCity(__out, __typeMapper);
writeFieldCountry(__out, __typeMapper);
writeFieldCountryCode(__out, __typeMapper);
writeFieldGeocodeAccuracy(__out, __typeMapper);
writeFieldPostalCode(__out, __typeMapper);
writeFieldState(__out, __typeMapper);
writeFieldStateCode(__out, __typeMapper);
writeFieldStreet(__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 {
setCity(__in, __typeMapper);
setCountry(__in, __typeMapper);
setCountryCode(__in, __typeMapper);
setGeocodeAccuracy(__in, __typeMapper);
setPostalCode(__in, __typeMapper);
setState(__in, __typeMapper);
setStateCode(__in, __typeMapper);
setStreet(__in, __typeMapper);
}
private void toString1(StringBuilder sb) {
toStringHelper(sb, "city", city);
toStringHelper(sb, "country", country);
toStringHelper(sb, "countryCode", countryCode);
toStringHelper(sb, "geocodeAccuracy", geocodeAccuracy);
toStringHelper(sb, "postalCode", postalCode);
toStringHelper(sb, "state", state);
toStringHelper(sb, "stateCode", stateCode);
toStringHelper(sb, "street", street);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy