/**
 * GetProductOrderInfoListResponse.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.style24.core.biz.checkout.mall;

public class GetProductOrderInfoListResponse  extends com.style24.core.biz.checkout.base.ListResponseType  implements java.io.Serializable {
    private com.style24.core.biz.checkout.base.ProductOrderInfo[] productOrderInfoList;

    private String[] failedProductOrderIDList;

    public GetProductOrderInfoListResponse() {
    }

    public GetProductOrderInfoListResponse(
           String requestID,
           String responseType,
           Long responseTime,
           com.style24.core.biz.checkout.base.ErrorType error,
           com.style24.core.biz.checkout.base.WarningType[] warningList,
           com.style24.core.biz.checkout.base.QuotaStatusType quotaStatus,
           String detailLevel,
           String version,
           String release,
           java.util.Calendar timestamp,
           String messageID,
           Integer returnedDataCount,
           Boolean hasMoreData,
           java.util.Calendar moreDataTimeFrom,
           String inquiryExtraData,
           com.style24.core.biz.checkout.base.ProductOrderInfo[] productOrderInfoList,
           String[] failedProductOrderIDList) {
        super(
            requestID,
            responseType,
            responseTime,
            error,
            warningList,
            quotaStatus,
            detailLevel,
            version,
            release,
            timestamp,
            messageID,
            returnedDataCount,
            hasMoreData,
            moreDataTimeFrom,
            inquiryExtraData);
        this.productOrderInfoList = productOrderInfoList;
        this.failedProductOrderIDList = failedProductOrderIDList;
    }


    /**
     * Gets the productOrderInfoList value for this GetProductOrderInfoListResponse.
     *
     * @return productOrderInfoList
     */
    public com.style24.core.biz.checkout.base.ProductOrderInfo[] getProductOrderInfoList() {
        return productOrderInfoList;
    }


    /**
     * Sets the productOrderInfoList value for this GetProductOrderInfoListResponse.
     *
     * @param productOrderInfoList
     */
    public void setProductOrderInfoList(com.style24.core.biz.checkout.base.ProductOrderInfo[] productOrderInfoList) {
        this.productOrderInfoList = productOrderInfoList;
    }

    public com.style24.core.biz.checkout.base.ProductOrderInfo getProductOrderInfoList(int i) {
        return this.productOrderInfoList[i];
    }

    public void setProductOrderInfoList(int i, com.style24.core.biz.checkout.base.ProductOrderInfo _value) {
        this.productOrderInfoList[i] = _value;
    }


    /**
     * Gets the failedProductOrderIDList value for this GetProductOrderInfoListResponse.
     *
     * @return failedProductOrderIDList
     */
    public String[] getFailedProductOrderIDList() {
        return failedProductOrderIDList;
    }


    /**
     * Sets the failedProductOrderIDList value for this GetProductOrderInfoListResponse.
     *
     * @param failedProductOrderIDList
     */
    public void setFailedProductOrderIDList(String[] failedProductOrderIDList) {
        this.failedProductOrderIDList = failedProductOrderIDList;
    }

    public String getFailedProductOrderIDList(int i) {
        return this.failedProductOrderIDList[i];
    }

    public void setFailedProductOrderIDList(int i, String _value) {
        this.failedProductOrderIDList[i] = _value;
    }

    private Object __equalsCalc = null;
    public synchronized boolean equals(Object obj) {
        if (!(obj instanceof GetProductOrderInfoListResponse)) return false;
        GetProductOrderInfoListResponse other = (GetProductOrderInfoListResponse) obj;
        if (obj == null) return false;
        if (this == obj) return true;
        if (__equalsCalc != null) {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = super.equals(obj) &&
            ((this.productOrderInfoList==null && other.getProductOrderInfoList()==null) ||
             (this.productOrderInfoList!=null &&
              java.util.Arrays.equals(this.productOrderInfoList, other.getProductOrderInfoList()))) &&
            ((this.failedProductOrderIDList==null && other.getFailedProductOrderIDList()==null) ||
             (this.failedProductOrderIDList!=null &&
              java.util.Arrays.equals(this.failedProductOrderIDList, other.getFailedProductOrderIDList())));
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;
    public synchronized int hashCode() {
        if (__hashCodeCalc) {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = super.hashCode();
        if (getProductOrderInfoList() != null) {
            for (int i=0;
                 i<java.lang.reflect.Array.getLength(getProductOrderInfoList());
                 i++) {
                Object obj = java.lang.reflect.Array.get(getProductOrderInfoList(), i);
                if (obj != null &&
                    !obj.getClass().isArray()) {
                    _hashCode += obj.hashCode();
                }
            }
        }
        if (getFailedProductOrderIDList() != null) {
            for (int i=0;
                 i<java.lang.reflect.Array.getLength(getFailedProductOrderIDList());
                 i++) {
                Object obj = java.lang.reflect.Array.get(getFailedProductOrderIDList(), i);
                if (obj != null &&
                    !obj.getClass().isArray()) {
                    _hashCode += obj.hashCode();
                }
            }
        }
        __hashCodeCalc = false;
        return _hashCode;
    }

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

    static {
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://mall.checkout.platform.nhncorp.com/", "getProductOrderInfoListResponse"));
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("productOrderInfoList");
        elemField.setXmlName(new javax.xml.namespace.QName("http://mall.checkout.platform.nhncorp.com/", "ProductOrderInfoList"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://base.checkout.platform.nhncorp.com/", "productOrderInfo"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        elemField.setMaxOccursUnbounded(true);
        typeDesc.addFieldDesc(elemField);
        elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("failedProductOrderIDList");
        elemField.setXmlName(new javax.xml.namespace.QName("http://mall.checkout.platform.nhncorp.com/", "FailedProductOrderIDList"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        elemField.setMaxOccursUnbounded(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(
           String mechType,
           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(
           String mechType,
           Class _javaType,
           javax.xml.namespace.QName _xmlType) {
        return 
          new  org.apache.axis.encoding.ser.BeanDeserializer(
            _javaType, _xmlType, typeDesc);
    }

}
