/**
 * Filter.java
 *
 * 
 * This file is part of Nautica Workflow.
 * 
 *  Nautica Workflow is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 * 
 *  Nautica Workflow is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 * 
 *  You should have received a copy of the GNU General Public License
 *  along with Nautica Workflow; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 *  
 * このファイルはWSDLから自動生成されました / [en]-(This file was auto-generated from WSDL)
 * Apache Axis 1.2RC3 Feb 28, 2005 (10:15:14 EST) WSDL2Java生成器によって / [en]-(by the Apache Axis 1.2RC3 Feb 28, 2005 (10:15:14 EST) WSDL2Java emitter.)
 */

package jp.co.argo21.nautica.workflow.soap.message;

public class Filter  implements java.io.Serializable {
    private int comparison;
    private java.lang.String filterName;
    private java.lang.String filterString;
    private int type;

    public Filter() {
    }

    public Filter(
           int comparison,
           java.lang.String filterName,
           java.lang.String filterString,
           int type) {
           this.comparison = comparison;
           this.filterName = filterName;
           this.filterString = filterString;
           this.type = type;
    }


    /**
     * Gets the comparison value for this Filter.
     * 
     * @return comparison
     */
    public int getComparison() {
        return comparison;
    }


    /**
     * Sets the comparison value for this Filter.
     * 
     * @param comparison
     */
    public void setComparison(int comparison) {
        this.comparison = comparison;
    }


    /**
     * Gets the filterName value for this Filter.
     * 
     * @return filterName
     */
    public java.lang.String getFilterName() {
        return filterName;
    }


    /**
     * Sets the filterName value for this Filter.
     * 
     * @param filterName
     */
    public void setFilterName(java.lang.String filterName) {
        this.filterName = filterName;
    }


    /**
     * Gets the filterString value for this Filter.
     * 
     * @return filterString
     */
    public java.lang.String getFilterString() {
        return filterString;
    }


    /**
     * Sets the filterString value for this Filter.
     * 
     * @param filterString
     */
    public void setFilterString(java.lang.String filterString) {
        this.filterString = filterString;
    }


    /**
     * Gets the type value for this Filter.
     * 
     * @return type
     */
    public int getType() {
        return type;
    }


    /**
     * Sets the type value for this Filter.
     * 
     * @param type
     */
    public void setType(int type) {
        this.type = type;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof Filter)) return false;
        Filter other = (Filter) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            this.comparison == other.getComparison() &&
            ((this.filterName==null && other.getFilterName()==null) || 
             (this.filterName!=null &&
              this.filterName.equals(other.getFilterName()))) &&
            ((this.filterString==null && other.getFilterString()==null) || 
             (this.filterString!=null &&
              this.filterString.equals(other.getFilterString()))) &&
            this.type == other.getType();
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = 1;
        _hashCode += getComparison();
        if (getFilterName() != null) {
            _hashCode += getFilterName().hashCode();
        }
        if (getFilterString() != null) {
            _hashCode += getFilterString().hashCode();
        }
        _hashCode += getType();
        __hashCodeCalc = false;
        return _hashCode;
    }

    // メタデータ型 / [en]-(Type metadata)
    private static org.apache.axis.description.TypeDesc typeDesc =
        new org.apache.axis.description.TypeDesc(Filter.class, true);

    static {
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.argo21.co.jp/nautica/workflow/soap/message", "Filter"));
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("comparison");
        elemField.setXmlName(new javax.xml.namespace.QName("", "comparison"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("filterName");
        elemField.setXmlName(new javax.xml.namespace.QName("", "filterName"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        elemField.setNillable(true);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("filterString");
        elemField.setXmlName(new javax.xml.namespace.QName("", "filterString"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        elemField.setNillable(true);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("type");
        elemField.setXmlName(new javax.xml.namespace.QName("", "type"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
        typeDesc.addFieldDesc(elemField);
    }

    /**
     * メタデータオブジェクトの型を返却 / [en]-(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);
    }

}
