Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

/**
 * AWBCancelationResponse.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.bluedart.stub;

public class AWBCancelationResponse  implements java.io.Serializable {
    private java.lang.String AWBNo;

    private java.lang.String CCRCRDREF;

    private java.lang.Boolean isError;

    private com.bluedart.stub.ArrayOfWayBillGenerationStatus status;

    public AWBCancelationResponse() {
    }

    public AWBCancelationResponse(
           java.lang.String AWBNo,
           java.lang.String CCRCRDREF,
           java.lang.Boolean isError,
           com.bluedart.stub.ArrayOfWayBillGenerationStatus status) {
           this.AWBNo = AWBNo;
           this.CCRCRDREF = CCRCRDREF;
           this.isError = isError;
           this.status = status;
    }


    /**
     * Gets the AWBNo value for this AWBCancelationResponse.
     * 
     * @return AWBNo
     */
    public java.lang.String getAWBNo() {
        return AWBNo;
    }


    /**
     * Sets the AWBNo value for this AWBCancelationResponse.
     * 
     * @param AWBNo
     */
    public void setAWBNo(java.lang.String AWBNo) {
        this.AWBNo = AWBNo;
    }


    /**
     * Gets the CCRCRDREF value for this AWBCancelationResponse.
     * 
     * @return CCRCRDREF
     */
    public java.lang.String getCCRCRDREF() {
        return CCRCRDREF;
    }


    /**
     * Sets the CCRCRDREF value for this AWBCancelationResponse.
     * 
     * @param CCRCRDREF
     */
    public void setCCRCRDREF(java.lang.String CCRCRDREF) {
        this.CCRCRDREF = CCRCRDREF;
    }


    /**
     * Gets the isError value for this AWBCancelationResponse.
     * 
     * @return isError
     */
    public java.lang.Boolean getIsError() {
        return isError;
    }


    /**
     * Sets the isError value for this AWBCancelationResponse.
     * 
     * @param isError
     */
    public void setIsError(java.lang.Boolean isError) {
        this.isError = isError;
    }


    /**
     * Gets the status value for this AWBCancelationResponse.
     * 
     * @return status
     */
    public com.bluedart.stub.ArrayOfWayBillGenerationStatus getStatus() {
        return status;
    }


    /**
     * Sets the status value for this AWBCancelationResponse.
     * 
     * @param status
     */
    public void setStatus(com.bluedart.stub.ArrayOfWayBillGenerationStatus status) {
        this.status = status;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof AWBCancelationResponse)) return false;
        AWBCancelationResponse other = (AWBCancelationResponse) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && 
            ((this.AWBNo==null && other.getAWBNo()==null) || 
             (this.AWBNo!=null &&
              this.AWBNo.equals(other.getAWBNo()))) &&
            ((this.CCRCRDREF==null && other.getCCRCRDREF()==null) || 
             (this.CCRCRDREF!=null &&
              this.CCRCRDREF.equals(other.getCCRCRDREF()))) &&
            ((this.isError==null && other.getIsError()==null) || 
             (this.isError!=null &&
              this.isError.equals(other.getIsError()))) &&
            ((this.status==null && other.getStatus()==null) || 
             (this.status!=null &&
              this.status.equals(other.getStatus())));
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = 1;
        if (getAWBNo() != null) {
            _hashCode += getAWBNo().hashCode();
        }
        if (getCCRCRDREF() != null) {
            _hashCode += getCCRCRDREF().hashCode();
        }
        if (getIsError() != null) {
            _hashCode += getIsError().hashCode();
        }
        if (getStatus() != null) {
            _hashCode += getStatus().hashCode();
        }
        __hashCodeCalc = false;
        return _hashCode;
    }

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

    static {
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://schemas.datacontract.org/2004/07/SAPI.Entities.WayBillGeneration", "AWBCancelationResponse"));
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("AWBNo");
        elemField.setXmlName(new javax.xml.namespace.QName("http://schemas.datacontract.org/2004/07/SAPI.Entities.WayBillGeneration", "AWBNo"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        elemField.setMinOccurs(0);
        elemField.setNillable(true);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("CCRCRDREF");
        elemField.setXmlName(new javax.xml.namespace.QName("http://schemas.datacontract.org/2004/07/SAPI.Entities.WayBillGeneration", "CCRCRDREF"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        elemField.setMinOccurs(0);
        elemField.setNillable(true);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("isError");
        elemField.setXmlName(new javax.xml.namespace.QName("http://schemas.datacontract.org/2004/07/SAPI.Entities.WayBillGeneration", "IsError"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("status");
        elemField.setXmlName(new javax.xml.namespace.QName("http://schemas.datacontract.org/2004/07/SAPI.Entities.WayBillGeneration", "Status"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.datacontract.org/2004/07/SAPI.Entities.WayBillGeneration", "ArrayOfWayBillGenerationStatus"));
        elemField.setMinOccurs(0);
        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);
    }

}