/*
Copyright (C) DocuSign, Inc. All rights reserved.
This source code is intended only as a supplement to DocuSign SDK and/or on-line documentation.
This sample is designed to demonstrate DocuSign features and is not intended for production use.
Code and policy for a production application must be developed to meet the specific data and
security requirements of the application.
THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR
FITNESS FOR A PARTICULAR PURPOSE.
*/
/**
* AddressInformation.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package net.docusign.www.API._3_0;
public class AddressInformation implements java.io.Serializable {
private java.lang.String street1;
private java.lang.String street2;
private java.lang.String city;
private java.lang.String state;
private java.lang.String zip;
private java.lang.String zipPlus4;
public AddressInformation() {
}
public AddressInformation(
java.lang.String street1,
java.lang.String street2,
java.lang.String city,
java.lang.String state,
java.lang.String zip,
java.lang.String zipPlus4) {
this.street1 = street1;
this.street2 = street2;
this.city = city;
this.state = state;
this.zip = zip;
this.zipPlus4 = zipPlus4;
}
/**
* Gets the street1 value for this AddressInformation.
*
* @return street1
*/
public java.lang.String getStreet1() {
return street1;
}
/**
* Sets the street1 value for this AddressInformation.
*
* @param street1
*/
public void setStreet1(java.lang.String street1) {
this.street1 = street1;
}
/**
* Gets the street2 value for this AddressInformation.
*
* @return street2
*/
public java.lang.String getStreet2() {
return street2;
}
/**
* Sets the street2 value for this AddressInformation.
*
* @param street2
*/
public void setStreet2(java.lang.String street2) {
this.street2 = street2;
}
/**
* Gets the city value for this AddressInformation.
*
* @return city
*/
public java.lang.String getCity() {
return city;
}
/**
* Sets the city value for this AddressInformation.
*
* @param city
*/
public void setCity(java.lang.String city) {
this.city = city;
}
/**
* Gets the state value for this AddressInformation.
*
* @return state
*/
public java.lang.String getState() {
return state;
}
/**
* Sets the state value for this AddressInformation.
*
* @param state
*/
public void setState(java.lang.String state) {
this.state = state;
}
/**
* Gets the zip value for this AddressInformation.
*
* @return zip
*/
public java.lang.String getZip() {
return zip;
}
/**
* Sets the zip value for this AddressInformation.
*
* @param zip
*/
public void setZip(java.lang.String zip) {
this.zip = zip;
}
/**
* Gets the zipPlus4 value for this AddressInformation.
*
* @return zipPlus4
*/
public java.lang.String getZipPlus4() {
return zipPlus4;
}
/**
* Sets the zipPlus4 value for this AddressInformation.
*
* @param zipPlus4
*/
public void setZipPlus4(java.lang.String zipPlus4) {
this.zipPlus4 = zipPlus4;
}
private java.lang.Object __equalsCalc = null;
public synchronized boolean equals(java.lang.Object obj) {
if (!(obj instanceof AddressInformation)) return false;
AddressInformation other = (AddressInformation) obj;
if (obj == null) return false;
if (this == obj) return true;
if (__equalsCalc != null) {
return (__equalsCalc == obj);
}
__equalsCalc = obj;
boolean _equals;
_equals = true &&
((this.street1==null && other.getStreet1()==null) ||
(this.street1!=null &&
this.street1.equals(other.getStreet1()))) &&
((this.street2==null && other.getStreet2()==null) ||
(this.street2!=null &&
this.street2.equals(other.getStreet2()))) &&
((this.city==null && other.getCity()==null) ||
(this.city!=null &&
this.city.equals(other.getCity()))) &&
((this.state==null && other.getState()==null) ||
(this.state!=null &&
this.state.equals(other.getState()))) &&
((this.zip==null && other.getZip()==null) ||
(this.zip!=null &&
this.zip.equals(other.getZip()))) &&
((this.zipPlus4==null && other.getZipPlus4()==null) ||
(this.zipPlus4!=null &&
this.zipPlus4.equals(other.getZipPlus4())));
__equalsCalc = null;
return _equals;
}
private boolean __hashCodeCalc = false;
public synchronized int hashCode() {
if (__hashCodeCalc) {
return 0;
}
__hashCodeCalc = true;
int _hashCode = 1;
if (getStreet1() != null) {
_hashCode += getStreet1().hashCode();
}
if (getStreet2() != null) {
_hashCode += getStreet2().hashCode();
}
if (getCity() != null) {
_hashCode += getCity().hashCode();
}
if (getState() != null) {
_hashCode += getState().hashCode();
}
if (getZip() != null) {
_hashCode += getZip().hashCode();
}
if (getZipPlus4() != null) {
_hashCode += getZipPlus4().hashCode();
}
__hashCodeCalc = false;
return _hashCode;
}
// Type metadata
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(AddressInformation.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.docusign.net/API/3.0", "AddressInformation"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("street1");
elemField.setXmlName(new javax.xml.namespace.QName("http://www.docusign.net/API/3.0", "Street1"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("street2");
elemField.setXmlName(new javax.xml.namespace.QName("http://www.docusign.net/API/3.0", "Street2"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("city");
elemField.setXmlName(new javax.xml.namespace.QName("http://www.docusign.net/API/3.0", "City"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("state");
elemField.setXmlName(new javax.xml.namespace.QName("http://www.docusign.net/API/3.0", "State"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("zip");
elemField.setXmlName(new javax.xml.namespace.QName("http://www.docusign.net/API/3.0", "Zip"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("zipPlus4");
elemField.setXmlName(new javax.xml.namespace.QName("http://www.docusign.net/API/3.0", "ZipPlus4"));
elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
elemField.setMinOccurs(0);
elemField.setNillable(false);
typeDesc.addFieldDesc(elemField);
}
/**
* Return type metadata object
*/
public static org.apache.axis.description.TypeDesc getTypeDesc() {
return typeDesc;
}
/**
* Get Custom Serializer
*/
public static org.apache.axis.encoding.Serializer getSerializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanSerializer(
_javaType, _xmlType, typeDesc);
}
/**
* Get Custom Deserializer
*/
public static org.apache.axis.encoding.Deserializer getDeserializer(
java.lang.String mechType,
java.lang.Class _javaType,
javax.xml.namespace.QName _xmlType) {
return
new org.apache.axis.encoding.ser.BeanDeserializer(
_javaType, _xmlType, typeDesc);
}
}