1
2
3
4
5
6
7
8 package fr.in2p3.jsaga.adaptor.schema.job.emulator;
9
10
11
12
13
14 import fr.in2p3.jsaga.adaptor.schema.job.emulator.types.JobStatusType;
15 import java.io.IOException;
16 import java.io.Reader;
17 import java.io.Serializable;
18 import java.io.Writer;
19 import java.util.Date;
20 import org.exolab.castor.xml.MarshalException;
21 import org.exolab.castor.xml.Marshaller;
22 import org.exolab.castor.xml.Unmarshaller;
23 import org.exolab.castor.xml.ValidationException;
24 import org.xml.sax.ContentHandler;
25
26
27
28
29
30
31 public class Job implements java.io.Serializable {
32
33
34
35
36
37
38
39
40
41 private java.lang.String _id;
42
43
44
45
46 private java.lang.String _owner;
47
48
49
50
51 private java.lang.String _name;
52
53
54
55
56 private fr.in2p3.jsaga.adaptor.schema.job.emulator.types.JobStatusType _status;
57
58
59
60
61 private java.util.Date _queueTime;
62
63
64
65
66 private java.util.Date _startTime;
67
68
69
70
71 private java.util.Date _endTime;
72
73
74
75
76
77
78 public Job()
79 {
80 super();
81 }
82
83
84
85
86
87
88
89
90
91
92
93
94 public java.util.Date getEndTime()
95 {
96 return this._endTime;
97 }
98
99
100
101
102
103
104
105 public java.lang.String getId()
106 {
107 return this._id;
108 }
109
110
111
112
113
114
115
116 public java.lang.String getName()
117 {
118 return this._name;
119 }
120
121
122
123
124
125
126
127 public java.lang.String getOwner()
128 {
129 return this._owner;
130 }
131
132
133
134
135
136
137
138 public java.util.Date getQueueTime()
139 {
140 return this._queueTime;
141 }
142
143
144
145
146
147
148
149 public java.util.Date getStartTime()
150 {
151 return this._startTime;
152 }
153
154
155
156
157
158
159
160 public fr.in2p3.jsaga.adaptor.schema.job.emulator.types.JobStatusType getStatus()
161 {
162 return this._status;
163 }
164
165
166
167
168
169
170
171
172 public boolean isValid()
173 {
174 try {
175 validate();
176 }
177 catch (org.exolab.castor.xml.ValidationException vex) {
178 return false;
179 }
180 return true;
181 }
182
183
184
185
186
187
188
189
190 public void marshal(java.io.Writer out)
191 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
192 {
193
194 Marshaller.marshal(this, out);
195 }
196
197
198
199
200
201
202
203
204 public void marshal(org.xml.sax.ContentHandler handler)
205 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
206 {
207
208 Marshaller.marshal(this, handler);
209 }
210
211
212
213
214
215
216 public void setEndTime(java.util.Date endTime)
217 {
218 this._endTime = endTime;
219 }
220
221
222
223
224
225
226 public void setId(java.lang.String id)
227 {
228 this._id = id;
229 }
230
231
232
233
234
235
236 public void setName(java.lang.String name)
237 {
238 this._name = name;
239 }
240
241
242
243
244
245
246 public void setOwner(java.lang.String owner)
247 {
248 this._owner = owner;
249 }
250
251
252
253
254
255
256 public void setQueueTime(java.util.Date queueTime)
257 {
258 this._queueTime = queueTime;
259 }
260
261
262
263
264
265
266 public void setStartTime(java.util.Date startTime)
267 {
268 this._startTime = startTime;
269 }
270
271
272
273
274
275
276 public void setStatus(fr.in2p3.jsaga.adaptor.schema.job.emulator.types.JobStatusType status)
277 {
278 this._status = status;
279 }
280
281
282
283
284
285
286
287
288
289 public static java.lang.Object unmarshal(java.io.Reader reader)
290 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
291 {
292 return (fr.in2p3.jsaga.adaptor.schema.job.emulator.Job) Unmarshaller.unmarshal(fr.in2p3.jsaga.adaptor.schema.job.emulator.Job.class, reader);
293 }
294
295
296
297
298
299 public void validate()
300 throws org.exolab.castor.xml.ValidationException
301 {
302 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
303 validator.validate(this);
304 }
305
306 }