/**
 * AddEliminatedInfo.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.wsVeterinary;

public class AddEliminatedInfo  implements java.io.Serializable {
    private java.lang.String code;

    private java.lang.String[] cowIDList;

    private boolean isActive;

    private java.lang.String reason;

    private java.lang.String operators;

    public AddEliminatedInfo() {
    }

    public AddEliminatedInfo(
           java.lang.String code,
           java.lang.String[] cowIDList,
           boolean isActive,
           java.lang.String reason,
           java.lang.String operators) {
           this.code = code;
           this.cowIDList = cowIDList;
           this.isActive = isActive;
           this.reason = reason;
           this.operators = operators;
    }


    /**
     * Gets the code value for this AddEliminatedInfo.
     * 
     * @return code
     */
    public java.lang.String getCode() {
        return code;
    }


    /**
     * Sets the code value for this AddEliminatedInfo.
     * 
     * @param code
     */
    public void setCode(java.lang.String code) {
        this.code = code;
    }


    /**
     * Gets the cowIDList value for this AddEliminatedInfo.
     * 
     * @return cowIDList
     */
    public java.lang.String[] getCowIDList() {
        return cowIDList;
    }


    /**
     * Sets the cowIDList value for this AddEliminatedInfo.
     * 
     * @param cowIDList
     */
    public void setCowIDList(java.lang.String[] cowIDList) {
        this.cowIDList = cowIDList;
    }


    /**
     * Gets the isActive value for this AddEliminatedInfo.
     * 
     * @return isActive
     */
    public boolean isIsActive() {
        return isActive;
    }


    /**
     * Sets the isActive value for this AddEliminatedInfo.
     * 
     * @param isActive
     */
    public void setIsActive(boolean isActive) {
        this.isActive = isActive;
    }


    /**
     * Gets the reason value for this AddEliminatedInfo.
     * 
     * @return reason
     */
    public java.lang.String getReason() {
        return reason;
    }


    /**
     * Sets the reason value for this AddEliminatedInfo.
     * 
     * @param reason
     */
    public void setReason(java.lang.String reason) {
        this.reason = reason;
    }


    /**
     * Gets the operators value for this AddEliminatedInfo.
     * 
     * @return operators
     */
    public java.lang.String getOperators() {
        return operators;
    }


    /**
     * Sets the operators value for this AddEliminatedInfo.
     * 
     * @param operators
     */
    public void setOperators(java.lang.String operators) {
        this.operators = operators;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof AddEliminatedInfo)) return false;
        AddEliminatedInfo other = (AddEliminatedInfo) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((this.code==null && other.getCode()==null) || 
             (this.code!=null &&
              this.code.equals(other.getCode()))) &&
            ((this.cowIDList==null && other.getCowIDList()==null) || 
             (this.cowIDList!=null &&
              java.util.Arrays.equals(this.cowIDList, other.getCowIDList()))) &&
            this.isActive == other.isIsActive() &&
            ((this.reason==null && other.getReason()==null) || 
             (this.reason!=null &&
              this.reason.equals(other.getReason()))) &&
            ((this.operators==null && other.getOperators()==null) || 
             (this.operators!=null &&
              this.operators.equals(other.getOperators())));
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = 1;
        if (getCode() != null) {
            _hashCode += getCode().hashCode();
        }
        if (getCowIDList() != null) {
            for (int i=0;
                 i<java.lang.reflect.Array.getLength(getCowIDList());
                 i++) {
                java.lang.Object obj = java.lang.reflect.Array.get(getCowIDList(), i);
                if (obj != null &&
                    !obj.getClass().isArray()) {
                    _hashCode += obj.hashCode();
                }
            }
        }
        _hashCode += (isIsActive() ? Boolean.TRUE : Boolean.FALSE).hashCode();
        if (getReason() != null) {
            _hashCode += getReason().hashCode();
        }
        if (getOperators() != null) {
            _hashCode += getOperators().hashCode();
        }
        __hashCodeCalc = false;
        return _hashCode;
    }

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

    static {
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.brightdairy.com/", ">AddEliminatedInfo"));
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("code");
        elemField.setXmlName(new javax.xml.namespace.QName("http://www.brightdairy.com/", "code"));
        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("cowIDList");
        elemField.setXmlName(new javax.xml.namespace.QName("http://www.brightdairy.com/", "cowIDList"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        elemField.setItemQName(new javax.xml.namespace.QName("http://www.brightdairy.com/", "string"));
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("isActive");
        elemField.setXmlName(new javax.xml.namespace.QName("http://www.brightdairy.com/", "isActive"));
        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("reason");
        elemField.setXmlName(new javax.xml.namespace.QName("http://www.brightdairy.com/", "reason"));
        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("operators");
        elemField.setXmlName(new javax.xml.namespace.QName("http://www.brightdairy.com/", "operators"));
        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);
    }

}
