Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

/**
 * WayBillGenerationResponse.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 WayBillGenerationResponse  implements java.io.Serializable {
    private java.lang.String AWBNo;

    private byte[] AWBPrintContent;

    private java.lang.String CCRCRDREF;

    private java.lang.String destinationArea;

    private java.lang.String destinationLocation;

    private java.lang.Boolean isError;

    private java.util.Calendar shipmentPickupDate;

    private com.bluedart.stub.ArrayOfWayBillGenerationStatus status;

    private java.lang.String tokenNumber;

    public WayBillGenerationResponse() {
    }

    public WayBillGenerationResponse(
           java.lang.String AWBNo,
           byte[] AWBPrintContent,
           java.lang.String CCRCRDREF,
           java.lang.String destinationArea,
           java.lang.String destinationLocation,
           java.lang.Boolean isError,
           java.util.Calendar shipmentPickupDate,
           com.bluedart.stub.ArrayOfWayBillGenerationStatus status,
           java.lang.String tokenNumber) {
           this.AWBNo = AWBNo;
           this.AWBPrintContent = AWBPrintContent;
           this.CCRCRDREF = CCRCRDREF;
           this.destinationArea = destinationArea;
           this.destinationLocation = destinationLocation;
           this.isError = isError;
           this.shipmentPickupDate = shipmentPickupDate;
           this.status = status;
           this.tokenNumber = tokenNumber;
    }


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


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


    /**
     * Gets the AWBPrintContent value for this WayBillGenerationResponse.
     * 
     * @return AWBPrintContent
     */
    public byte[] getAWBPrintContent() {
        return AWBPrintContent;
    }


    /**
     * Sets the AWBPrintContent value for this WayBillGenerationResponse.
     * 
     * @param AWBPrintContent
     */
    public void setAWBPrintContent(byte[] AWBPrintContent) {
        this.AWBPrintContent = AWBPrintContent;
    }


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


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


    /**
     * Gets the destinationArea value for this WayBillGenerationResponse.
     * 
     * @return destinationArea
     */
    public java.lang.String getDestinationArea() {
        return destinationArea;
    }


    /**
     * Sets the destinationArea value for this WayBillGenerationResponse.
     * 
     * @param destinationArea
     */
    public void setDestinationArea(java.lang.String destinationArea) {
        this.destinationArea = destinationArea;
    }


    /**
     * Gets the destinationLocation value for this WayBillGenerationResponse.
     * 
     * @return destinationLocation
     */
    public java.lang.String getDestinationLocation() {
        return destinationLocation;
    }


    /**
     * Sets the destinationLocation value for this WayBillGenerationResponse.
     * 
     * @param destinationLocation
     */
    public void setDestinationLocation(java.lang.String destinationLocation) {
        this.destinationLocation = destinationLocation;
    }


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


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


    /**
     * Gets the shipmentPickupDate value for this WayBillGenerationResponse.
     * 
     * @return shipmentPickupDate
     */
    public java.util.Calendar getShipmentPickupDate() {
        return shipmentPickupDate;
    }


    /**
     * Sets the shipmentPickupDate value for this WayBillGenerationResponse.
     * 
     * @param shipmentPickupDate
     */
    public void setShipmentPickupDate(java.util.Calendar shipmentPickupDate) {
        this.shipmentPickupDate = shipmentPickupDate;
    }


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


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


    /**
     * Gets the tokenNumber value for this WayBillGenerationResponse.
     * 
     * @return tokenNumber
     */
    public java.lang.String getTokenNumber() {
        return tokenNumber;
    }


    /**
     * Sets the tokenNumber value for this WayBillGenerationResponse.
     * 
     * @param tokenNumber
     */
    public void setTokenNumber(java.lang.String tokenNumber) {
        this.tokenNumber = tokenNumber;
    }

    private java.lang.Object __equalsCalc = null;
    public synchronized boolean equals(java.lang.Object obj) {
        if (!(obj instanceof WayBillGenerationResponse)) return false;
        WayBillGenerationResponse other = (WayBillGenerationResponse) 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.AWBPrintContent==null && other.getAWBPrintContent()==null) || 
             (this.AWBPrintContent!=null &&
              java.util.Arrays.equals(this.AWBPrintContent, other.getAWBPrintContent()))) &&
            ((this.CCRCRDREF==null && other.getCCRCRDREF()==null) || 
             (this.CCRCRDREF!=null &&
              this.CCRCRDREF.equals(other.getCCRCRDREF()))) &&
            ((this.destinationArea==null && other.getDestinationArea()==null) || 
             (this.destinationArea!=null &&
              this.destinationArea.equals(other.getDestinationArea()))) &&
            ((this.destinationLocation==null && other.getDestinationLocation()==null) || 
             (this.destinationLocation!=null &&
              this.destinationLocation.equals(other.getDestinationLocation()))) &&
            ((this.isError==null && other.getIsError()==null) || 
             (this.isError!=null &&
              this.isError.equals(other.getIsError()))) &&
            ((this.shipmentPickupDate==null && other.getShipmentPickupDate()==null) || 
             (this.shipmentPickupDate!=null &&
              this.shipmentPickupDate.equals(other.getShipmentPickupDate()))) &&
            ((this.status==null && other.getStatus()==null) || 
             (this.status!=null &&
              this.status.equals(other.getStatus()))) &&
            ((this.tokenNumber==null && other.getTokenNumber()==null) || 
             (this.tokenNumber!=null &&
              this.tokenNumber.equals(other.getTokenNumber())));
        __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 (getAWBPrintContent() != null) {
            for (int i=0;
                 i<java.lang.reflect.Array.getLength(getAWBPrintContent());
                 i++) {
                java.lang.Object obj = java.lang.reflect.Array.get(getAWBPrintContent(), i);
                if (obj != null &&
                    !obj.getClass().isArray()) {
                    _hashCode += obj.hashCode();
                }
            }
        }
        if (getCCRCRDREF() != null) {
            _hashCode += getCCRCRDREF().hashCode();
        }
        if (getDestinationArea() != null) {
            _hashCode += getDestinationArea().hashCode();
        }
        if (getDestinationLocation() != null) {
            _hashCode += getDestinationLocation().hashCode();
        }
        if (getIsError() != null) {
            _hashCode += getIsError().hashCode();
        }
        if (getShipmentPickupDate() != null) {
            _hashCode += getShipmentPickupDate().hashCode();
        }
        if (getStatus() != null) {
            _hashCode += getStatus().hashCode();
        }
        if (getTokenNumber() != null) {
            _hashCode += getTokenNumber().hashCode();
        }
        __hashCodeCalc = false;
        return _hashCode;
    }

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

    static {
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://schemas.datacontract.org/2004/07/SAPI.Entities.WayBillGeneration", "WayBillGenerationResponse"));
        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("AWBPrintContent");
        elemField.setXmlName(new javax.xml.namespace.QName("http://schemas.datacontract.org/2004/07/SAPI.Entities.WayBillGeneration", "AWBPrintContent"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "base64Binary"));
        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("destinationArea");
        elemField.setXmlName(new javax.xml.namespace.QName("http://schemas.datacontract.org/2004/07/SAPI.Entities.WayBillGeneration", "DestinationArea"));
        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("destinationLocation");
        elemField.setXmlName(new javax.xml.namespace.QName("http://schemas.datacontract.org/2004/07/SAPI.Entities.WayBillGeneration", "DestinationLocation"));
        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("shipmentPickupDate");
        elemField.setXmlName(new javax.xml.namespace.QName("http://schemas.datacontract.org/2004/07/SAPI.Entities.WayBillGeneration", "ShipmentPickupDate"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
        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);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("tokenNumber");
        elemField.setXmlName(new javax.xml.namespace.QName("http://schemas.datacontract.org/2004/07/SAPI.Entities.WayBillGeneration", "TokenNumber"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        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);
    }

}