/**
 * AddSpareteatInfo.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 AddSpareteatInfo  implements java.io.Serializable {
    private java.lang.String cowID;

    private boolean fl;

    private boolean fr;

    private boolean bl;

    private boolean br;

    private java.lang.String operators;

    public AddSpareteatInfo() {
    }

    public AddSpareteatInfo(
           java.lang.String cowID,
           boolean fl,
           boolean fr,
           boolean bl,
           boolean br,
           java.lang.String operators) {
           this.cowID = cowID;
           this.fl = fl;
           this.fr = fr;
           this.bl = bl;
           this.br = br;
           this.operators = operators;
    }


    /**
     * Gets the cowID value for this AddSpareteatInfo.
     * 
     * @return cowID
     */
    public java.lang.String getCowID() {
        return cowID;
    }


    /**
     * Sets the cowID value for this AddSpareteatInfo.
     * 
     * @param cowID
     */
    public void setCowID(java.lang.String cowID) {
        this.cowID = cowID;
    }


    /**
     * Gets the fl value for this AddSpareteatInfo.
     * 
     * @return fl
     */
    public boolean isFl() {
        return fl;
    }


    /**
     * Sets the fl value for this AddSpareteatInfo.
     * 
     * @param fl
     */
    public void setFl(boolean fl) {
        this.fl = fl;
    }


    /**
     * Gets the fr value for this AddSpareteatInfo.
     * 
     * @return fr
     */
    public boolean isFr() {
        return fr;
    }


    /**
     * Sets the fr value for this AddSpareteatInfo.
     * 
     * @param fr
     */
    public void setFr(boolean fr) {
        this.fr = fr;
    }


    /**
     * Gets the bl value for this AddSpareteatInfo.
     * 
     * @return bl
     */
    public boolean isBl() {
        return bl;
    }


    /**
     * Sets the bl value for this AddSpareteatInfo.
     * 
     * @param bl
     */
    public void setBl(boolean bl) {
        this.bl = bl;
    }


    /**
     * Gets the br value for this AddSpareteatInfo.
     * 
     * @return br
     */
    public boolean isBr() {
        return br;
    }


    /**
     * Sets the br value for this AddSpareteatInfo.
     * 
     * @param br
     */
    public void setBr(boolean br) {
        this.br = br;
    }


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


    /**
     * Sets the operators value for this AddSpareteatInfo.
     * 
     * @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 AddSpareteatInfo)) return false;
        AddSpareteatInfo other = (AddSpareteatInfo) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((this.cowID==null && other.getCowID()==null) || 
             (this.cowID!=null &&
              this.cowID.equals(other.getCowID()))) &&
            this.fl == other.isFl() &&
            this.fr == other.isFr() &&
            this.bl == other.isBl() &&
            this.br == other.isBr() &&
            ((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 (getCowID() != null) {
            _hashCode += getCowID().hashCode();
        }
        _hashCode += (isFl() ? Boolean.TRUE : Boolean.FALSE).hashCode();
        _hashCode += (isFr() ? Boolean.TRUE : Boolean.FALSE).hashCode();
        _hashCode += (isBl() ? Boolean.TRUE : Boolean.FALSE).hashCode();
        _hashCode += (isBr() ? Boolean.TRUE : Boolean.FALSE).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(AddSpareteatInfo.class, true);

    static {
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.brightdairy.com/", ">AddSpareteatInfo"));
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("cowID");
        elemField.setXmlName(new javax.xml.namespace.QName("http://www.brightdairy.com/", "cowID"));
        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("fl");
        elemField.setXmlName(new javax.xml.namespace.QName("http://www.brightdairy.com/", "fl"));
        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("fr");
        elemField.setXmlName(new javax.xml.namespace.QName("http://www.brightdairy.com/", "fr"));
        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("bl");
        elemField.setXmlName(new javax.xml.namespace.QName("http://www.brightdairy.com/", "bl"));
        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("br");
        elemField.setXmlName(new javax.xml.namespace.QName("http://www.brightdairy.com/", "br"));
        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("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);
    }

}
