/**
 * DnStatus.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.genesyslab.gis.services.statistic.types;

public class DnStatus  implements java.io.Serializable {
    private com.genesyslab.gis.services.statistic.types.StateDNAction[] dnAction;

    private java.lang.String dnId;

    private java.lang.String status;

    private java.lang.String switchId;

    private long tmStart;

    private java.lang.String type;

    public DnStatus() {
    }

    public DnStatus(
           com.genesyslab.gis.services.statistic.types.StateDNAction[] dnAction,
           java.lang.String dnId,
           java.lang.String status,
           java.lang.String switchId,
           long tmStart,
           java.lang.String type) {
           this.dnAction = dnAction;
           this.dnId = dnId;
           this.status = status;
           this.switchId = switchId;
           this.tmStart = tmStart;
           this.type = type;
    }


    /**
     * Gets the dnAction value for this DnStatus.
     * 
     * @return dnAction
     */
    public com.genesyslab.gis.services.statistic.types.StateDNAction[] getDnAction() {
        return dnAction;
    }


    /**
     * Sets the dnAction value for this DnStatus.
     * 
     * @param dnAction
     */
    public void setDnAction(com.genesyslab.gis.services.statistic.types.StateDNAction[] dnAction) {
        this.dnAction = dnAction;
    }


    /**
     * Gets the dnId value for this DnStatus.
     * 
     * @return dnId
     */
    public java.lang.String getDnId() {
        return dnId;
    }


    /**
     * Sets the dnId value for this DnStatus.
     * 
     * @param dnId
     */
    public void setDnId(java.lang.String dnId) {
        this.dnId = dnId;
    }


    /**
     * Gets the status value for this DnStatus.
     * 
     * @return status
     */
    public java.lang.String getStatus() {
        return status;
    }


    /**
     * Sets the status value for this DnStatus.
     * 
     * @param status
     */
    public void setStatus(java.lang.String status) {
        this.status = status;
    }


    /**
     * Gets the switchId value for this DnStatus.
     * 
     * @return switchId
     */
    public java.lang.String getSwitchId() {
        return switchId;
    }


    /**
     * Sets the switchId value for this DnStatus.
     * 
     * @param switchId
     */
    public void setSwitchId(java.lang.String switchId) {
        this.switchId = switchId;
    }


    /**
     * Gets the tmStart value for this DnStatus.
     * 
     * @return tmStart
     */
    public long getTmStart() {
        return tmStart;
    }


    /**
     * Sets the tmStart value for this DnStatus.
     * 
     * @param tmStart
     */
    public void setTmStart(long tmStart) {
        this.tmStart = tmStart;
    }


    /**
     * Gets the type value for this DnStatus.
     * 
     * @return type
     */
    public java.lang.String getType() {
        return type;
    }


    /**
     * Sets the type value for this DnStatus.
     * 
     * @param type
     */
    public void setType(java.lang.String type) {
        this.type = type;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof DnStatus)) return false;
        DnStatus other = (DnStatus) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((this.dnAction==null && other.getDnAction()==null) || 
             (this.dnAction!=null &&
              java.util.Arrays.equals(this.dnAction, other.getDnAction()))) &&
            ((this.dnId==null && other.getDnId()==null) || 
             (this.dnId!=null &&
              this.dnId.equals(other.getDnId()))) &&
            ((this.status==null && other.getStatus()==null) || 
             (this.status!=null &&
              this.status.equals(other.getStatus()))) &&
            ((this.switchId==null && other.getSwitchId()==null) || 
             (this.switchId!=null &&
              this.switchId.equals(other.getSwitchId()))) &&
            this.tmStart == other.getTmStart() &&
            ((this.type==null && other.getType()==null) || 
             (this.type!=null &&
              this.type.equals(other.getType())));
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = 1;
        if (getDnAction() != null) {
            for (int i=0;
                 i<java.lang.reflect.Array.getLength(getDnAction());
                 i++) {
                java.lang.Object obj = java.lang.reflect.Array.get(getDnAction(), i);
                if (obj != null &&
                    !obj.getClass().isArray()) {
                    _hashCode += obj.hashCode();
                }
            }
        }
        if (getDnId() != null) {
            _hashCode += getDnId().hashCode();
        }
        if (getStatus() != null) {
            _hashCode += getStatus().hashCode();
        }
        if (getSwitchId() != null) {
            _hashCode += getSwitchId().hashCode();
        }
        _hashCode += new Long(getTmStart()).hashCode();
        if (getType() != null) {
            _hashCode += getType().hashCode();
        }
        __hashCodeCalc = false;
        return _hashCode;
    }

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

    static {
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.genesyslab.com/services/statservice/types/2005/10", "dnStatus"));
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("dnAction");
        elemField.setXmlName(new javax.xml.namespace.QName("", "dnAction"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.genesyslab.com/services/statservice/types/2005/10", "stateDNAction"));
        elemField.setNillable(true);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("dnId");
        elemField.setXmlName(new javax.xml.namespace.QName("", "dnId"));
        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("status");
        elemField.setXmlName(new javax.xml.namespace.QName("", "status"));
        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("switchId");
        elemField.setXmlName(new javax.xml.namespace.QName("", "switchId"));
        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("tmStart");
        elemField.setXmlName(new javax.xml.namespace.QName("", "tmStart"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "long"));
        elemField.setNillable(false);
        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", "string"));
        elemField.setNillable(true);
        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);
    }

}
