View Javadoc

1   /**
2    * Body.java
3    *
4    * This file was auto-generated from WSDL
5    * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
6    */
7   
8   package org.xmlsoap.schemas.soap.envelope;
9   
10  public class Body  implements java.io.Serializable, org.apache.axis.encoding.AnyContentType {
11      private org.apache.axis.message.MessageElement [] _any;
12  
13      public Body() {
14      }
15  
16      public Body(
17             org.apache.axis.message.MessageElement [] _any) {
18             this._any = _any;
19      }
20  
21  
22      /**
23       * Gets the _any value for this Body.
24       * 
25       * @return _any
26       */
27      public org.apache.axis.message.MessageElement [] get_any() {
28          return _any;
29      }
30  
31  
32      /**
33       * Sets the _any value for this Body.
34       * 
35       * @param _any
36       */
37      public void set_any(org.apache.axis.message.MessageElement [] _any) {
38          this._any = _any;
39      }
40  
41      private java.lang.Object __equalsCalc = null;
42      public synchronized boolean equals(java.lang.Object obj) {
43          if (!(obj instanceof Body)) return false;
44          Body other = (Body) obj;
45          if (obj == null) return false;
46          if (this == obj) return true;
47          if (__equalsCalc != null) {
48              return (__equalsCalc == obj);
49          }
50          __equalsCalc = obj;
51          boolean _equals;
52          _equals = true && 
53              ((this._any==null && other.get_any()==null) || 
54               (this._any!=null &&
55                java.util.Arrays.equals(this._any, other.get_any())));
56          __equalsCalc = null;
57          return _equals;
58      }
59  
60      private boolean __hashCodeCalc = false;
61      public synchronized int hashCode() {
62          if (__hashCodeCalc) {
63              return 0;
64          }
65          __hashCodeCalc = true;
66          int _hashCode = 1;
67          if (get_any() != null) {
68              for (int i=0;
69                   i<java.lang.reflect.Array.getLength(get_any());
70                   i++) {
71                  java.lang.Object obj = java.lang.reflect.Array.get(get_any(), i);
72                  if (obj != null &&
73                      !obj.getClass().isArray()) {
74                      _hashCode += obj.hashCode();
75                  }
76              }
77          }
78          __hashCodeCalc = false;
79          return _hashCode;
80      }
81  
82      // Type metadata
83      private static org.apache.axis.description.TypeDesc typeDesc =
84          new org.apache.axis.description.TypeDesc(Body.class, true);
85  
86      static {
87          typeDesc.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/envelope/", "Body"));
88      }
89  
90      /**
91       * Return type metadata object
92       */
93      public static org.apache.axis.description.TypeDesc getTypeDesc() {
94          return typeDesc;
95      }
96  
97      /**
98       * Get Custom Serializer
99       */
100     public static org.apache.axis.encoding.Serializer getSerializer(
101            java.lang.String mechType, 
102            java.lang.Class _javaType,  
103            javax.xml.namespace.QName _xmlType) {
104         return 
105           new  org.apache.axis.encoding.ser.BeanSerializer(
106             _javaType, _xmlType, typeDesc);
107     }
108 
109     /**
110      * Get Custom Deserializer
111      */
112     public static org.apache.axis.encoding.Deserializer getDeserializer(
113            java.lang.String mechType, 
114            java.lang.Class _javaType,  
115            javax.xml.namespace.QName _xmlType) {
116         return 
117           new  org.apache.axis.encoding.ser.BeanDeserializer(
118             _javaType, _xmlType, typeDesc);
119     }
120 
121 }