/**
 * Country.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.adsionline.ADSIShippingWS;

public class Country  implements java.io.Serializable {
    private java.lang.String friendlyName;

    private java.lang.String ISO2;

    private java.lang.String ISO3;

    private java.lang.String ISO3Number;

    private java.lang.String IATA;

    public Country() {
    }

    public Country(
           java.lang.String friendlyName,
           java.lang.String ISO2,
           java.lang.String ISO3,
           java.lang.String ISO3Number,
           java.lang.String IATA) {
           this.friendlyName = friendlyName;
           this.ISO2 = ISO2;
           this.ISO3 = ISO3;
           this.ISO3Number = ISO3Number;
           this.IATA = IATA;
    }


    /**
     * Gets the friendlyName value for this Country.
     * 
     * @return friendlyName
     */
    public java.lang.String getFriendlyName() {
        return friendlyName;
    }


    /**
     * Sets the friendlyName value for this Country.
     * 
     * @param friendlyName
     */
    public void setFriendlyName(java.lang.String friendlyName) {
        this.friendlyName = friendlyName;
    }


    /**
     * Gets the ISO2 value for this Country.
     * 
     * @return ISO2
     */
    public java.lang.String getISO2() {
        return ISO2;
    }


    /**
     * Sets the ISO2 value for this Country.
     * 
     * @param ISO2
     */
    public void setISO2(java.lang.String ISO2) {
        this.ISO2 = ISO2;
    }


    /**
     * Gets the ISO3 value for this Country.
     * 
     * @return ISO3
     */
    public java.lang.String getISO3() {
        return ISO3;
    }


    /**
     * Sets the ISO3 value for this Country.
     * 
     * @param ISO3
     */
    public void setISO3(java.lang.String ISO3) {
        this.ISO3 = ISO3;
    }


    /**
     * Gets the ISO3Number value for this Country.
     * 
     * @return ISO3Number
     */
    public java.lang.String getISO3Number() {
        return ISO3Number;
    }


    /**
     * Sets the ISO3Number value for this Country.
     * 
     * @param ISO3Number
     */
    public void setISO3Number(java.lang.String ISO3Number) {
        this.ISO3Number = ISO3Number;
    }


    /**
     * Gets the IATA value for this Country.
     * 
     * @return IATA
     */
    public java.lang.String getIATA() {
        return IATA;
    }


    /**
     * Sets the IATA value for this Country.
     * 
     * @param IATA
     */
    public void setIATA(java.lang.String IATA) {
        this.IATA = IATA;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof Country)) return false;
        Country other = (Country) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((this.friendlyName==null && other.getFriendlyName()==null) || 
             (this.friendlyName!=null &&
              this.friendlyName.equals(other.getFriendlyName()))) &&
            ((this.ISO2==null && other.getISO2()==null) || 
             (this.ISO2!=null &&
              this.ISO2.equals(other.getISO2()))) &&
            ((this.ISO3==null && other.getISO3()==null) || 
             (this.ISO3!=null &&
              this.ISO3.equals(other.getISO3()))) &&
            ((this.ISO3Number==null && other.getISO3Number()==null) || 
             (this.ISO3Number!=null &&
              this.ISO3Number.equals(other.getISO3Number()))) &&
            ((this.IATA==null && other.getIATA()==null) || 
             (this.IATA!=null &&
              this.IATA.equals(other.getIATA())));
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = 1;
        if (getFriendlyName() != null) {
            _hashCode += getFriendlyName().hashCode();
        }
        if (getISO2() != null) {
            _hashCode += getISO2().hashCode();
        }
        if (getISO3() != null) {
            _hashCode += getISO3().hashCode();
        }
        if (getISO3Number() != null) {
            _hashCode += getISO3Number().hashCode();
        }
        if (getIATA() != null) {
            _hashCode += getIATA().hashCode();
        }
        __hashCodeCalc = false;
        return _hashCode;
    }

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

    static {
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://adsionline.com/ADSIShippingWS/", "Country"));
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("friendlyName");
        elemField.setXmlName(new javax.xml.namespace.QName("http://adsionline.com/ADSIShippingWS/", "FriendlyName"));
        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("ISO2");
        elemField.setXmlName(new javax.xml.namespace.QName("http://adsionline.com/ADSIShippingWS/", "ISO2"));
        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("ISO3");
        elemField.setXmlName(new javax.xml.namespace.QName("http://adsionline.com/ADSIShippingWS/", "ISO3"));
        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("ISO3Number");
        elemField.setXmlName(new javax.xml.namespace.QName("http://adsionline.com/ADSIShippingWS/", "ISO3Number"));
        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("IATA");
        elemField.setXmlName(new javax.xml.namespace.QName("http://adsionline.com/ADSIShippingWS/", "IATA"));
        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);
    }

}
