1
2
3
4
5
6
7
8 package org.astrogrid.applications.beans.v1.cea.castor;
9
10
11
12
13
14 import java.io.IOException;
15 import java.io.Reader;
16 import java.io.Serializable;
17 import java.io.Writer;
18 import org.astrogrid.applications.beans.v1.cea.castor.types.ExecutionPhase;
19 import org.exolab.castor.xml.MarshalException;
20 import org.exolab.castor.xml.Marshaller;
21 import org.exolab.castor.xml.Unmarshaller;
22 import org.exolab.castor.xml.ValidationException;
23 import org.xml.sax.ContentHandler;
24
25 /***
26 * Class ExecutionSummaryType.
27 *
28 * @version $Revision: 1.13 $ $Date: 2007/01/04 16:26:32 $
29 */
30 public class ExecutionSummaryType extends org.astrogrid.common.bean.BaseBean
31 implements java.io.Serializable
32 {
33
34
35
36
37
38
39 /***
40 * Field _applicationName
41 */
42 private java.lang.String _applicationName;
43
44 /***
45 * Field _executionId
46 */
47 private java.lang.String _executionId;
48
49 /***
50 * Field _inputList
51 */
52 private org.astrogrid.applications.beans.v1.cea.castor.InputListType _inputList;
53
54 /***
55 * Field _resultList
56 */
57 private org.astrogrid.applications.beans.v1.cea.castor.ResultListType _resultList;
58
59 /***
60 * Field _status
61 */
62 private org.astrogrid.applications.beans.v1.cea.castor.types.ExecutionPhase _status;
63
64
65
66
67
68
69 public ExecutionSummaryType() {
70 super();
71 }
72
73
74
75
76
77
78 /***
79 * Note: hashCode() has not been overriden
80 *
81 * @param obj
82 */
83 public boolean equals(java.lang.Object obj)
84 {
85 if ( this == obj )
86 return true;
87
88 if (super.equals(obj)==false)
89 return false;
90
91 if (obj instanceof ExecutionSummaryType) {
92
93 ExecutionSummaryType temp = (ExecutionSummaryType)obj;
94 if (this._applicationName != null) {
95 if (temp._applicationName == null) return false;
96 else if (!(this._applicationName.equals(temp._applicationName)))
97 return false;
98 }
99 else if (temp._applicationName != null)
100 return false;
101 if (this._executionId != null) {
102 if (temp._executionId == null) return false;
103 else if (!(this._executionId.equals(temp._executionId)))
104 return false;
105 }
106 else if (temp._executionId != null)
107 return false;
108 if (this._inputList != null) {
109 if (temp._inputList == null) return false;
110 else if (!(this._inputList.equals(temp._inputList)))
111 return false;
112 }
113 else if (temp._inputList != null)
114 return false;
115 if (this._resultList != null) {
116 if (temp._resultList == null) return false;
117 else if (!(this._resultList.equals(temp._resultList)))
118 return false;
119 }
120 else if (temp._resultList != null)
121 return false;
122 if (this._status != null) {
123 if (temp._status == null) return false;
124 else if (!(this._status.equals(temp._status)))
125 return false;
126 }
127 else if (temp._status != null)
128 return false;
129 return true;
130 }
131 return false;
132 }
133
134 /***
135 * Returns the value of field 'applicationName'.
136 *
137 * @return the value of field 'applicationName'.
138 */
139 public java.lang.String getApplicationName()
140 {
141 return this._applicationName;
142 }
143
144 /***
145 * Returns the value of field 'executionId'.
146 *
147 * @return the value of field 'executionId'.
148 */
149 public java.lang.String getExecutionId()
150 {
151 return this._executionId;
152 }
153
154 /***
155 * Returns the value of field 'inputList'.
156 *
157 * @return the value of field 'inputList'.
158 */
159 public org.astrogrid.applications.beans.v1.cea.castor.InputListType getInputList()
160 {
161 return this._inputList;
162 }
163
164 /***
165 * Returns the value of field 'resultList'.
166 *
167 * @return the value of field 'resultList'.
168 */
169 public org.astrogrid.applications.beans.v1.cea.castor.ResultListType getResultList()
170 {
171 return this._resultList;
172 }
173
174 /***
175 * Returns the value of field 'status'.
176 *
177 * @return the value of field 'status'.
178 */
179 public org.astrogrid.applications.beans.v1.cea.castor.types.ExecutionPhase getStatus()
180 {
181 return this._status;
182 }
183
184 /***
185 * Method isValid
186 */
187 public boolean isValid()
188 {
189 try {
190 validate();
191 }
192 catch (org.exolab.castor.xml.ValidationException vex) {
193 return false;
194 }
195 return true;
196 }
197
198 /***
199 * Method marshal
200 *
201 * @param out
202 */
203 public void marshal(java.io.Writer out)
204 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
205 {
206
207 Marshaller.marshal(this, out);
208 }
209
210 /***
211 * Method marshal
212 *
213 * @param handler
214 */
215 public void marshal(org.xml.sax.ContentHandler handler)
216 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
217 {
218
219 Marshaller.marshal(this, handler);
220 }
221
222 /***
223 * Sets the value of field 'applicationName'.
224 *
225 * @param applicationName the value of field 'applicationName'.
226 */
227 public void setApplicationName(java.lang.String applicationName)
228 {
229 this._applicationName = applicationName;
230 }
231
232 /***
233 * Sets the value of field 'executionId'.
234 *
235 * @param executionId the value of field 'executionId'.
236 */
237 public void setExecutionId(java.lang.String executionId)
238 {
239 this._executionId = executionId;
240 }
241
242 /***
243 * Sets the value of field 'inputList'.
244 *
245 * @param inputList the value of field 'inputList'.
246 */
247 public void setInputList(org.astrogrid.applications.beans.v1.cea.castor.InputListType inputList)
248 {
249 this._inputList = inputList;
250 }
251
252 /***
253 * Sets the value of field 'resultList'.
254 *
255 * @param resultList the value of field 'resultList'.
256 */
257 public void setResultList(org.astrogrid.applications.beans.v1.cea.castor.ResultListType resultList)
258 {
259 this._resultList = resultList;
260 }
261
262 /***
263 * Sets the value of field 'status'.
264 *
265 * @param status the value of field 'status'.
266 */
267 public void setStatus(org.astrogrid.applications.beans.v1.cea.castor.types.ExecutionPhase status)
268 {
269 this._status = status;
270 }
271
272 /***
273 * Method unmarshalExecutionSummaryType
274 *
275 * @param reader
276 */
277 public static org.astrogrid.applications.beans.v1.cea.castor.ExecutionSummaryType unmarshalExecutionSummaryType(java.io.Reader reader)
278 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
279 {
280 return (org.astrogrid.applications.beans.v1.cea.castor.ExecutionSummaryType) Unmarshaller.unmarshal(org.astrogrid.applications.beans.v1.cea.castor.ExecutionSummaryType.class, reader);
281 }
282
283 /***
284 * Method validate
285 */
286 public void validate()
287 throws org.exolab.castor.xml.ValidationException
288 {
289 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
290 validator.validate(this);
291 }
292
293 }