001: /**
002: * ShortZipCode.java
003: *
004: * This file was auto-generated from WSDL
005: * by the Apache Axis WSDL2Java emitter.
006: */package docStyle.zipCodeNW;
007:
008: public class ShortZipCode implements java.io.Serializable {
009: private java.lang.String accessCode;
010: private java.lang.String address;
011: private java.lang.String city;
012: private java.lang.String state;
013:
014: public ShortZipCode() {
015: }
016:
017: public java.lang.String getAccessCode() {
018: return accessCode;
019: }
020:
021: public void setAccessCode(java.lang.String accessCode) {
022: this .accessCode = accessCode;
023: }
024:
025: public java.lang.String getAddress() {
026: return address;
027: }
028:
029: public void setAddress(java.lang.String address) {
030: this .address = address;
031: }
032:
033: public java.lang.String getCity() {
034: return city;
035: }
036:
037: public void setCity(java.lang.String city) {
038: this .city = city;
039: }
040:
041: public java.lang.String getState() {
042: return state;
043: }
044:
045: public void setState(java.lang.String state) {
046: this .state = state;
047: }
048:
049: private java.lang.Object __equalsCalc = null;
050:
051: public synchronized boolean equals(java.lang.Object obj) {
052: if (!(obj instanceof ShortZipCode))
053: return false;
054: ShortZipCode other = (ShortZipCode) obj;
055: if (obj == null)
056: return false;
057: if (this == obj)
058: return true;
059: if (__equalsCalc != null) {
060: return (__equalsCalc == obj);
061: }
062: __equalsCalc = obj;
063: boolean _equals;
064: _equals = true
065: && ((accessCode == null && other.getAccessCode() == null) || (accessCode != null && accessCode
066: .equals(other.getAccessCode())))
067: && ((address == null && other.getAddress() == null) || (address != null && address
068: .equals(other.getAddress())))
069: && ((city == null && other.getCity() == null) || (city != null && city
070: .equals(other.getCity())))
071: && ((state == null && other.getState() == null) || (state != null && state
072: .equals(other.getState())));
073: __equalsCalc = null;
074: return _equals;
075: }
076:
077: private boolean __hashCodeCalc = false;
078:
079: public synchronized int hashCode() {
080: if (__hashCodeCalc) {
081: return 0;
082: }
083: __hashCodeCalc = true;
084: int _hashCode = 1;
085: if (getAccessCode() != null) {
086: _hashCode += getAccessCode().hashCode();
087: }
088: if (getAddress() != null) {
089: _hashCode += getAddress().hashCode();
090: }
091: if (getCity() != null) {
092: _hashCode += getCity().hashCode();
093: }
094: if (getState() != null) {
095: _hashCode += getState().hashCode();
096: }
097: __hashCodeCalc = false;
098: return _hashCode;
099: }
100:
101: // Type metadata
102: private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
103: ShortZipCode.class);
104:
105: static {
106: org.apache.axis.description.FieldDesc field = new org.apache.axis.description.ElementDesc();
107: field.setFieldName("accessCode");
108: field.setXmlName(new javax.xml.namespace.QName(
109: "http://webservices.eraserver.net/", "accessCode"));
110: field.setXmlType(new javax.xml.namespace.QName(
111: "http://www.w3.org/2001/XMLSchema", "string"));
112: typeDesc.addFieldDesc(field);
113: field = new org.apache.axis.description.ElementDesc();
114: field.setFieldName("address");
115: field.setXmlName(new javax.xml.namespace.QName(
116: "http://webservices.eraserver.net/", "address"));
117: field.setXmlType(new javax.xml.namespace.QName(
118: "http://www.w3.org/2001/XMLSchema", "string"));
119: typeDesc.addFieldDesc(field);
120: field = new org.apache.axis.description.ElementDesc();
121: field.setFieldName("city");
122: field.setXmlName(new javax.xml.namespace.QName(
123: "http://webservices.eraserver.net/", "city"));
124: field.setXmlType(new javax.xml.namespace.QName(
125: "http://www.w3.org/2001/XMLSchema", "string"));
126: typeDesc.addFieldDesc(field);
127: field = new org.apache.axis.description.ElementDesc();
128: field.setFieldName("state");
129: field.setXmlName(new javax.xml.namespace.QName(
130: "http://webservices.eraserver.net/", "state"));
131: field.setXmlType(new javax.xml.namespace.QName(
132: "http://www.w3.org/2001/XMLSchema", "string"));
133: typeDesc.addFieldDesc(field);
134: };
135:
136: /**
137: * Return type metadata object
138: */
139: public static org.apache.axis.description.TypeDesc getTypeDesc() {
140: return typeDesc;
141: }
142:
143: /**
144: * Get Custom Serializer
145: */
146: public static org.apache.axis.encoding.Serializer getSerializer(
147: java.lang.String mechType, java.lang.Class _javaType,
148: javax.xml.namespace.QName _xmlType) {
149: return new org.apache.axis.encoding.ser.BeanSerializer(
150: _javaType, _xmlType, typeDesc);
151: }
152:
153: /**
154: * Get Custom Deserializer
155: */
156: public static org.apache.axis.encoding.Deserializer getDeserializer(
157: java.lang.String mechType, java.lang.Class _javaType,
158: javax.xml.namespace.QName _xmlType) {
159: return new org.apache.axis.encoding.ser.BeanDeserializer(
160: _javaType, _xmlType, typeDesc);
161: }
162:
163: }
|