/**
 * Activity.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 Activity  implements java.io.Serializable {
    private java.lang.String activityDefinitionID;
    private java.lang.String activityID;
    private int activityState;
    private java.lang.String actorID;
    private java.lang.String blockID;
    private java.lang.String durationLimit;
    private java.lang.String name;
    private java.lang.String processID;
    private java.lang.String startDate;
    private java.lang.String starterID;
    private java.lang.String updateDate;

    public Activity() {
    }

    public Activity(
           java.lang.String activityDefinitionID,
           java.lang.String activityID,
           int activityState,
           java.lang.String actorID,
           java.lang.String blockID,
           java.lang.String durationLimit,
           java.lang.String name,
           java.lang.String processID,
           java.lang.String startDate,
           java.lang.String starterID,
           java.lang.String updateDate) {
           this.activityDefinitionID = activityDefinitionID;
           this.activityID = activityID;
           this.activityState = activityState;
           this.actorID = actorID;
           this.blockID = blockID;
           this.durationLimit = durationLimit;
           this.name = name;
           this.processID = processID;
           this.startDate = startDate;
           this.starterID = starterID;
           this.updateDate = updateDate;
    }


    /**
     * Gets the activityDefinitionID value for this Activity.
     * 
     * @return activityDefinitionID
     */
    public java.lang.String getActivityDefinitionID() {
        return activityDefinitionID;
    }


    /**
     * Sets the activityDefinitionID value for this Activity.
     * 
     * @param activityDefinitionID
     */
    public void setActivityDefinitionID(java.lang.String activityDefinitionID) {
        this.activityDefinitionID = activityDefinitionID;
    }


    /**
     * Gets the activityID value for this Activity.
     * 
     * @return activityID
     */
    public java.lang.String getActivityID() {
        return activityID;
    }


    /**
     * Sets the activityID value for this Activity.
     * 
     * @param activityID
     */
    public void setActivityID(java.lang.String activityID) {
        this.activityID = activityID;
    }


    /**
     * Gets the activityState value for this Activity.
     * 
     * @return activityState
     */
    public int getActivityState() {
        return activityState;
    }


    /**
     * Sets the activityState value for this Activity.
     * 
     * @param activityState
     */
    public void setActivityState(int activityState) {
        this.activityState = activityState;
    }


    /**
     * Gets the actorID value for this Activity.
     * 
     * @return actorID
     */
    public java.lang.String getActorID() {
        return actorID;
    }


    /**
     * Sets the actorID value for this Activity.
     * 
     * @param actorID
     */
    public void setActorID(java.lang.String actorID) {
        this.actorID = actorID;
    }


    /**
     * Gets the blockID value for this Activity.
     * 
     * @return blockID
     */
    public java.lang.String getBlockID() {
        return blockID;
    }


    /**
     * Sets the blockID value for this Activity.
     * 
     * @param blockID
     */
    public void setBlockID(java.lang.String blockID) {
        this.blockID = blockID;
    }


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


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


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


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


    /**
     * Gets the processID value for this Activity.
     * 
     * @return processID
     */
    public java.lang.String getProcessID() {
        return processID;
    }


    /**
     * Sets the processID value for this Activity.
     * 
     * @param processID
     */
    public void setProcessID(java.lang.String processID) {
        this.processID = processID;
    }


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


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


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


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


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


    /**
     * Sets the updateDate value for this Activity.
     * 
     * @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 Activity)) return false;
        Activity other = (Activity) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((this.activityDefinitionID==null && other.getActivityDefinitionID()==null) || 
             (this.activityDefinitionID!=null &&
              this.activityDefinitionID.equals(other.getActivityDefinitionID()))) &&
            ((this.activityID==null && other.getActivityID()==null) || 
             (this.activityID!=null &&
              this.activityID.equals(other.getActivityID()))) &&
            this.activityState == other.getActivityState() &&
            ((this.actorID==null && other.getActorID()==null) || 
             (this.actorID!=null &&
              this.actorID.equals(other.getActorID()))) &&
            ((this.blockID==null && other.getBlockID()==null) || 
             (this.blockID!=null &&
              this.blockID.equals(other.getBlockID()))) &&
            ((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.processID==null && other.getProcessID()==null) || 
             (this.processID!=null &&
              this.processID.equals(other.getProcessID()))) &&
            ((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 (getActivityDefinitionID() != null) {
            _hashCode += getActivityDefinitionID().hashCode();
        }
        if (getActivityID() != null) {
            _hashCode += getActivityID().hashCode();
        }
        _hashCode += getActivityState();
        if (getActorID() != null) {
            _hashCode += getActorID().hashCode();
        }
        if (getBlockID() != null) {
            _hashCode += getBlockID().hashCode();
        }
        if (getDurationLimit() != null) {
            _hashCode += getDurationLimit().hashCode();
        }
        if (getName() != null) {
            _hashCode += getName().hashCode();
        }
        if (getProcessID() != null) {
            _hashCode += getProcessID().hashCode();
        }
        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(Activity.class, true);

    static {
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.argo21.co.jp/nautica/workflow/soap/message", "Activity"));
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("activityDefinitionID");
        elemField.setXmlName(new javax.xml.namespace.QName("", "activityDefinitionID"));
        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("activityID");
        elemField.setXmlName(new javax.xml.namespace.QName("", "activityID"));
        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("activityState");
        elemField.setXmlName(new javax.xml.namespace.QName("", "activityState"));
        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("actorID");
        elemField.setXmlName(new javax.xml.namespace.QName("", "actorID"));
        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("blockID");
        elemField.setXmlName(new javax.xml.namespace.QName("", "blockID"));
        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("processID");
        elemField.setXmlName(new javax.xml.namespace.QName("", "processID"));
        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("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);
    }

}
