/** * AddressInfo.java * * This file was auto-generated from WSDL * by the Apache Axis 1.3 Oct 05, 2005 (05:23:37 EDT) WSDL2Java emitter. */ package is.idega.idegaweb.member.isi.block.accounting.webservice.general.client; public class AddressInfo implements java.io.Serializable { private java.lang.String city; private java.lang.String country; private java.lang.String postalcode; private java.lang.String streetName; private java.lang.String streetNumber; public AddressInfo() { } public AddressInfo( java.lang.String city, java.lang.String country, java.lang.String postalcode, java.lang.String streetName, java.lang.String streetNumber) { this.city = city; this.country = country; this.postalcode = postalcode; this.streetName = streetName; this.streetNumber = streetNumber; } /** * Gets the city value for this AddressInfo. * * @return city */ public java.lang.String getCity() { return this.city; } /** * Sets the city value for this AddressInfo. * * @param city */ public void setCity(java.lang.String city) { this.city = city; } /** * Gets the country value for this AddressInfo. * * @return country */ public java.lang.String getCountry() { return this.country; } /** * Sets the country value for this AddressInfo. * * @param country */ public void setCountry(java.lang.String country) { this.country = country; } /** * Gets the postalcode value for this AddressInfo. * * @return postalcode */ public java.lang.String getPostalcode() { return this.postalcode; } /** * Sets the postalcode value for this AddressInfo. * * @param postalcode */ public void setPostalcode(java.lang.String postalcode) { this.postalcode = postalcode; } /** * Gets the streetName value for this AddressInfo. * * @return streetName */ public java.lang.String getStreetName() { return this.streetName; } /** * Sets the streetName value for this AddressInfo. * * @param streetName */ public void setStreetName(java.lang.String streetName) { this.streetName = streetName; } /** * Gets the streetNumber value for this AddressInfo. * * @return streetNumber */ public java.lang.String getStreetNumber() { return this.streetNumber; } /** * Sets the streetNumber value for this AddressInfo. * * @param streetNumber */ public void setStreetNumber(java.lang.String streetNumber) { this.streetNumber = streetNumber; } private java.lang.Object __equalsCalc = null; public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof AddressInfo)) { return false; } AddressInfo other = (AddressInfo) obj; if (obj == null) { return false; } if (this == obj) { return true; } if (this.__equalsCalc != null) { return (this.__equalsCalc == obj); } this.__equalsCalc = obj; boolean _equals; _equals = true && ((this.city==null && other.getCity()==null) || (this.city!=null && this.city.equals(other.getCity()))) && ((this.country==null && other.getCountry()==null) || (this.country!=null && this.country.equals(other.getCountry()))) && ((this.postalcode==null && other.getPostalcode()==null) || (this.postalcode!=null && this.postalcode.equals(other.getPostalcode()))) && ((this.streetName==null && other.getStreetName()==null) || (this.streetName!=null && this.streetName.equals(other.getStreetName()))) && ((this.streetNumber==null && other.getStreetNumber()==null) || (this.streetNumber!=null && this.streetNumber.equals(other.getStreetNumber()))); this.__equalsCalc = null; return _equals; } private boolean __hashCodeCalc = false; public synchronized int hashCode() { if (this.__hashCodeCalc) { return 0; } this.__hashCodeCalc = true; int _hashCode = 1; if (getCity() != null) { _hashCode += getCity().hashCode(); } if (getCountry() != null) { _hashCode += getCountry().hashCode(); } if (getPostalcode() != null) { _hashCode += getPostalcode().hashCode(); } if (getStreetName() != null) { _hashCode += getStreetName().hashCode(); } if (getStreetNumber() != null) { _hashCode += getStreetNumber().hashCode(); } this.__hashCodeCalc = false; return _hashCode; } // Type metadata private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(AddressInfo.class, true); static { typeDesc.setXmlType(new javax.xml.namespace.QName("urn:accounting", "AddressInfo")); org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("city"); elemField.setXmlName(new javax.xml.namespace.QName("", "city")); elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string")); elemField.setNillable(true); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("country"); elemField.setXmlName(new javax.xml.namespace.QName("", "country")); elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string")); elemField.setNillable(true); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("postalcode"); elemField.setXmlName(new javax.xml.namespace.QName("", "postalcode")); elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string")); elemField.setNillable(true); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("streetName"); elemField.setXmlName(new javax.xml.namespace.QName("", "streetName")); elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string")); elemField.setNillable(true); typeDesc.addFieldDesc(elemField); elemField = new org.apache.axis.description.ElementDesc(); elemField.setFieldName("streetNumber"); elemField.setXmlName(new javax.xml.namespace.QName("", "streetNumber")); elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/", "string")); elemField.setNillable(true); 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); } }