1
|
//
|
2
|
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11
|
3
|
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
|
4
|
// Any modifications to this file will be lost upon recompilation of the source schema.
|
5
|
// Generated on: 2015.10.27 at 03:20:07 PM CET
|
6
|
//
|
7
|
|
8
|
|
9
|
package org.cybertaxonomy.utis.tnr.msg;
|
10
|
|
11
|
import java.util.ArrayList;
|
12
|
import java.util.List;
|
13
|
import javax.xml.bind.annotation.XmlAccessType;
|
14
|
import javax.xml.bind.annotation.XmlAccessorType;
|
15
|
import javax.xml.bind.annotation.XmlAttribute;
|
16
|
import javax.xml.bind.annotation.XmlElement;
|
17
|
import javax.xml.bind.annotation.XmlRootElement;
|
18
|
import javax.xml.bind.annotation.XmlSchemaType;
|
19
|
import javax.xml.bind.annotation.XmlType;
|
20
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
21
|
import com.wordnik.swagger.annotations.ApiModelProperty;
|
22
|
|
23
|
|
24
|
/**
|
25
|
* <p>Java class for anonymous complex type.
|
26
|
*
|
27
|
* <p>The following schema fragment specifies the expected content contained within this class.
|
28
|
*
|
29
|
* <pre>
|
30
|
* <complexType>
|
31
|
* <complexContent>
|
32
|
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
33
|
* <sequence>
|
34
|
* <element ref="{http://cybertaxonomy.org/utis/tnr/msg}taxon" minOccurs="0"/>
|
35
|
* <element name="otherNames" maxOccurs="unbounded" minOccurs="0">
|
36
|
* <complexType>
|
37
|
* <complexContent>
|
38
|
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
39
|
* <sequence>
|
40
|
* <element name="taxonName" type="{http://cybertaxonomy.org/utis/tnr/msg}taxonName"/>
|
41
|
* <element name="url" type="{http://www.w3.org/2001/XMLSchema}anyURI"/>
|
42
|
* <element name="sources" type="{http://cybertaxonomy.org/utis/tnr/msg}source" maxOccurs="unbounded" minOccurs="0"/>
|
43
|
* </sequence>
|
44
|
* </restriction>
|
45
|
* </complexContent>
|
46
|
* </complexType>
|
47
|
* </element>
|
48
|
* <element ref="{http://cybertaxonomy.org/utis/tnr/msg}synonym" maxOccurs="unbounded" minOccurs="0"/>
|
49
|
* <element name="vernacularNames" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
|
50
|
* </sequence>
|
51
|
* <attribute name="checklist" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
|
52
|
* <attribute name="checklist_id" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
|
53
|
* <attribute name="checklist_url" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
|
54
|
* <attribute name="checklist_version" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
|
55
|
* <attribute name="checklist_citation" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
|
56
|
* <attribute name="matchingNameString" type="{http://www.w3.org/2001/XMLSchema}string" />
|
57
|
* <attribute name="matchingNameType" type="{http://cybertaxonomy.org/utis/tnr/msg}nameType" />
|
58
|
* </restriction>
|
59
|
* </complexContent>
|
60
|
* </complexType>
|
61
|
* </pre>
|
62
|
*
|
63
|
*
|
64
|
*/
|
65
|
@XmlAccessorType(XmlAccessType.FIELD)
|
66
|
@XmlType(name = "", propOrder = {
|
67
|
"taxon",
|
68
|
"otherNames",
|
69
|
"synonym",
|
70
|
"vernacularNames"
|
71
|
})
|
72
|
@XmlRootElement(name = "Response")
|
73
|
public class Response {
|
74
|
|
75
|
protected Taxon taxon;
|
76
|
protected List<Response.OtherNames> otherNames;
|
77
|
protected List<Synonym> synonym;
|
78
|
protected List<String> vernacularNames;
|
79
|
@XmlAttribute(name = "checklist", required = true)
|
80
|
protected String checklist;
|
81
|
@XmlAttribute(name = "checklist_id", required = true)
|
82
|
protected String checklistId;
|
83
|
@XmlAttribute(name = "checklist_url", required = true)
|
84
|
protected String checklistUrl;
|
85
|
@XmlAttribute(name = "checklist_version", required = true)
|
86
|
protected String checklistVersion;
|
87
|
@XmlAttribute(name = "checklist_citation", required = true)
|
88
|
protected String checklistCitation;
|
89
|
@XmlAttribute(name = "matchingNameString")
|
90
|
protected String matchingNameString;
|
91
|
@XmlAttribute(name = "matchingNameType")
|
92
|
protected NameType matchingNameType;
|
93
|
|
94
|
/**
|
95
|
* Gets the value of the taxon property.
|
96
|
*
|
97
|
* @return
|
98
|
* possible object is
|
99
|
* {@link Taxon }
|
100
|
*
|
101
|
*/
|
102
|
@ApiModelProperty("The accepted taxon")
|
103
|
public Taxon getTaxon() {
|
104
|
return taxon;
|
105
|
}
|
106
|
|
107
|
/**
|
108
|
* Sets the value of the taxon property.
|
109
|
*
|
110
|
* @param value
|
111
|
* allowed object is
|
112
|
* {@link Taxon }
|
113
|
*
|
114
|
*/
|
115
|
public void setTaxon(Taxon value) {
|
116
|
this.taxon = value;
|
117
|
}
|
118
|
|
119
|
/**
|
120
|
* Gets the value of the otherNames property.
|
121
|
*
|
122
|
* <p>
|
123
|
* This accessor method returns a reference to the live list,
|
124
|
* not a snapshot. Therefore any modification you make to the
|
125
|
* returned list will be present inside the JAXB object.
|
126
|
* This is why there is not a <CODE>set</CODE> method for the otherNames property.
|
127
|
*
|
128
|
* <p>
|
129
|
* For example, to add a new item, do as follows:
|
130
|
* <pre>
|
131
|
* getOtherNames().add(newItem);
|
132
|
* </pre>
|
133
|
*
|
134
|
*
|
135
|
* <p>
|
136
|
* Objects of the following type(s) are allowed in the list
|
137
|
* {@link Response.OtherNames }
|
138
|
*
|
139
|
*
|
140
|
*/
|
141
|
public List<Response.OtherNames> getOtherNames() {
|
142
|
if (otherNames == null) {
|
143
|
otherNames = new ArrayList<Response.OtherNames>();
|
144
|
}
|
145
|
return this.otherNames;
|
146
|
}
|
147
|
|
148
|
/**
|
149
|
* Gets the value of the synonym property.
|
150
|
*
|
151
|
* <p>
|
152
|
* This accessor method returns a reference to the live list,
|
153
|
* not a snapshot. Therefore any modification you make to the
|
154
|
* returned list will be present inside the JAXB object.
|
155
|
* This is why there is not a <CODE>set</CODE> method for the synonym property.
|
156
|
*
|
157
|
* <p>
|
158
|
* For example, to add a new item, do as follows:
|
159
|
* <pre>
|
160
|
* getSynonym().add(newItem);
|
161
|
* </pre>
|
162
|
*
|
163
|
*
|
164
|
* <p>
|
165
|
* Objects of the following type(s) are allowed in the list
|
166
|
* {@link Synonym }
|
167
|
*
|
168
|
*
|
169
|
*/
|
170
|
@JsonProperty("synonyms")
|
171
|
@ApiModelProperty("The list synonyms related to the accepted taxon")
|
172
|
public List<Synonym> getSynonym() {
|
173
|
if (synonym == null) {
|
174
|
synonym = new ArrayList<Synonym>();
|
175
|
}
|
176
|
return this.synonym;
|
177
|
}
|
178
|
|
179
|
/**
|
180
|
* Gets the value of the vernacularNames property.
|
181
|
*
|
182
|
* <p>
|
183
|
* This accessor method returns a reference to the live list,
|
184
|
* not a snapshot. Therefore any modification you make to the
|
185
|
* returned list will be present inside the JAXB object.
|
186
|
* This is why there is not a <CODE>set</CODE> method for the vernacularNames property.
|
187
|
*
|
188
|
* <p>
|
189
|
* For example, to add a new item, do as follows:
|
190
|
* <pre>
|
191
|
* getVernacularNames().add(newItem);
|
192
|
* </pre>
|
193
|
*
|
194
|
*
|
195
|
* <p>
|
196
|
* Objects of the following type(s) are allowed in the list
|
197
|
* {@link String }
|
198
|
*
|
199
|
*
|
200
|
*/
|
201
|
@ApiModelProperty("A common or vernacular name.")
|
202
|
public List<String> getVernacularNames() {
|
203
|
if (vernacularNames == null) {
|
204
|
vernacularNames = new ArrayList<String>();
|
205
|
}
|
206
|
return this.vernacularNames;
|
207
|
}
|
208
|
|
209
|
/**
|
210
|
* Gets the value of the checklist property.
|
211
|
*
|
212
|
* @return
|
213
|
* possible object is
|
214
|
* {@link String }
|
215
|
*
|
216
|
*/
|
217
|
public String getChecklist() {
|
218
|
return checklist;
|
219
|
}
|
220
|
|
221
|
/**
|
222
|
* Sets the value of the checklist property.
|
223
|
*
|
224
|
* @param value
|
225
|
* allowed object is
|
226
|
* {@link String }
|
227
|
*
|
228
|
*/
|
229
|
public void setChecklist(String value) {
|
230
|
this.checklist = value;
|
231
|
}
|
232
|
|
233
|
/**
|
234
|
* Gets the value of the checklistId property.
|
235
|
*
|
236
|
* @return
|
237
|
* possible object is
|
238
|
* {@link String }
|
239
|
*
|
240
|
*/
|
241
|
public String getChecklistId() {
|
242
|
return checklistId;
|
243
|
}
|
244
|
|
245
|
/**
|
246
|
* Sets the value of the checklistId property.
|
247
|
*
|
248
|
* @param value
|
249
|
* allowed object is
|
250
|
* {@link String }
|
251
|
*
|
252
|
*/
|
253
|
public void setChecklistId(String value) {
|
254
|
this.checklistId = value;
|
255
|
}
|
256
|
|
257
|
/**
|
258
|
* Gets the value of the checklistUrl property.
|
259
|
*
|
260
|
* @return
|
261
|
* possible object is
|
262
|
* {@link String }
|
263
|
*
|
264
|
*/
|
265
|
public String getChecklistUrl() {
|
266
|
return checklistUrl;
|
267
|
}
|
268
|
|
269
|
/**
|
270
|
* Sets the value of the checklistUrl property.
|
271
|
*
|
272
|
* @param value
|
273
|
* allowed object is
|
274
|
* {@link String }
|
275
|
*
|
276
|
*/
|
277
|
public void setChecklistUrl(String value) {
|
278
|
this.checklistUrl = value;
|
279
|
}
|
280
|
|
281
|
/**
|
282
|
* Gets the value of the checklistVersion property.
|
283
|
*
|
284
|
* @return
|
285
|
* possible object is
|
286
|
* {@link String }
|
287
|
*
|
288
|
*/
|
289
|
public String getChecklistVersion() {
|
290
|
return checklistVersion;
|
291
|
}
|
292
|
|
293
|
/**
|
294
|
* Sets the value of the checklistVersion property.
|
295
|
*
|
296
|
* @param value
|
297
|
* allowed object is
|
298
|
* {@link String }
|
299
|
*
|
300
|
*/
|
301
|
public void setChecklistVersion(String value) {
|
302
|
this.checklistVersion = value;
|
303
|
}
|
304
|
|
305
|
/**
|
306
|
* Gets the value of the checklistCitation property.
|
307
|
*
|
308
|
* @return
|
309
|
* possible object is
|
310
|
* {@link String }
|
311
|
*
|
312
|
*/
|
313
|
public String getChecklistCitation() {
|
314
|
return checklistCitation;
|
315
|
}
|
316
|
|
317
|
/**
|
318
|
* Sets the value of the checklistCitation property.
|
319
|
*
|
320
|
* @param value
|
321
|
* allowed object is
|
322
|
* {@link String }
|
323
|
*
|
324
|
*/
|
325
|
public void setChecklistCitation(String value) {
|
326
|
this.checklistCitation = value;
|
327
|
}
|
328
|
|
329
|
/**
|
330
|
* Gets the value of the matchingNameString property.
|
331
|
*
|
332
|
* @return
|
333
|
* possible object is
|
334
|
* {@link String }
|
335
|
*
|
336
|
*/
|
337
|
@ApiModelProperty("Refers to the name string of the accepted taxon, synonym or otherName which was matching the query string")
|
338
|
public String getMatchingNameString() {
|
339
|
return matchingNameString;
|
340
|
}
|
341
|
|
342
|
/**
|
343
|
* Sets the value of the matchingNameString property.
|
344
|
*
|
345
|
* @param value
|
346
|
* allowed object is
|
347
|
* {@link String }
|
348
|
*
|
349
|
*/
|
350
|
public void setMatchingNameString(String value) {
|
351
|
this.matchingNameString = value;
|
352
|
}
|
353
|
|
354
|
/**
|
355
|
* Gets the value of the matchingNameType property.
|
356
|
*
|
357
|
* @return
|
358
|
* possible object is
|
359
|
* {@link NameType }
|
360
|
*
|
361
|
*/
|
362
|
@ApiModelProperty("Reports which of the names was matching the query string: 'taxon', 'synonym', 'vernacularName', or 'otherName'")
|
363
|
public NameType getMatchingNameType() {
|
364
|
return matchingNameType;
|
365
|
}
|
366
|
|
367
|
/**
|
368
|
* Sets the value of the matchingNameType property.
|
369
|
*
|
370
|
* @param value
|
371
|
* allowed object is
|
372
|
* {@link NameType }
|
373
|
*
|
374
|
*/
|
375
|
public void setMatchingNameType(NameType value) {
|
376
|
this.matchingNameType = value;
|
377
|
}
|
378
|
|
379
|
|
380
|
/**
|
381
|
* <p>Java class for anonymous complex type.
|
382
|
*
|
383
|
* <p>The following schema fragment specifies the expected content contained within this class.
|
384
|
*
|
385
|
* <pre>
|
386
|
* <complexType>
|
387
|
* <complexContent>
|
388
|
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
389
|
* <sequence>
|
390
|
* <element name="taxonName" type="{http://cybertaxonomy.org/utis/tnr/msg}taxonName"/>
|
391
|
* <element name="url" type="{http://www.w3.org/2001/XMLSchema}anyURI"/>
|
392
|
* <element name="sources" type="{http://cybertaxonomy.org/utis/tnr/msg}source" maxOccurs="unbounded" minOccurs="0"/>
|
393
|
* </sequence>
|
394
|
* </restriction>
|
395
|
* </complexContent>
|
396
|
* </complexType>
|
397
|
* </pre>
|
398
|
*
|
399
|
*
|
400
|
*/
|
401
|
@XmlAccessorType(XmlAccessType.FIELD)
|
402
|
@XmlType(name = "", propOrder = {
|
403
|
"taxonName",
|
404
|
"url",
|
405
|
"sources"
|
406
|
})
|
407
|
public static class OtherNames {
|
408
|
|
409
|
@XmlElement(required = true)
|
410
|
protected TaxonName taxonName;
|
411
|
@XmlElement(required = true)
|
412
|
@XmlSchemaType(name = "anyURI")
|
413
|
protected String url;
|
414
|
protected List<Source> sources;
|
415
|
|
416
|
/**
|
417
|
* Gets the value of the taxonName property.
|
418
|
*
|
419
|
* @return
|
420
|
* possible object is
|
421
|
* {@link TaxonName }
|
422
|
*
|
423
|
*/
|
424
|
public TaxonName getTaxonName() {
|
425
|
return taxonName;
|
426
|
}
|
427
|
|
428
|
/**
|
429
|
* Sets the value of the taxonName property.
|
430
|
*
|
431
|
* @param value
|
432
|
* allowed object is
|
433
|
* {@link TaxonName }
|
434
|
*
|
435
|
*/
|
436
|
public void setTaxonName(TaxonName value) {
|
437
|
this.taxonName = value;
|
438
|
}
|
439
|
|
440
|
/**
|
441
|
* Gets the value of the url property.
|
442
|
*
|
443
|
* @return
|
444
|
* possible object is
|
445
|
* {@link String }
|
446
|
*
|
447
|
*/
|
448
|
@ApiModelProperty("The URL pointing to the original name record of the checklist provider.")
|
449
|
public String getUrl() {
|
450
|
return url;
|
451
|
}
|
452
|
|
453
|
/**
|
454
|
* Sets the value of the url property.
|
455
|
*
|
456
|
* @param value
|
457
|
* allowed object is
|
458
|
* {@link String }
|
459
|
*
|
460
|
*/
|
461
|
public void setUrl(String value) {
|
462
|
this.url = value;
|
463
|
}
|
464
|
|
465
|
/**
|
466
|
* Gets the value of the sources property.
|
467
|
*
|
468
|
* <p>
|
469
|
* This accessor method returns a reference to the live list,
|
470
|
* not a snapshot. Therefore any modification you make to the
|
471
|
* returned list will be present inside the JAXB object.
|
472
|
* This is why there is not a <CODE>set</CODE> method for the sources property.
|
473
|
*
|
474
|
* <p>
|
475
|
* For example, to add a new item, do as follows:
|
476
|
* <pre>
|
477
|
* getSources().add(newItem);
|
478
|
* </pre>
|
479
|
*
|
480
|
*
|
481
|
* <p>
|
482
|
* Objects of the following type(s) are allowed in the list
|
483
|
* {@link Source }
|
484
|
*
|
485
|
*
|
486
|
*/
|
487
|
public List<Source> getSources() {
|
488
|
if (sources == null) {
|
489
|
sources = new ArrayList<Source>();
|
490
|
}
|
491
|
return this.sources;
|
492
|
}
|
493
|
|
494
|
}
|
495
|
|
496
|
}
|