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.06 at 04:54:40 PM CEST
|
6
|
//
|
7
|
|
8
|
|
9
|
package org.bgbm.biovel.drf.tnr.msg;
|
10
|
|
11
|
import java.math.BigDecimal;
|
12
|
import java.util.ArrayList;
|
13
|
import java.util.List;
|
14
|
import javax.xml.bind.annotation.XmlAccessType;
|
15
|
import javax.xml.bind.annotation.XmlAccessorType;
|
16
|
import javax.xml.bind.annotation.XmlElement;
|
17
|
import javax.xml.bind.annotation.XmlRootElement;
|
18
|
import javax.xml.bind.annotation.XmlType;
|
19
|
import com.wordnik.swagger.annotations.ApiModelProperty;
|
20
|
|
21
|
|
22
|
/**
|
23
|
* <p>Java class for anonymous complex type.
|
24
|
*
|
25
|
* <p>The following schema fragment specifies the expected content contained within this class.
|
26
|
*
|
27
|
* <pre>
|
28
|
* <complexType>
|
29
|
* <complexContent>
|
30
|
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
31
|
* <sequence>
|
32
|
* <element name="request">
|
33
|
* <complexType>
|
34
|
* <complexContent>
|
35
|
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
36
|
* <sequence>
|
37
|
* <element name="queryString" type="{http://www.w3.org/2001/XMLSchema}string"/>
|
38
|
* <element name="searchMode" type="{http://www.w3.org/2001/XMLSchema}string"/>
|
39
|
* <element name="addSynonymy" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
|
40
|
* </sequence>
|
41
|
* </restriction>
|
42
|
* </complexContent>
|
43
|
* </complexType>
|
44
|
* </element>
|
45
|
* <element ref="{http://bgbm.org/biovel/drf/tnr/msg}Response" maxOccurs="unbounded"/>
|
46
|
* <element name="clientStatus" maxOccurs="unbounded" minOccurs="0">
|
47
|
* <complexType>
|
48
|
* <complexContent>
|
49
|
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
50
|
* <sequence>
|
51
|
* <element name="checklistId" type="{http://www.w3.org/2001/XMLSchema}string"/>
|
52
|
* <element name="duration" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
|
53
|
* <element name="statusMessage" type="{http://www.w3.org/2001/XMLSchema}string"/>
|
54
|
* </sequence>
|
55
|
* </restriction>
|
56
|
* </complexContent>
|
57
|
* </complexType>
|
58
|
* </element>
|
59
|
* </sequence>
|
60
|
* </restriction>
|
61
|
* </complexContent>
|
62
|
* </complexType>
|
63
|
* </pre>
|
64
|
*
|
65
|
*
|
66
|
*/
|
67
|
@XmlAccessorType(XmlAccessType.FIELD)
|
68
|
@XmlType(name = "", propOrder = {
|
69
|
"request",
|
70
|
"response",
|
71
|
"clientStatus"
|
72
|
})
|
73
|
@XmlRootElement(name = "query")
|
74
|
public class Query {
|
75
|
|
76
|
@XmlElement(required = true)
|
77
|
protected Query.Request request;
|
78
|
@XmlElement(name = "Response", required = true)
|
79
|
protected List<Response> response;
|
80
|
protected List<Query.ClientStatus> clientStatus;
|
81
|
|
82
|
/**
|
83
|
* Gets the value of the request property.
|
84
|
*
|
85
|
* @return
|
86
|
* possible object is
|
87
|
* {@link Query.Request }
|
88
|
*
|
89
|
*/
|
90
|
public Query.Request getRequest() {
|
91
|
return request;
|
92
|
}
|
93
|
|
94
|
/**
|
95
|
* Sets the value of the request property.
|
96
|
*
|
97
|
* @param value
|
98
|
* allowed object is
|
99
|
* {@link Query.Request }
|
100
|
*
|
101
|
*/
|
102
|
public void setRequest(Query.Request value) {
|
103
|
this.request = value;
|
104
|
}
|
105
|
|
106
|
/**
|
107
|
* Gets the value of the response property.
|
108
|
*
|
109
|
* <p>
|
110
|
* This accessor method returns a reference to the live list,
|
111
|
* not a snapshot. Therefore any modification you make to the
|
112
|
* returned list will be present inside the JAXB object.
|
113
|
* This is why there is not a <CODE>set</CODE> method for the response property.
|
114
|
*
|
115
|
* <p>
|
116
|
* For example, to add a new item, do as follows:
|
117
|
* <pre>
|
118
|
* getResponse().add(newItem);
|
119
|
* </pre>
|
120
|
*
|
121
|
*
|
122
|
* <p>
|
123
|
* Objects of the following type(s) are allowed in the list
|
124
|
* {@link Response }
|
125
|
*
|
126
|
*
|
127
|
*/
|
128
|
public List<Response> getResponse() {
|
129
|
if (response == null) {
|
130
|
response = new ArrayList<Response>();
|
131
|
}
|
132
|
return this.response;
|
133
|
}
|
134
|
|
135
|
/**
|
136
|
* Gets the value of the clientStatus property.
|
137
|
*
|
138
|
* <p>
|
139
|
* This accessor method returns a reference to the live list,
|
140
|
* not a snapshot. Therefore any modification you make to the
|
141
|
* returned list will be present inside the JAXB object.
|
142
|
* This is why there is not a <CODE>set</CODE> method for the clientStatus property.
|
143
|
*
|
144
|
* <p>
|
145
|
* For example, to add a new item, do as follows:
|
146
|
* <pre>
|
147
|
* getClientStatus().add(newItem);
|
148
|
* </pre>
|
149
|
*
|
150
|
*
|
151
|
* <p>
|
152
|
* Objects of the following type(s) are allowed in the list
|
153
|
* {@link Query.ClientStatus }
|
154
|
*
|
155
|
*
|
156
|
*/
|
157
|
public List<Query.ClientStatus> getClientStatus() {
|
158
|
if (clientStatus == null) {
|
159
|
clientStatus = new ArrayList<Query.ClientStatus>();
|
160
|
}
|
161
|
return this.clientStatus;
|
162
|
}
|
163
|
|
164
|
|
165
|
/**
|
166
|
* <p>Java class for anonymous complex type.
|
167
|
*
|
168
|
* <p>The following schema fragment specifies the expected content contained within this class.
|
169
|
*
|
170
|
* <pre>
|
171
|
* <complexType>
|
172
|
* <complexContent>
|
173
|
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
174
|
* <sequence>
|
175
|
* <element name="checklistId" type="{http://www.w3.org/2001/XMLSchema}string"/>
|
176
|
* <element name="duration" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
|
177
|
* <element name="statusMessage" type="{http://www.w3.org/2001/XMLSchema}string"/>
|
178
|
* </sequence>
|
179
|
* </restriction>
|
180
|
* </complexContent>
|
181
|
* </complexType>
|
182
|
* </pre>
|
183
|
*
|
184
|
*
|
185
|
*/
|
186
|
@XmlAccessorType(XmlAccessType.FIELD)
|
187
|
@XmlType(name = "", propOrder = {
|
188
|
"checklistId",
|
189
|
"duration",
|
190
|
"statusMessage"
|
191
|
})
|
192
|
public static class ClientStatus {
|
193
|
|
194
|
@XmlElement(required = true)
|
195
|
protected String checklistId;
|
196
|
@XmlElement(required = true)
|
197
|
protected BigDecimal duration;
|
198
|
@XmlElement(required = true)
|
199
|
protected String statusMessage;
|
200
|
|
201
|
/**
|
202
|
* Gets the value of the checklistId property.
|
203
|
*
|
204
|
* @return
|
205
|
* possible object is
|
206
|
* {@link String }
|
207
|
*
|
208
|
*/
|
209
|
public String getChecklistId() {
|
210
|
return checklistId;
|
211
|
}
|
212
|
|
213
|
/**
|
214
|
* Sets the value of the checklistId property.
|
215
|
*
|
216
|
* @param value
|
217
|
* allowed object is
|
218
|
* {@link String }
|
219
|
*
|
220
|
*/
|
221
|
public void setChecklistId(String value) {
|
222
|
this.checklistId = value;
|
223
|
}
|
224
|
|
225
|
/**
|
226
|
* Gets the value of the duration property.
|
227
|
*
|
228
|
* @return
|
229
|
* possible object is
|
230
|
* {@link BigDecimal }
|
231
|
*
|
232
|
*/
|
233
|
@ApiModelProperty("Duration of the request processing in the specific checklist client in milliseconds.")
|
234
|
public BigDecimal getDuration() {
|
235
|
return duration;
|
236
|
}
|
237
|
|
238
|
/**
|
239
|
* Sets the value of the duration property.
|
240
|
*
|
241
|
* @param value
|
242
|
* allowed object is
|
243
|
* {@link BigDecimal }
|
244
|
*
|
245
|
*/
|
246
|
public void setDuration(BigDecimal value) {
|
247
|
this.duration = value;
|
248
|
}
|
249
|
|
250
|
/**
|
251
|
* Gets the value of the statusMessage property.
|
252
|
*
|
253
|
* @return
|
254
|
* possible object is
|
255
|
* {@link String }
|
256
|
*
|
257
|
*/
|
258
|
@ApiModelProperty("Status of the request, possible values are 'ok', 'timeout', 'interrupted', 'unsupported search mode'.")
|
259
|
public String getStatusMessage() {
|
260
|
return statusMessage;
|
261
|
}
|
262
|
|
263
|
/**
|
264
|
* Sets the value of the statusMessage property.
|
265
|
*
|
266
|
* @param value
|
267
|
* allowed object is
|
268
|
* {@link String }
|
269
|
*
|
270
|
*/
|
271
|
public void setStatusMessage(String value) {
|
272
|
this.statusMessage = value;
|
273
|
}
|
274
|
|
275
|
}
|
276
|
|
277
|
|
278
|
/**
|
279
|
* <p>Java class for anonymous complex type.
|
280
|
*
|
281
|
* <p>The following schema fragment specifies the expected content contained within this class.
|
282
|
*
|
283
|
* <pre>
|
284
|
* <complexType>
|
285
|
* <complexContent>
|
286
|
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
|
287
|
* <sequence>
|
288
|
* <element name="queryString" type="{http://www.w3.org/2001/XMLSchema}string"/>
|
289
|
* <element name="searchMode" type="{http://www.w3.org/2001/XMLSchema}string"/>
|
290
|
* <element name="addSynonymy" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
|
291
|
* </sequence>
|
292
|
* </restriction>
|
293
|
* </complexContent>
|
294
|
* </complexType>
|
295
|
* </pre>
|
296
|
*
|
297
|
*
|
298
|
*/
|
299
|
@XmlAccessorType(XmlAccessType.FIELD)
|
300
|
@XmlType(name = "", propOrder = {
|
301
|
"queryString",
|
302
|
"searchMode",
|
303
|
"addSynonymy"
|
304
|
})
|
305
|
public static class Request {
|
306
|
|
307
|
@XmlElement(required = true)
|
308
|
protected String queryString;
|
309
|
@XmlElement(required = true)
|
310
|
protected String searchMode;
|
311
|
protected boolean addSynonymy;
|
312
|
|
313
|
/**
|
314
|
* Gets the value of the queryString property.
|
315
|
*
|
316
|
* @return
|
317
|
* possible object is
|
318
|
* {@link String }
|
319
|
*
|
320
|
*/
|
321
|
@ApiModelProperty("The query string to match a scientific name, vernacular name or identifier depending on the searchMode")
|
322
|
public String getQueryString() {
|
323
|
return queryString;
|
324
|
}
|
325
|
|
326
|
/**
|
327
|
* Sets the value of the queryString property.
|
328
|
*
|
329
|
* @param value
|
330
|
* allowed object is
|
331
|
* {@link String }
|
332
|
*
|
333
|
*/
|
334
|
public void setQueryString(String value) {
|
335
|
this.queryString = value;
|
336
|
}
|
337
|
|
338
|
/**
|
339
|
* Gets the value of the searchMode property.
|
340
|
*
|
341
|
* @return
|
342
|
* possible object is
|
343
|
* {@link String }
|
344
|
*
|
345
|
*/
|
346
|
@ApiModelProperty("Specified the search mode to be usedPossible search modes are: scientificNameExact, scientificNameLike (begins with), vernacularNameExact, vernacularNameLike (contains).")
|
347
|
public String getSearchMode() {
|
348
|
return searchMode;
|
349
|
}
|
350
|
|
351
|
/**
|
352
|
* Sets the value of the searchMode property.
|
353
|
*
|
354
|
* @param value
|
355
|
* allowed object is
|
356
|
* {@link String }
|
357
|
*
|
358
|
*/
|
359
|
public void setSearchMode(String value) {
|
360
|
this.searchMode = value;
|
361
|
}
|
362
|
|
363
|
/**
|
364
|
* Gets the value of the addSynonymy property.
|
365
|
*
|
366
|
*/
|
367
|
@ApiModelProperty("Indicates whether the synonymy of the accepted taxon should be included into the response. Turning this option on may lead to an increased response time.")
|
368
|
public boolean isAddSynonymy() {
|
369
|
return addSynonymy;
|
370
|
}
|
371
|
|
372
|
/**
|
373
|
* Sets the value of the addSynonymy property.
|
374
|
*
|
375
|
*/
|
376
|
public void setAddSynonymy(boolean value) {
|
377
|
this.addSynonymy = value;
|
378
|
}
|
379
|
|
380
|
}
|
381
|
|
382
|
}
|