View Javadoc

1   /**
2    * ArrayOfTPutRequestFileStatus.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.ogf.srm22;
9   
10  public class ArrayOfTPutRequestFileStatus  implements java.io.Serializable {
11      private org.ogf.srm22.TPutRequestFileStatus[] statusArray;
12  
13      public ArrayOfTPutRequestFileStatus() {
14      }
15  
16      public ArrayOfTPutRequestFileStatus(
17             org.ogf.srm22.TPutRequestFileStatus[] statusArray) {
18             this.statusArray = statusArray;
19      }
20  
21  
22      /**
23       * Gets the statusArray value for this ArrayOfTPutRequestFileStatus.
24       * 
25       * @return statusArray
26       */
27      public org.ogf.srm22.TPutRequestFileStatus[] getStatusArray() {
28          return statusArray;
29      }
30  
31  
32      /**
33       * Sets the statusArray value for this ArrayOfTPutRequestFileStatus.
34       * 
35       * @param statusArray
36       */
37      public void setStatusArray(org.ogf.srm22.TPutRequestFileStatus[] statusArray) {
38          this.statusArray = statusArray;
39      }
40  
41      public org.ogf.srm22.TPutRequestFileStatus getStatusArray(int i) {
42          return this.statusArray[i];
43      }
44  
45      public void setStatusArray(int i, org.ogf.srm22.TPutRequestFileStatus _value) {
46          this.statusArray[i] = _value;
47      }
48  
49      private java.lang.Object __equalsCalc = null;
50      public synchronized boolean equals(java.lang.Object obj) {
51          if (!(obj instanceof ArrayOfTPutRequestFileStatus)) return false;
52          ArrayOfTPutRequestFileStatus other = (ArrayOfTPutRequestFileStatus) obj;
53          if (obj == null) return false;
54          if (this == obj) return true;
55          if (__equalsCalc != null) {
56              return (__equalsCalc == obj);
57          }
58          __equalsCalc = obj;
59          boolean _equals;
60          _equals = true && 
61              ((this.statusArray==null && other.getStatusArray()==null) || 
62               (this.statusArray!=null &&
63                java.util.Arrays.equals(this.statusArray, other.getStatusArray())));
64          __equalsCalc = null;
65          return _equals;
66      }
67  
68      private boolean __hashCodeCalc = false;
69      public synchronized int hashCode() {
70          if (__hashCodeCalc) {
71              return 0;
72          }
73          __hashCodeCalc = true;
74          int _hashCode = 1;
75          if (getStatusArray() != null) {
76              for (int i=0;
77                   i<java.lang.reflect.Array.getLength(getStatusArray());
78                   i++) {
79                  java.lang.Object obj = java.lang.reflect.Array.get(getStatusArray(), i);
80                  if (obj != null &&
81                      !obj.getClass().isArray()) {
82                      _hashCode += obj.hashCode();
83                  }
84              }
85          }
86          __hashCodeCalc = false;
87          return _hashCode;
88      }
89  
90      // Type metadata
91      private static org.apache.axis.description.TypeDesc typeDesc =
92          new org.apache.axis.description.TypeDesc(ArrayOfTPutRequestFileStatus.class, true);
93  
94      static {
95          typeDesc.setXmlType(new javax.xml.namespace.QName("http://srm.lbl.gov/StorageResourceManager", "ArrayOfTPutRequestFileStatus"));
96          org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
97          elemField.setFieldName("statusArray");
98          elemField.setXmlName(new javax.xml.namespace.QName("", "statusArray"));
99          elemField.setXmlType(new javax.xml.namespace.QName("http://srm.lbl.gov/StorageResourceManager", "TPutRequestFileStatus"));
100         elemField.setNillable(false);
101         elemField.setMaxOccursUnbounded(true);
102         typeDesc.addFieldDesc(elemField);
103     }
104 
105     /**
106      * Return type metadata object
107      */
108     public static org.apache.axis.description.TypeDesc getTypeDesc() {
109         return typeDesc;
110     }
111 
112     /**
113      * Get Custom Serializer
114      */
115     public static org.apache.axis.encoding.Serializer getSerializer(
116            java.lang.String mechType, 
117            java.lang.Class _javaType,  
118            javax.xml.namespace.QName _xmlType) {
119         return 
120           new  org.apache.axis.encoding.ser.BeanSerializer(
121             _javaType, _xmlType, typeDesc);
122     }
123 
124     /**
125      * Get Custom Deserializer
126      */
127     public static org.apache.axis.encoding.Deserializer getDeserializer(
128            java.lang.String mechType, 
129            java.lang.Class _javaType,  
130            javax.xml.namespace.QName _xmlType) {
131         return 
132           new  org.apache.axis.encoding.ser.BeanDeserializer(
133             _javaType, _xmlType, typeDesc);
134     }
135 
136 }