/**
 * Address.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
 */

package com.style24.core.biz.checkout.base;

public class Address  implements java.io.Serializable, org.apache.axis.encoding.AnyContentType {
    private com.style24.core.biz.checkout.base.AddressType addressType;

    private String baseAddress;

    private String city;

    private String country;

    private String detailedAddress;

    private String name;

    private String state;

    private String tel1;

    private String tel2;

    private String zipCode;

    private Boolean isRoadNameAddress;

    private org.apache.axis.message.MessageElement [] _any;

    public Address() {
    }

    public Address(
           com.style24.core.biz.checkout.base.AddressType addressType,
           String baseAddress,
           String city,
           String country,
           String detailedAddress,
           String name,
           String state,
           String tel1,
           String tel2,
           String zipCode,
           Boolean isRoadNameAddress,
           org.apache.axis.message.MessageElement [] _any) {
           this.addressType = addressType;
           this.baseAddress = baseAddress;
           this.city = city;
           this.country = country;
           this.detailedAddress = detailedAddress;
           this.name = name;
           this.state = state;
           this.tel1 = tel1;
           this.tel2 = tel2;
           this.zipCode = zipCode;
           this.isRoadNameAddress = isRoadNameAddress;
           this._any = _any;
    }


    /**
     * Gets the addressType value for this Address.
     *
     * @return addressType
     */
    public com.style24.core.biz.checkout.base.AddressType getAddressType() {
        return addressType;
    }


    /**
     * Sets the addressType value for this Address.
     *
     * @param addressType
     */
    public void setAddressType(com.style24.core.biz.checkout.base.AddressType addressType) {
        this.addressType = addressType;
    }


    /**
     * Gets the baseAddress value for this Address.
     *
     * @return baseAddress
     */
    public String getBaseAddress() {
        return baseAddress;
    }


    /**
     * Sets the baseAddress value for this Address.
     *
     * @param baseAddress
     */
    public void setBaseAddress(String baseAddress) {
        this.baseAddress = baseAddress;
    }


    /**
     * Gets the city value for this Address.
     *
     * @return city
     */
    public String getCity() {
        return city;
    }


    /**
     * Sets the city value for this Address.
     *
     * @param city
     */
    public void setCity(String city) {
        this.city = city;
    }


    /**
     * Gets the country value for this Address.
     *
     * @return country
     */
    public String getCountry() {
        return country;
    }


    /**
     * Sets the country value for this Address.
     *
     * @param country
     */
    public void setCountry(String country) {
        this.country = country;
    }


    /**
     * Gets the detailedAddress value for this Address.
     *
     * @return detailedAddress
     */
    public String getDetailedAddress() {
        return detailedAddress;
    }


    /**
     * Sets the detailedAddress value for this Address.
     *
     * @param detailedAddress
     */
    public void setDetailedAddress(String detailedAddress) {
        this.detailedAddress = detailedAddress;
    }


    /**
     * Gets the name value for this Address.
     *
     * @return name
     */
    public String getName() {
        return name;
    }


    /**
     * Sets the name value for this Address.
     *
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }


    /**
     * Gets the state value for this Address.
     *
     * @return state
     */
    public String getState() {
        return state;
    }


    /**
     * Sets the state value for this Address.
     *
     * @param state
     */
    public void setState(String state) {
        this.state = state;
    }


    /**
     * Gets the tel1 value for this Address.
     *
     * @return tel1
     */
    public String getTel1() {
        return tel1;
    }


    /**
     * Sets the tel1 value for this Address.
     *
     * @param tel1
     */
    public void setTel1(String tel1) {
        this.tel1 = tel1;
    }


    /**
     * Gets the tel2 value for this Address.
     *
     * @return tel2
     */
    public String getTel2() {
        return tel2;
    }


    /**
     * Sets the tel2 value for this Address.
     *
     * @param tel2
     */
    public void setTel2(String tel2) {
        this.tel2 = tel2;
    }


    /**
     * Gets the zipCode value for this Address.
     *
     * @return zipCode
     */
    public String getZipCode() {
        return zipCode;
    }


    /**
     * Sets the zipCode value for this Address.
     *
     * @param zipCode
     */
    public void setZipCode(String zipCode) {
        this.zipCode = zipCode;
    }


    /**
     * Gets the isRoadNameAddress value for this Address.
     *
     * @return isRoadNameAddress
     */
    public Boolean getIsRoadNameAddress() {
        return isRoadNameAddress;
    }


    /**
     * Sets the isRoadNameAddress value for this Address.
     *
     * @param isRoadNameAddress
     */
    public void setIsRoadNameAddress(Boolean isRoadNameAddress) {
        this.isRoadNameAddress = isRoadNameAddress;
    }


    /**
     * Gets the _any value for this Address.
     *
     * @return _any
     */
    public org.apache.axis.message.MessageElement [] get_any() {
        return _any;
    }


    /**
     * Sets the _any value for this Address.
     *
     * @param _any
     */
    public void set_any(org.apache.axis.message.MessageElement [] _any) {
        this._any = _any;
    }

