/**
 * Process.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 Process  implements java.io.Serializable {
    private java.lang.String ID;
    private java.lang.String durationLimit;
    private java.lang.String name;
    private java.lang.String packageID;
    private java.lang.String procDefinitionID;
    private int processState;
    private java.lang.String startDate;
    private java.lang.String starterID;
    private java.lang.String updateDate;

    public Process() {
    }

    public Process(
           java.lang.String ID,
           java.lang.String durationLimit,
           java.lang.String name,
           java.lang.String packageID,
           java.lang.String procDefinitionID,
           int processState,
           java.lang.String startDate,
           java.lang.String starterID,
           java.lang.String updateDate) {
           this.ID = ID;
           this.durationLimit = durationLimit;
           this.name = name;
           this.packageID = packageID;
           this.procDefinitionID = procDefinitionID;
           this.processState = processState;
           this.startDate = startDate;
           this.starterID = starterID;
           this.updateDate = updateDate;
    }


    /**
     * Gets the ID value for this Process.
     * 
     * @return ID
     */
    public java.lang.String getID() {
        return ID;
    }


    /**
     * Sets the ID value for this Process.
     * 
     * @param ID
     */
    public void setID(java.lang.String ID) {
        this.ID = ID;
    }


    /**
     * Gets the durationLimit value for this Process.
     * 
     * @return durationLimit
     */
    public java.lang.String getDurationLimit() {
        return durationLimit;
    }


    /**
     * Sets the durationLimit value for this Process.
     * 
     * @param durationLimit
     */
    public void setDurationLimit(java.lang.String durationLimit) {
        this.durationLimit = durationLimit;
    }


    /**
     * Gets the name value for this Process.
     * 
     * @return name
     */
    public java.lang.String getName() {
        return name;
    }


    /**
     * Sets the name value for this Process.
     * 
     * @param name
     */
    public void setName(java.lang.String name) {
        this.name = name;
    }


    /**
     * Gets the packageID value for this Process.
     * 
     * @return packageID
     */
    public java.lang.String getPackageID() {
        return packageID;
    }


    /**
     * Sets the packageID value for this Process.
     * 
     * @param packageID
     */
    public void setPackageID(java.lang.String packageID) {
        this.packageID = packageID;
    }


    /**
     * Gets the procDefinitionID value for this Process.
     * 
     * @return procDefinitionID
     */
    public java.lang.String getProcDefinitionID() {
        return procDefinitionID;
    }


    /**
     * Sets the procDefinitionID value for this Process.
     * 
     * @param procDefinitionID
     */
    public void setProcDefinitionID(java.lang.String procDefinitionID) {
        this.procDefinitionID = procDefinitionID;
    }


    /**
     * Gets the processState value for this Process.
     * 
     * @return processState
     */
    public int getProcessState() {
        return processState;
    }


    /**
     * Sets the processState value for this Process.
     * 
     * @param processState
     */
    public void setProcessState(int processState) {
        this.processState = processState;
    }


    /**
     * Gets the startDate value for this Process.
     * 
     * @return startDate
     */
    public java.lang.String getStartDate() {
        return startDate;
    }


    /**
     * Sets the startDate value for this Process.
     * 
     * @param startDate
     */
    public void setStartDate(java.lang.String startDate) {
        this.startDate = startDate;
    }


    /**
     * Gets the starterID value for this Process.
     * 
     * @return starterID
     */
    public java.lang.String getStarterID() {
        return starterID;
    }


    /**
     * Sets the starterID value for this Process.
     * 
     * @param starterID
     */
    public void setStarterID(java.lang.String starterID) {
        this.starterID = starterID;
    }


    /**
     * Gets the updateDate value for this Process.
     * 
     * @return updateDate
     */
    public java.lang.String getUpdateDate() {
        return updateDate;
    }


    /**
     * Sets the updateDate value for this Process.
     * 
     * @param updateDate
     */
    public void setUpdateDate(java.lang.String updateDate) {
        this.updateDate = updateDate;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof Process)) return false;
        Process other = (Process) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((this.ID==null && other.getID()==null) || 
             (this.ID!=null &&
              this.ID.equals(other.getID()))) &&
            ((this.durationLimit==null && other.getDurationLimit()==null) || 
             (this.durationLimit!=null &&
              this.durationLimit.equals(other.getDurationLimit()))) &&
            ((this.name==null && other.getName()==null) || 
             (this.name!=null &&
              this.name.equals(other.getName()))) &&
            ((this.packageID==null && other.getPackageID()==null) || 
             (this.packageID!=null &&
              this.packageID.equals(other.getPackageID()))) &&
            ((this.procDefinitionID==null && other.getProcDefinitionID()==null) || 
             (this.procDefinitionID!=null &&
              this.procDefinitionID.equals(other.getProcDefinitionID()))) &&
            this.processState == other.getProcessState() &&
            ((this.startDate==null && other.getStartDate()==null) || 
             (this.startDate!=null &&
              this.startDate.equals(other.getStartDate()))) &&
            ((this.starterID==null && other.getStarterID()==null) || 
             (this.starterID!=null &&
              this.starterID.equals(other.getStarterID()))) &&
            ((this.updateDate==null && other.getUpdateDate()==null) || 
             (this.updateDate!=null &&
              this.updateDate.equals(other.getUpdateDate())));
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = 1;
        if (getID() != null) {
            _hashCode += getID().hashCode();
        }
        if (getDurationLimit() != null) {
            _hashCode += getDurationLimit().hashCode();
        }
        if (getName() != null) {
            _hashCode += getName().hashCode();
        }
        if (getPackageID() != null) {
            _hashCode += getPackageID().hashCode();
        }
        if (getProcDefinitionID() != null) {
            _hashCode += getProcDefinitionID().hashCode();
        }
        _hashCode += getProcessState();
        if (getStartDate() != null) {
            _hashCode += getStartDate().hashCode();
        }
        if (getStarterID() != null) {
            _hashCode += getStarterID().hashCode();
        }
        if (getUpdateDate() != null) {
            _hashCode += getUpdateDate().hashCode();
        }
        __hashCodeCalc = false;
        return _hashCode;
    }

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

    static {
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.argo21.co.jp/nautica/workflow/soap/message", "Process"));
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("ID");
        elemField.setXmlName(new javax.xml.namespace.QName("", "ID"));
        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("durationLimit");
        elemField.setXmlName(new javax.xml.namespace.QName("", "durationLimit"));
        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("name");
        elemField.setXmlName(new javax.xml.namespace.QName("", "name"));
        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("packageID");
        elemField.setXmlName(new javax.xml.namespace.QName("", "packageID"));
        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("procDefinitionID");
        elemField.setXmlName(new javax.xml.namespace.QName("", "procDefinitionID"));
        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("processState");
        elemField.setXmlName(new javax.xml.namespace.QName("", "processState"));
        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("startDate");
        elemField.setXmlName(new javax.xml.namespace.QName("", "startDate"));
        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("starterID");
        elemField.setXmlName(new javax.xml.namespace.QName("", "starterID"));
        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("updateDate");
        elemField.setXmlName(new javax.xml.namespace.QName("", "updateDate"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        elemField.setNillable(true);
        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);
    }

}
