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   * SubmitTrade.java This file was auto-generated from WSDL by the Apache Axis 1.2.1
11   * Jun 14, 2005 (09:15:57 EDT) WSDL2Java emitter.
12   */
13  
14  public class SubmitTrade implements java.io.Serializable
15  {
16      private static final long serialVersionUID = 6724911620302616166L;
17  
18      private org.mule.test.usecases.axis.Trade arg0;
19  
20      public SubmitTrade()
21      {
22          super();
23      }
24  
25      public SubmitTrade(org.mule.test.usecases.axis.Trade arg0)
26      {
27          this.arg0 = arg0;
28      }
29  
30      /**
31       * Gets the arg0 value for this SubmitTrade.
32       * 
33       * @return arg0
34       */
35      public org.mule.test.usecases.axis.Trade getArg0()
36      {
37          return arg0;
38      }
39  
40      /**
41       * Sets the arg0 value for this SubmitTrade.
42       * 
43       * @param arg0
44       */
45      public void setArg0(org.mule.test.usecases.axis.Trade arg0)
46      {
47          this.arg0 = arg0;
48      }
49  
50      private java.lang.Object __equalsCalc = null;
51  
52      public synchronized boolean equals(java.lang.Object obj)
53      {
54          if (!(obj instanceof SubmitTrade))
55          {
56              return false;
57          }
58          SubmitTrade other = (SubmitTrade)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.arg0 == null && other.getArg0() == null) || (this.arg0 != null && this.arg0.equals(other.getArg0())));
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 (getArg0() != null)
85          {
86              _hashCode += getArg0().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          SubmitTrade.class, true);
95  
96      static
97      {
98          typeDesc.setXmlType(new javax.xml.namespace.QName("http://samples.mule.org/hello", "submitTrade"));
99          org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
100         elemField.setFieldName("arg0");
101         elemField.setXmlName(new javax.xml.namespace.QName("http://samples.mule.org/hello", "arg0"));
102         elemField.setXmlType(new javax.xml.namespace.QName("http://samples.mule.org/hello", "arg0"));
103         elemField.setMinOccurs(0);
104         elemField.setNillable(false);
105         typeDesc.addFieldDesc(elemField);
106     }
107 
108     /**
109      * Return type metadata object
110      */
111     public static org.apache.axis.description.TypeDesc getTypeDesc()
112     {
113         return typeDesc;
114     }
115 
116     /**
117      * Get Custom Serializer
118      */
119     public static org.apache.axis.encoding.Serializer getSerializer(java.lang.String mechType,
120                                                                     java.lang.Class _javaType,
121                                                                     javax.xml.namespace.QName _xmlType)
122     {
123         return new org.apache.axis.encoding.ser.BeanSerializer(_javaType, _xmlType, typeDesc);
124     }
125 
126     /**
127      * Get Custom Deserializer
128      */
129     public static org.apache.axis.encoding.Deserializer getDeserializer(java.lang.String mechType,
130                                                                         java.lang.Class _javaType,
131                                                                         javax.xml.namespace.QName _xmlType)
132     {
133         return new org.apache.axis.encoding.ser.BeanDeserializer(_javaType, _xmlType, typeDesc);
134     }
135 
136 }