    private Object __equalsCalc = null;
    public synchronized boolean equals(Object obj) {
        if (!(obj instanceof Address)) return false;
        Address other = (Address) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true &&
            ((this.addressType==null && other.getAddressType()==null) ||
             (this.addressType!=null &&
              this.addressType.equals(other.getAddressType()))) &&
            ((this.baseAddress==null && other.getBaseAddress()==null) ||
             (this.baseAddress!=null &&
              this.baseAddress.equals(other.getBaseAddress()))) &&
            ((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.detailedAddress==null && other.getDetailedAddress()==null) ||
             (this.detailedAddress!=null &&
              this.detailedAddress.equals(other.getDetailedAddress()))) &&
            ((this.name==null && other.getName()==null) ||
             (this.name!=null &&
              this.name.equals(other.getName()))) &&
            ((this.state==null && other.getState()==null) ||
             (this.state!=null &&
              this.state.equals(other.getState()))) &&
            ((this.tel1==null && other.getTel1()==null) ||
             (this.tel1!=null &&
              this.tel1.equals(other.getTel1()))) &&
            ((this.tel2==null && other.getTel2()==null) ||
             (this.tel2!=null &&
              this.tel2.equals(other.getTel2()))) &&
            ((this.zipCode==null && other.getZipCode()==null) ||
             (this.zipCode!=null &&
              this.zipCode.equals(other.getZipCode()))) &&
            ((this.isRoadNameAddress==null && other.getIsRoadNameAddress()==null) ||
             (this.isRoadNameAddress!=null &&
              this.isRoadNameAddress.equals(other.getIsRoadNameAddress()))) &&
            ((this._any==null && other.get_any()==null) ||
             (this._any!=null &&
              java.util.Arrays.equals(this._any, other.get_any())));
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = 1;
        if (getAddressType() != null) {
            _hashCode += getAddressType().hashCode();
        }
        if (getBaseAddress() != null) {
            _hashCode += getBaseAddress().hashCode();
        }
        if (getCity() != null) {
            _hashCode += getCity().hashCode();
        }
        if (getCountry() != null) {
            _hashCode += getCountry().hashCode();
        }
        if (getDetailedAddress() != null) {
            _hashCode += getDetailedAddress().hashCode();
        }
        if (getName() != null) {
            _hashCode += getName().hashCode();
        }
        if (getState() != null) {
            _hashCode += getState().hashCode();
        }
        if (getTel1() != null) {
            _hashCode += getTel1().hashCode();
        }
        if (getTel2() != null) {
            _hashCode += getTel2().hashCode();
        }
        if (getZipCode() != null) {
            _hashCode += getZipCode().hashCode();
        }
        if (getIsRoadNameAddress() != null) {
            _hashCode += getIsRoadNameAddress().hashCode();
        }
        if (get_any() != null) {
            for (int i=0;
                 i<java.lang.reflect.Array.getLength(get_any());
                 i++) {
                Object obj = java.lang.reflect.Array.get(get_any(), i);
                if (obj != null &&
                    !obj.getClass().isArray()) {
                    _hashCode += obj.hashCode();
                }
            }
        }
        __hashCodeCalc = false;
        return _hashCode;
    }

    // Type metadata
    private static org.apache.axis.description.TypeDesc typeDesc =
        new org.apache.axis.description.TypeDesc(Address.class, true);

    static {
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://base.checkout.platform.nhncorp.com/", "address"));
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("addressType");
        elemField.setXmlName(new javax.xml.namespace.QName("http://base.checkout.platform.nhncorp.com/", "AddressType"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://base.checkout.platform.nhncorp.com/", "addressType"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("baseAddress");
        elemField.setXmlName(new javax.xml.namespace.QName("http://base.checkout.platform.nhncorp.com/", "BaseAddress"));
        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://base.checkout.platform.nhncorp.com/", "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("country");
        elemField.setXmlName(new javax.xml.namespace.QName("http://base.checkout.platform.nhncorp.com/", "Country"));
        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("detailedAddress");
        elemField.setXmlName(new javax.xml.namespace.QName("http://base.checkout.platform.nhncorp.com/", "DetailedAddress"));
        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("name");
        elemField.setXmlName(new javax.xml.namespace.QName("http://base.checkout.platform.nhncorp.com/", "Name"));
        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://base.checkout.platform.nhncorp.com/", "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("tel1");
        elemField.setXmlName(new javax.xml.namespace.QName("http://base.checkout.platform.nhncorp.com/", "Tel1"));
        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("tel2");
        elemField.setXmlName(new javax.xml.namespace.QName("http://base.checkout.platform.nhncorp.com/", "Tel2"));
        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("zipCode");
        elemField.setXmlName(new javax.xml.namespace.QName("http://base.checkout.platform.nhncorp.com/", "ZipCode"));
        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("isRoadNameAddress");
        elemField.setXmlName(new javax.xml.namespace.QName("http://base.checkout.platform.nhncorp.com/", "IsRoadNameAddress"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
        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(
           String mechType,
           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(
           String mechType,
           Class _javaType,
           javax.xml.namespace.QName _xmlType) {
        return 
          new  org.apache.axis.encoding.ser.BeanDeserializer(
            _javaType, _xmlType, typeDesc);
    }

}
