View Javadoc

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