Newer
Older
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2020.10.24 at 09:39:16 AM CEST
//
package net.ivoa.xml.uws.v1;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import it.inaf.oats.vospace.datamodel.JobInfoDeserializer;
import it.inaf.oats.vospace.datamodel.JobInfoSerializer;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;
import net.ivoa.xml.vospace.v2.Transfer;
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
import org.w3c.dom.Element;
/**
*
* The complete representation of the state of a job
*
*
* <p>Java class for JobSummary complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="JobSummary">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="jobId" type="{http://www.ivoa.net/xml/UWS/v1.0}JobIdentifier"/>
* <element name="runId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* <element name="ownerId" type="{http://www.w3.org/2001/XMLSchema}string"/>
* <element name="phase" type="{http://www.ivoa.net/xml/UWS/v1.0}ExecutionPhase"/>
* <element name="quote" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
* <element name="creationTime" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
* <element name="startTime" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
* <element name="endTime" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
* <element name="executionDuration" type="{http://www.w3.org/2001/XMLSchema}int"/>
* <element name="destruction" type="{http://www.w3.org/2001/XMLSchema}dateTime"/>
* <element ref="{http://www.ivoa.net/xml/UWS/v1.0}parameters" minOccurs="0"/>
* <element ref="{http://www.ivoa.net/xml/UWS/v1.0}results"/>
* <element name="errorSummary" type="{http://www.ivoa.net/xml/UWS/v1.0}ErrorSummary" minOccurs="0"/>
* <element name="jobInfo" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <any processContents='lax' maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* <attribute name="version" type="{http://www.ivoa.net/xml/UWS/v1.0}UWSVersion" />
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "JobSummary", propOrder = {
"jobId",
"runId",
"ownerId",
"phase",
"quote",
"creationTime",
"startTime",
"endTime",
"executionDuration",
"destruction",
"parameters",
"results",
"errorSummary",
"jobInfo"
})
// <edit>
@XmlSeeAlso({Transfer.class}) // Necessary for setting a Transfer inside the jobInfo property.
@XmlRootElement(name = "job")
@JsonIgnoreProperties(ignoreUnknown = true)
// </edit>
public class JobSummary {
@XmlElement(required = true)
protected String jobId;
protected String runId;
@XmlElement(required = true, nillable = true)
protected String ownerId;
@XmlElement(required = true)
@XmlSchemaType(name = "string")
protected ExecutionPhase phase;
// <edit>
protected XMLGregorianCalendar quote;
// </edit>
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar creationTime;
@XmlElement(required = true, nillable = true)
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar startTime;
@XmlElement(required = true, nillable = true)
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar endTime;
protected int executionDuration;
@XmlElement(required = true, nillable = true)
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar destruction;
protected Parameters parameters;
// <edit>: replaced Results with List<ResultReference>
@XmlElement(name = "result")
@XmlElementWrapper(name = "results", required = true)
protected List<ResultReference> results;
// </edit>
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
protected ErrorSummary errorSummary;
protected JobSummary.JobInfo jobInfo;
@XmlAttribute(name = "version")
protected String version;
/**
* Gets the value of the jobId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getJobId() {
return jobId;
}
/**
* Sets the value of the jobId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setJobId(String value) {
this.jobId = value;
}
/**
* Gets the value of the runId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getRunId() {
return runId;
}
/**
* Sets the value of the runId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setRunId(String value) {
this.runId = value;
}
/**
* Gets the value of the ownerId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getOwnerId() {
return ownerId;
}
/**
* Sets the value of the ownerId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setOwnerId(String value) {
this.ownerId = value;
}
/**
* Gets the value of the phase property.
*
* @return
* possible object is
* {@link ExecutionPhase }
*
*/
public ExecutionPhase getPhase() {
return phase;
}
/**
* Sets the value of the phase property.
*
* @param value
* allowed object is
* {@link ExecutionPhase }
*
*/
public void setPhase(ExecutionPhase value) {
this.phase = value;
}
/**
* Gets the value of the quote property.
*
* @return
* possible object is
* {@link JAXBElement }{@code <}{@link XMLGregorianCalendar }{@code >}
*
*/
// <edit>
public XMLGregorianCalendar getQuote() {
return quote;
}
/**
* Sets the value of the quote property.
*
* @param value
* allowed object is
* {@link JAXBElement }{@code <}{@link XMLGregorianCalendar }{@code >}
*
*/
public void setQuote(XMLGregorianCalendar value) {
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
/**
* Gets the value of the creationTime property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getCreationTime() {
return creationTime;
}
/**
* Sets the value of the creationTime property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setCreationTime(XMLGregorianCalendar value) {
this.creationTime = value;
}
/**
* Gets the value of the startTime property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getStartTime() {
return startTime;
}
/**
* Sets the value of the startTime property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setStartTime(XMLGregorianCalendar value) {
this.startTime = value;
}
/**
* Gets the value of the endTime property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getEndTime() {
return endTime;
}
/**
* Sets the value of the endTime property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setEndTime(XMLGregorianCalendar value) {
this.endTime = value;
}
/**
* Gets the value of the executionDuration property.
*
*/
public int getExecutionDuration() {
return executionDuration;
}
/**
* Sets the value of the executionDuration property.
*
*/
public void setExecutionDuration(int value) {
this.executionDuration = value;
}
/**
* Gets the value of the destruction property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getDestruction() {
return destruction;
}
/**
* Sets the value of the destruction property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public void setDestruction(XMLGregorianCalendar value) {
this.destruction = value;
}
/**
*
* The parameters to the job (where appropriate) can also
* be retrieved at /{jobs}/{job-id}/parameters
*
*
* @return
* possible object is
* {@link Parameters }
*
*/
public Parameters getParameters() {
return parameters;
}
/**
* Sets the value of the parameters property.
*
* @param value
* allowed object is
* {@link Parameters }
*
*/
public void setParameters(Parameters value) {
this.parameters = value;
}
/**
*
* The results for the job - can also be retrieved at
* /{jobs}/{job-id}/results
*
*
* @return
* possible object is
* {@link Results }
*
*/
// <edit>
public List<ResultReference> getResults() {
if (results == null) {
results = new ArrayList<>();
}
public void setResults(List<ResultReference> value) {
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
/**
* Gets the value of the errorSummary property.
*
* @return
* possible object is
* {@link ErrorSummary }
*
*/
public ErrorSummary getErrorSummary() {
return errorSummary;
}
/**
* Sets the value of the errorSummary property.
*
* @param value
* allowed object is
* {@link ErrorSummary }
*
*/
public void setErrorSummary(ErrorSummary value) {
this.errorSummary = value;
}
/**
* Gets the value of the jobInfo property.
*
* @return
* possible object is
* {@link JobSummary.JobInfo }
*
*/
public JobSummary.JobInfo getJobInfo() {
return jobInfo;
}
/**
* Sets the value of the jobInfo property.
*
* @param value
* allowed object is
* {@link JobSummary.JobInfo }
*
*/
public void setJobInfo(JobSummary.JobInfo value) {
this.jobInfo = value;
}
/**
* Gets the value of the version property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getVersion() {
return version;
}
/**
* Sets the value of the version property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setVersion(String value) {
this.version = value;
}
/**
* <p>Java class for anonymous complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <any processContents='lax' maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"any"
})
// <edit>
@JsonSerialize(using = JobInfoSerializer.class)
@JsonDeserialize(using = JobInfoDeserializer.class)
// </edit>
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
public static class JobInfo {
@XmlAnyElement(lax = true)
protected List<Object> any;
/**
* Gets the value of the any property.
*
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the any property.
*
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getAny().add(newItem);
* </pre>
*
*
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Object }
* {@link Element }
*
*
*/
public List<Object> getAny() {
if (any == null) {
any = new ArrayList<Object>();
}
return this.any;
}
}
}