View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.test.usecases.axis;
8   
9   /**
10   * SubmitTradeResponse.java This file was auto-generated from WSDL by the Apache Axis
11   * 1.2.1 Jun 14, 2005 (09:15:57 EDT) WSDL2Java emitter.
12   */
13  
14  public class SubmitTradeResponse implements java.io.Serializable
15  {
16      private static final long serialVersionUID = -1096201474470391609L;
17  
18      private org.mule.test.usecases.axis.TradeStatus _return;
19  
20      public SubmitTradeResponse()
21      {
22          super();
23      }
24  
25      public SubmitTradeResponse(org.mule.test.usecases.axis.TradeStatus _return)
26      {
27          this._return = _return;
28      }
29  
30      /**
31       * Gets the _return value for this SubmitTradeResponse.
32       * 
33       * @return _return
34       */
35      public org.mule.test.usecases.axis.TradeStatus get_return()
36      {
37          return _return;
38      }
39  
40      /**
41       * Sets the _return value for this SubmitTradeResponse.
42       * 
43       * @param _return
44       */
45      public void set_return(org.mule.test.usecases.axis.TradeStatus _return)
46      {
47          this._return = _return;
48      }
49  
50      private java.lang.Object __equalsCalc = null;
51  
52      public synchronized boolean equals(java.lang.Object obj)
53      {
54          if (!(obj instanceof SubmitTradeResponse))
55          {
56              return false;
57          }
58          SubmitTradeResponse other = (SubmitTradeResponse)obj;
59          if (this == obj)
60          {
61              return true;
62          }
63          if (__equalsCalc != null)
64          {
65              return (__equalsCalc == obj);
66          }
67          __equalsCalc = obj;
68          boolean _equals;
69          _equals = true && ((this._return == null && other.get_return() == null) || (this._return != null && this._return.equals(other.get_return())));
70          __equalsCalc = null;
71          return _equals;
72      }
73  
74      private boolean __hashCodeCalc = false;
75  
76      public synchronized int hashCode()
77      {
78          if (__hashCodeCalc)
79          {
80              return 0;
81          }
82          __hashCodeCalc = true;
83          int _hashCode = 1;
84          if (get_return() != null)
85          {
86              _hashCode += get_return().hashCode();
87          }
88          __hashCodeCalc = false;
89          return _hashCode;
90      }
91  
92      // Type metadata
93      private static org.apache.axis.description.TypeDesc typeDesc = new org.apache.axis.description.TypeDesc(
94          SubmitTradeResponse.class, true);
95  
96      static
97      {
98          typeDesc.setXmlType(new javax.xml.namespace.QName("http://samples.mule.org/hello",
99              "submitTradeResponse"));
100         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
101         elemField.setFieldName("_return");
102         elemField.setXmlName(new javax.xml.namespace.QName("http://samples.mule.org/hello", "return"));
103         elemField.setXmlType(new javax.xml.namespace.QName("http://samples.mule.org/hello", "tradeStatus"));
104         elemField.setMinOccurs(0);
105         elemField.setNillable(false);
106         typeDesc.addFieldDesc(elemField);
107     }
108 
109     /**
110      * Return type metadata object
111      */
112     public static org.apache.axis.description.TypeDesc getTypeDesc()
113     {
114         return typeDesc;
115     }
116 
117     /**
118      * Get Custom Serializer
119      */
120     public static org.apache.axis.encoding.Serializer getSerializer(java.lang.String mechType,
121                                                                     java.lang.Class _javaType,
122                                                                     javax.xml.namespace.QName _xmlType)
123     {
124         return new org.apache.axis.encoding.ser.BeanSerializer(_javaType, _xmlType, typeDesc);
125     }
126 
127     /**
128      * Get Custom Deserializer
129      */
130     public static org.apache.axis.encoding.Deserializer getDeserializer(java.lang.String mechType,
131                                                                         java.lang.Class _javaType,
132                                                                         javax.xml.namespace.QName _xmlType)
133     {
134         return new org.apache.axis.encoding.ser.BeanDeserializer(_javaType, _xmlType, typeDesc);
135     }
136 
137 }