Project

General

Profile

Download (11.5 KB) Statistics
| Branch: | Tag: | Revision:
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
 * &lt;complexType&gt;
29
 *   &lt;complexContent&gt;
30
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
31
 *       &lt;sequence&gt;
32
 *         &lt;element name="request"&gt;
33
 *           &lt;complexType&gt;
34
 *             &lt;complexContent&gt;
35
 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
36
 *                 &lt;sequence&gt;
37
 *                   &lt;element name="queryString" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
38
 *                   &lt;element name="searchMode" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
39
 *                   &lt;element name="addSynonymy" type="{http://www.w3.org/2001/XMLSchema}boolean"/&gt;
40
 *                 &lt;/sequence&gt;
41
 *               &lt;/restriction&gt;
42
 *             &lt;/complexContent&gt;
43
 *           &lt;/complexType&gt;
44
 *         &lt;/element&gt;
45
 *         &lt;element ref="{http://bgbm.org/biovel/drf/tnr/msg}Response" maxOccurs="unbounded"/&gt;
46
 *         &lt;element name="clientStatus" maxOccurs="unbounded" minOccurs="0"&gt;
47
 *           &lt;complexType&gt;
48
 *             &lt;complexContent&gt;
49
 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
50
 *                 &lt;sequence&gt;
51
 *                   &lt;element name="checklistId" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
52
 *                   &lt;element name="duration" type="{http://www.w3.org/2001/XMLSchema}decimal"/&gt;
53
 *                   &lt;element name="statusMessage" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
54
 *                 &lt;/sequence&gt;
55
 *               &lt;/restriction&gt;
56
 *             &lt;/complexContent&gt;
57
 *           &lt;/complexType&gt;
58
 *         &lt;/element&gt;
59
 *       &lt;/sequence&gt;
60
 *     &lt;/restriction&gt;
61
 *   &lt;/complexContent&gt;
62
 * &lt;/complexType&gt;
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
     * &lt;complexType&gt;
172
     *   &lt;complexContent&gt;
173
     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
174
     *       &lt;sequence&gt;
175
     *         &lt;element name="checklistId" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
176
     *         &lt;element name="duration" type="{http://www.w3.org/2001/XMLSchema}decimal"/&gt;
177
     *         &lt;element name="statusMessage" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
178
     *       &lt;/sequence&gt;
179
     *     &lt;/restriction&gt;
180
     *   &lt;/complexContent&gt;
181
     * &lt;/complexType&gt;
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
     * &lt;complexType&gt;
285
     *   &lt;complexContent&gt;
286
     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
287
     *       &lt;sequence&gt;
288
     *         &lt;element name="queryString" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
289
     *         &lt;element name="searchMode" type="{http://www.w3.org/2001/XMLSchema}string"/&gt;
290
     *         &lt;element name="addSynonymy" type="{http://www.w3.org/2001/XMLSchema}boolean"/&gt;
291
     *       &lt;/sequence&gt;
292
     *     &lt;/restriction&gt;
293
     *   &lt;/complexContent&gt;
294
     * &lt;/complexType&gt;
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
}
(5-5/13)