/**
 * AddCalvingCheckInfo.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.izouma.webservice.wsCalving;

public class AddCalvingCheckInfo  implements java.io.Serializable {
    private java.lang.String cowNO;

    private java.util.Calendar calvingDate;

    private boolean isRetention;

    private boolean isAbnormalUterine;

    private boolean isAbnormalIntestinal;

    private boolean isAbnormalBreast;

    public AddCalvingCheckInfo() {
    }

    public AddCalvingCheckInfo(
           java.lang.String cowNO,
           java.util.Calendar calvingDate,
           boolean isRetention,
           boolean isAbnormalUterine,
           boolean isAbnormalIntestinal,
           boolean isAbnormalBreast) {
           this.cowNO = cowNO;
           this.calvingDate = calvingDate;
           this.isRetention = isRetention;
           this.isAbnormalUterine = isAbnormalUterine;
           this.isAbnormalIntestinal = isAbnormalIntestinal;
           this.isAbnormalBreast = isAbnormalBreast;
    }


    /**
     * Gets the cowNO value for this AddCalvingCheckInfo.
     * 
     * @return cowNO
     */
    public java.lang.String getCowNO() {
        return cowNO;
    }


    /**
     * Sets the cowNO value for this AddCalvingCheckInfo.
     * 
     * @param cowNO
     */
    public void setCowNO(java.lang.String cowNO) {
        this.cowNO = cowNO;
    }


    /**
     * Gets the calvingDate value for this AddCalvingCheckInfo.
     * 
     * @return calvingDate
     */
    public java.util.Calendar getCalvingDate() {
        return calvingDate;
    }


    /**
     * Sets the calvingDate value for this AddCalvingCheckInfo.
     * 
     * @param calvingDate
     */
    public void setCalvingDate(java.util.Calendar calvingDate) {
        this.calvingDate = calvingDate;
    }


    /**
     * Gets the isRetention value for this AddCalvingCheckInfo.
     * 
     * @return isRetention
     */
    public boolean isIsRetention() {
        return isRetention;
    }


    /**
     * Sets the isRetention value for this AddCalvingCheckInfo.
     * 
     * @param isRetention
     */
    public void setIsRetention(boolean isRetention) {
        this.isRetention = isRetention;
    }


    /**
     * Gets the isAbnormalUterine value for this AddCalvingCheckInfo.
     * 
     * @return isAbnormalUterine
     */
    public boolean isIsAbnormalUterine() {
        return isAbnormalUterine;
    }


    /**
     * Sets the isAbnormalUterine value for this AddCalvingCheckInfo.
     * 
     * @param isAbnormalUterine
     */
    public void setIsAbnormalUterine(boolean isAbnormalUterine) {
        this.isAbnormalUterine = isAbnormalUterine;
    }


    /**
     * Gets the isAbnormalIntestinal value for this AddCalvingCheckInfo.
     * 
     * @return isAbnormalIntestinal
     */
    public boolean isIsAbnormalIntestinal() {
        return isAbnormalIntestinal;
    }


    /**
     * Sets the isAbnormalIntestinal value for this AddCalvingCheckInfo.
     * 
     * @param isAbnormalIntestinal
     */
    public void setIsAbnormalIntestinal(boolean isAbnormalIntestinal) {
        this.isAbnormalIntestinal = isAbnormalIntestinal;
    }


    /**
     * Gets the isAbnormalBreast value for this AddCalvingCheckInfo.
     * 
     * @return isAbnormalBreast
     */
    public boolean isIsAbnormalBreast() {
        return isAbnormalBreast;
    }


    /**
     * Sets the isAbnormalBreast value for this AddCalvingCheckInfo.
     * 
     * @param isAbnormalBreast
     */
    public void setIsAbnormalBreast(boolean isAbnormalBreast) {
        this.isAbnormalBreast = isAbnormalBreast;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof AddCalvingCheckInfo)) return false;
        AddCalvingCheckInfo other = (AddCalvingCheckInfo) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((this.cowNO==null && other.getCowNO()==null) || 
             (this.cowNO!=null &&
              this.cowNO.equals(other.getCowNO()))) &&
            ((this.calvingDate==null && other.getCalvingDate()==null) || 
             (this.calvingDate!=null &&
              this.calvingDate.equals(other.getCalvingDate()))) &&
            this.isRetention == other.isIsRetention() &&
            this.isAbnormalUterine == other.isIsAbnormalUterine() &&
            this.isAbnormalIntestinal == other.isIsAbnormalIntestinal() &&
            this.isAbnormalBreast == other.isIsAbnormalBreast();
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = 1;
        if (getCowNO() != null) {
            _hashCode += getCowNO().hashCode();
        }
        if (getCalvingDate() != null) {
            _hashCode += getCalvingDate().hashCode();
        }
        _hashCode += (isIsRetention() ? Boolean.TRUE : Boolean.FALSE).hashCode();
        _hashCode += (isIsAbnormalUterine() ? Boolean.TRUE : Boolean.FALSE).hashCode();
        _hashCode += (isIsAbnormalIntestinal() ? Boolean.TRUE : Boolean.FALSE).hashCode();
        _hashCode += (isIsAbnormalBreast() ? Boolean.TRUE : Boolean.FALSE).hashCode();
        __hashCodeCalc = false;
        return _hashCode;
    }

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

    static {
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.brightdairy.com/", ">AddCalvingCheckInfo"));
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("cowNO");
        elemField.setXmlName(new javax.xml.namespace.QName("http://www.brightdairy.com/", "cowNO"));
        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("calvingDate");
        elemField.setXmlName(new javax.xml.namespace.QName("http://www.brightdairy.com/", "calvingDate"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("isRetention");
        elemField.setXmlName(new javax.xml.namespace.QName("http://www.brightdairy.com/", "isRetention"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("isAbnormalUterine");
        elemField.setXmlName(new javax.xml.namespace.QName("http://www.brightdairy.com/", "isAbnormalUterine"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("isAbnormalIntestinal");
        elemField.setXmlName(new javax.xml.namespace.QName("http://www.brightdairy.com/", "isAbnormalIntestinal"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("isAbnormalBreast");
        elemField.setXmlName(new javax.xml.namespace.QName("http://www.brightdairy.com/", "isAbnormalBreast"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
        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);
    }

}
