/*
 * $Id: SubmitTradeResponse.java 8077 2007-08-27 20:15:25Z aperepel $
 * --------------------------------------------------------------------------------------
 * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
 *
 * The software in this package is published under the terms of the CPAL v1.0
 * license, a copy of which has been included with this distribution in the
 * LICENSE.txt file.
 */

package org.mule.test.usecases.axis;

/**
 * SubmitTradeResponse.java This file was auto-generated from WSDL by the Apache Axis
 * 1.2.1 Jun 14, 2005 (09:15:57 EDT) WSDL2Java emitter.
 */

public class SubmitTradeResponse implements java.io.Serializable
{
    private static final long serialVersionUID = -1096201474470391609L;

    private org.mule.test.usecases.axis.TradeStatus _return;

    public SubmitTradeResponse()
    {
        super();
    }

    public SubmitTradeResponse(org.mule.test.usecases.axis.TradeStatus _return)
    {
        this._return = _return;
    }

    /**
     * Gets the _return value for this SubmitTradeResponse.
     * 
     * @return _return
     */
    public org.mule.test.usecases.axis.TradeStatus get_return()
    {
        return _return;
    }

    /**
     * Sets the _return value for this SubmitTradeResponse.
     * 
     * @param _return
     */
    public void set_return(org.mule.test.usecases.axis.TradeStatus _return)
    {
        this._return = _return;
    }

    private java.lang.Object __equalsCalc = null;

    public synchronized boolean equals(java.lang.Object obj)
    {
        if (!(obj instanceof SubmitTradeResponse))
        {
            return false;
        }
        SubmitTradeResponse other = (SubmitTradeResponse)obj;
        if (this == obj)
        {
            return true;
        }
        if (__equalsCalc != null)
        {
            return (__equalsCalc == obj);
        }
        __equalsCalc = obj;
        boolean _equals;
        _equals = true && ((this._return == null && other.get_return() == null) || (this._return != null && this._return.equals(other.get_return())));
        __equalsCalc = null;
        return _equals;
    }

    private boolean __hashCodeCalc = false;

    public synchronized int hashCode()
    {
        if (__hashCodeCalc)
        {
            return 0;
        }
        __hashCodeCalc = true;
        int _hashCode = 1;
        if (get_return() != null)
        {
            _hashCode += get_return().hashCode();
        }
        __hashCodeCalc = false;
        return _hashCode;
    }

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

    static
    {
        typeDesc.setXmlType(new javax.xml.namespace.QName("http://samples.mule.org/hello",
            "submitTradeResponse"));
        org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
        elemField.setFieldName("_return");
        elemField.setXmlName(new javax.xml.namespace.QName("http://samples.mule.org/hello", "return"));
        elemField.setXmlType(new javax.xml.namespace.QName("http://samples.mule.org/hello", "tradeStatus"));
        elemField.setMinOccurs(0);
        elemField.setNillable(false);
        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);
    }

}
