View Javadoc

1   /***
2    * WorkflowSummaryType.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 WorkflowSummaryType  implements java.io.Serializable {
11      private org.astrogrid.jes.beans.v1.axis.executionrecord.JobURN jobId;
12      private org.astrogrid.jes.beans.v1.axis.executionrecord._extension[] extension;
13      private org.astrogrid.jes.types.v1.cea.axis.MessageType[] message;
14      private java.lang.String workflowName;
15      private java.lang.String description;
16      private java.util.Calendar startTime;  // attribute
17      private java.util.Calendar finishTime;  // attribute
18      private org.astrogrid.jes.types.v1.cea.axis.ExecutionPhase status;  // attribute
19  
20      public WorkflowSummaryType() {
21      }
22  
23      public org.astrogrid.jes.beans.v1.axis.executionrecord.JobURN getJobId() {
24          return jobId;
25      }
26  
27      public void setJobId(org.astrogrid.jes.beans.v1.axis.executionrecord.JobURN jobId) {
28          this.jobId = jobId;
29      }
30  
31      public org.astrogrid.jes.beans.v1.axis.executionrecord._extension[] getExtension() {
32          return extension;
33      }
34  
35      public void setExtension(org.astrogrid.jes.beans.v1.axis.executionrecord._extension[] extension) {
36          this.extension = extension;
37      }
38  
39      public org.astrogrid.jes.beans.v1.axis.executionrecord._extension getExtension(int i) {
40          return extension[i];
41      }
42  
43      public void setExtension(int i, org.astrogrid.jes.beans.v1.axis.executionrecord._extension value) {
44          this.extension[i] = value;
45      }
46  
47      public org.astrogrid.jes.types.v1.cea.axis.MessageType[] getMessage() {
48          return message;
49      }
50  
51      public void setMessage(org.astrogrid.jes.types.v1.cea.axis.MessageType[] message) {
52          this.message = message;
53      }
54  
55      public org.astrogrid.jes.types.v1.cea.axis.MessageType getMessage(int i) {
56          return message[i];
57      }
58  
59      public void setMessage(int i, org.astrogrid.jes.types.v1.cea.axis.MessageType value) {
60          this.message[i] = value;
61      }
62  
63      public java.lang.String getWorkflowName() {
64          return workflowName;
65      }
66  
67      public void setWorkflowName(java.lang.String workflowName) {
68          this.workflowName = workflowName;
69      }
70  
71      public java.lang.String getDescription() {
72          return description;
73      }
74  
75      public void setDescription(java.lang.String description) {
76          this.description = description;
77      }
78  
79      public java.util.Calendar getStartTime() {
80          return startTime;
81      }
82  
83      public void setStartTime(java.util.Calendar startTime) {
84          this.startTime = startTime;
85      }
86  
87      public java.util.Calendar getFinishTime() {
88          return finishTime;
89      }
90  
91      public void setFinishTime(java.util.Calendar finishTime) {
92          this.finishTime = finishTime;
93      }
94  
95      public org.astrogrid.jes.types.v1.cea.axis.ExecutionPhase getStatus() {
96          return status;
97      }
98  
99      public void setStatus(org.astrogrid.jes.types.v1.cea.axis.ExecutionPhase status) {
100         this.status = status;
101     }
102 
103     private java.lang.Object __equalsCalc = null;
104     public synchronized boolean equals(java.lang.Object obj) {
105         if (!(obj instanceof WorkflowSummaryType)) return false;
106         WorkflowSummaryType other = (WorkflowSummaryType) obj;
107         if (obj == null) return false;
108         if (this == obj) return true;
109         if (__equalsCalc != null) {
110             return (__equalsCalc == obj);
111         }
112         __equalsCalc = obj;
113         boolean _equals;
114         _equals = true && 
115             ((this.jobId==null && other.getJobId()==null) || 
116              (this.jobId!=null &&
117               this.jobId.equals(other.getJobId()))) &&
118             ((this.extension==null && other.getExtension()==null) || 
119              (this.extension!=null &&
120               java.util.Arrays.equals(this.extension, other.getExtension()))) &&
121             ((this.message==null && other.getMessage()==null) || 
122              (this.message!=null &&
123               java.util.Arrays.equals(this.message, other.getMessage()))) &&
124             ((this.workflowName==null && other.getWorkflowName()==null) || 
125              (this.workflowName!=null &&
126               this.workflowName.equals(other.getWorkflowName()))) &&
127             ((this.description==null && other.getDescription()==null) || 
128              (this.description!=null &&
129               this.description.equals(other.getDescription()))) &&
130             ((this.startTime==null && other.getStartTime()==null) || 
131              (this.startTime!=null &&
132               this.startTime.equals(other.getStartTime()))) &&
133             ((this.finishTime==null && other.getFinishTime()==null) || 
134              (this.finishTime!=null &&
135               this.finishTime.equals(other.getFinishTime()))) &&
136             ((this.status==null && other.getStatus()==null) || 
137              (this.status!=null &&
138               this.status.equals(other.getStatus())));
139         __equalsCalc = null;
140         return _equals;
141     }
142 
143     private boolean __hashCodeCalc = false;
144     public synchronized int hashCode() {
145         if (__hashCodeCalc) {
146             return 0;
147         }
148         __hashCodeCalc = true;
149         int _hashCode = 1;
150         if (getJobId() != null) {
151             _hashCode += getJobId().hashCode();
152         }
153         if (getExtension() != null) {
154             for (int i=0;
155                  i<java.lang.reflect.Array.getLength(getExtension());
156                  i++) {
157                 java.lang.Object obj = java.lang.reflect.Array.get(getExtension(), i);
158                 if (obj != null &&
159                     !obj.getClass().isArray()) {
160                     _hashCode += obj.hashCode();
161                 }
162             }
163         }
164         if (getMessage() != null) {
165             for (int i=0;
166                  i<java.lang.reflect.Array.getLength(getMessage());
167                  i++) {
168                 java.lang.Object obj = java.lang.reflect.Array.get(getMessage(), i);
169                 if (obj != null &&
170                     !obj.getClass().isArray()) {
171                     _hashCode += obj.hashCode();
172                 }
173             }
174         }
175         if (getWorkflowName() != null) {
176             _hashCode += getWorkflowName().hashCode();
177         }
178         if (getDescription() != null) {
179             _hashCode += getDescription().hashCode();
180         }
181         if (getStartTime() != null) {
182             _hashCode += getStartTime().hashCode();
183         }
184         if (getFinishTime() != null) {
185             _hashCode += getFinishTime().hashCode();
186         }
187         if (getStatus() != null) {
188             _hashCode += getStatus().hashCode();
189         }
190         __hashCodeCalc = false;
191         return _hashCode;
192     }
193 
194     // Type metadata
195     private static org.apache.axis.description.TypeDesc typeDesc =
196         new org.apache.axis.description.TypeDesc(WorkflowSummaryType.class);
197 
198     static {
199         typeDesc.setXmlType(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/ExecutionRecord/v1", "workflow-summary-type"));
200         org.apache.axis.description.AttributeDesc attrField = new org.apache.axis.description.AttributeDesc();
201         attrField.setFieldName("startTime");
202         attrField.setXmlName(new javax.xml.namespace.QName("", "startTime"));
203         attrField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
204         typeDesc.addFieldDesc(attrField);
205         attrField = new org.apache.axis.description.AttributeDesc();
206         attrField.setFieldName("finishTime");
207         attrField.setXmlName(new javax.xml.namespace.QName("", "finishTime"));
208         attrField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"));
209         typeDesc.addFieldDesc(attrField);
210         attrField = new org.apache.axis.description.AttributeDesc();
211         attrField.setFieldName("status");
212         attrField.setXmlName(new javax.xml.namespace.QName("", "status"));
213         attrField.setXmlType(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/CEATypes/v1", "execution-phase"));
214         typeDesc.addFieldDesc(attrField);
215         org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
216         elemField.setFieldName("jobId");
217         elemField.setXmlName(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/ExecutionRecord/v1", "jobId"));
218         elemField.setXmlType(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/ExecutionRecord/v1", "jobURN"));
219         typeDesc.addFieldDesc(elemField);
220         elemField = new org.apache.axis.description.ElementDesc();
221         elemField.setFieldName("extension");
222         elemField.setXmlName(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/ExecutionRecord/v1", "extension"));
223         elemField.setXmlType(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/ExecutionRecord/v1", "extension"));
224         elemField.setMinOccurs(0);
225         typeDesc.addFieldDesc(elemField);
226         elemField = new org.apache.axis.description.ElementDesc();
227         elemField.setFieldName("message");
228         elemField.setXmlName(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/CEATypes/v1", "message"));
229         elemField.setXmlType(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/CEATypes/v1", "message-type"));
230         elemField.setMinOccurs(0);
231         typeDesc.addFieldDesc(elemField);
232         elemField = new org.apache.axis.description.ElementDesc();
233         elemField.setFieldName("workflowName");
234         elemField.setXmlName(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/ExecutionRecord/v1", "workflow-name"));
235         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
236         typeDesc.addFieldDesc(elemField);
237         elemField = new org.apache.axis.description.ElementDesc();
238         elemField.setFieldName("description");
239         elemField.setXmlName(new javax.xml.namespace.QName("http://www.astrogrid.org/schema/ExecutionRecord/v1", "description"));
240         elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"));
241         typeDesc.addFieldDesc(elemField);
242     }
243 
244     /***
245      * Return type metadata object
246      */
247     public static org.apache.axis.description.TypeDesc getTypeDesc() {
248         return typeDesc;
249     }
250 
251     /***
252      * Get Custom Serializer
253      */
254     public static org.apache.axis.encoding.Serializer getSerializer(
255            java.lang.String mechType, 
256            java.lang.Class _javaType,  
257            javax.xml.namespace.QName _xmlType) {
258         return 
259           new  org.apache.axis.encoding.ser.BeanSerializer(
260             _javaType, _xmlType, typeDesc);
261     }
262 
263     /***
264      * Get Custom Deserializer
265      */
266     public static org.apache.axis.encoding.Deserializer getDeserializer(
267            java.lang.String mechType, 
268            java.lang.Class _javaType,  
269            javax.xml.namespace.QName _xmlType) {
270         return 
271           new  org.apache.axis.encoding.ser.BeanDeserializer(
272             _javaType, _xmlType, typeDesc);
273     }
274 
275 }