Merge "[RECV-94] Separate docker/robot invoking"
[validation.git] / ui / src / main / java / org / akraino / validation / ui / client / nexus / resources / RobotTestResult.java
1 /*
2  * Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License"); you may
5  * not use this file except in compliance with the License. You may obtain
6  * a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
13  * implied. See the License for the specific language governing
14  * permissions and limitations under the License.
15  */
16 package org.akraino.validation.ui.client.nexus.resources;
17
18 import java.util.List;
19
20 import org.codehaus.jackson.annotate.JsonIgnoreProperties;
21 import org.codehaus.jackson.annotate.JsonProperty;
22 import org.codehaus.jackson.map.annotate.JsonSerialize;
23
24 @JsonIgnoreProperties(ignoreUnknown = true)
25 @JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
26 public class RobotTestResult implements IResource {
27
28     @JsonProperty("robot")
29     private Robot robot;
30
31     private String name;
32
33     public RobotTestResult() {
34
35     }
36
37     public Robot getRobot() {
38         return this.robot;
39     }
40
41     public void setRobot(Robot robot) {
42         this.robot = robot;
43     }
44
45     public String getName() {
46         return this.name;
47     }
48
49     public void setName(String name) {
50         this.name = name;
51     }
52
53     public class Robot {
54         @JsonProperty("suite")
55         private Suite suite;
56
57         @JsonProperty("statistics")
58         private Statistics statistics;
59
60         @JsonProperty("generated")
61         private String generated;
62
63         @JsonProperty("generator")
64         private String generator;
65
66         @JsonProperty("errors")
67         private String errors;
68
69         public Robot() {
70
71         }
72
73         public Suite getSuite() {
74             return this.suite;
75         }
76
77         public void setSuite(Suite suite) {
78             this.suite = suite;
79         }
80
81         public Statistics getStatistics() {
82             return this.statistics;
83         }
84
85         public void setStatistics(Statistics statistics) {
86             this.statistics = statistics;
87         }
88
89         public String getGenerated() {
90             return this.generated;
91         }
92
93         public void setGenerated(String generated) {
94             this.generated = generated;
95         }
96
97         public String getGenerator() {
98             return this.generator;
99         }
100
101         public void setGenerator(String generator) {
102             this.generator = generator;
103         }
104
105         public String getErrors() {
106             return this.errors;
107         }
108
109         public void setErrors(String errors) {
110             this.errors = errors;
111         }
112
113         public class Suite {
114             @JsonProperty("status")
115             private Suite.Status status;
116
117             @JsonProperty("suite")
118             private Suite.NestedSuite suite;
119
120             @JsonProperty("id")
121             private String id;
122
123             @JsonProperty("name")
124             private String name;
125
126             @JsonProperty("source")
127             private String source;
128
129             public Suite() {
130
131             }
132
133             public String getId() {
134                 return this.id;
135             }
136
137             public void setId(String id) {
138                 this.id = id;
139             }
140
141             public String getName() {
142                 return this.name;
143             }
144
145             public void setName(String name) {
146                 this.name = name;
147             }
148
149             public String getSource() {
150                 return this.source;
151             }
152
153             public void setSource(String source) {
154                 this.source = source;
155             }
156
157             public Suite.Status getStatus() {
158                 return this.status;
159             }
160
161             public void setStatus(Suite.Status status) {
162                 this.status = status;
163             }
164
165             public Suite.NestedSuite getSuite() {
166                 return this.suite;
167             }
168
169             public void setSuite(Suite.NestedSuite suite) {
170                 this.suite = suite;
171             }
172
173             public class Status {
174                 @JsonProperty("status")
175                 private String status;
176
177                 @JsonProperty("starttime")
178                 private String starttime;
179
180                 @JsonProperty("endtime")
181                 private String endtime;
182
183                 public Status() {
184
185                 }
186
187                 public String getStatus() {
188                     return this.status;
189                 }
190
191                 public void setStatus(String status) {
192                     this.status = status;
193                 }
194
195                 public String getStarttime() {
196                     return this.starttime;
197                 }
198
199                 public void setStarttime(String starttime) {
200                     this.starttime = starttime;
201                 }
202
203                 public String getEndtime() {
204                     return this.endtime;
205                 }
206
207                 public void setEndtime(String endtime) {
208                     this.endtime = endtime;
209                 }
210             }
211
212             public class NestedSuite {
213                 @JsonProperty("doc")
214                 private String doc;
215
216                 @JsonProperty("id")
217                 private String id;
218
219                 @JsonProperty("name")
220                 private String name;
221
222                 @JsonProperty("source")
223                 private String source;
224
225                 @JsonProperty("test")
226                 private List<Test> test;
227
228                 @JsonProperty("kw")
229                 private List<Kw> kw;
230
231                 @JsonProperty("status")
232                 private NestedSuite.Status status;
233
234                 public NestedSuite() {
235
236                 }
237
238                 public String getDoc() {
239                     return this.doc;
240                 }
241
242                 public void setDoc(String doc) {
243                     this.doc = doc;
244                 }
245
246                 public String getId() {
247                     return this.id;
248                 }
249
250                 public void setId(String id) {
251                     this.id = id;
252                 }
253
254                 public String getName() {
255                     return this.name;
256                 }
257
258                 public void setName(String name) {
259                     this.name = name;
260                 }
261
262                 public String getSource() {
263                     return this.source;
264                 }
265
266                 public void setSource(String source) {
267                     this.source = source;
268                 }
269
270                 public List<Test> getTest() {
271                     return this.test;
272                 }
273
274                 public void setTest(List<Test> test) {
275                     this.test = test;
276                 }
277
278                 public List<Kw> getKw() {
279                     return this.kw;
280                 }
281
282                 public void setKw(List<Kw> kw) {
283                     this.kw = kw;
284                 }
285
286                 public NestedSuite.Status getStatus() {
287                     return this.status;
288                 }
289
290                 public void setStatus(NestedSuite.Status status) {
291                     this.status = status;
292                 }
293
294                 public class Status {
295                     @JsonProperty("status")
296                     private String status;
297
298                     @JsonProperty("starttime")
299                     private String starttime;
300
301                     @JsonProperty("endtime")
302                     private String endtime;
303
304                     public Status() {
305
306                     }
307
308                     public String getStatus() {
309                         return this.status;
310                     }
311
312                     public void setStatus(String status) {
313                         this.status = status;
314                     }
315
316                     public String getStarttime() {
317                         return this.starttime;
318                     }
319
320                     public void setStarttime(String starttime) {
321                         this.starttime = starttime;
322                     }
323
324                     public String getEndtime() {
325                         return this.endtime;
326                     }
327
328                     public void setEndtime(String endtime) {
329                         this.endtime = endtime;
330                     }
331
332                 }
333             }
334         }
335
336         public class Statistics {
337             @JsonProperty("suite")
338             private Suite suite;
339
340             @JsonProperty("total")
341             private Total total;
342
343             @JsonProperty("tag")
344             private TagStat tag;
345
346             public Statistics() {
347
348             }
349
350             public Suite getSuite() {
351                 return this.suite;
352             }
353
354             public void setSuite(Suite suite) {
355                 this.suite = suite;
356             }
357
358             public Total getTotal() {
359                 return this.total;
360             }
361
362             public void setTotal(Total total) {
363                 this.total = total;
364             }
365
366             public TagStat getTag() {
367                 return this.tag;
368             }
369
370             public void setTag(TagStat tag) {
371                 this.tag = tag;
372             }
373
374             public class Suite {
375                 @JsonProperty("stat")
376                 private List<Status> stat;
377
378                 public Suite() {
379
380                 }
381
382                 public List<Status> getStat() {
383                     return this.stat;
384                 }
385
386                 public void setStat(List<Status> stat) {
387                     this.stat = stat;
388                 }
389             }
390
391             public class Total {
392                 @JsonProperty("stat")
393                 private List<Status> stat;
394
395                 public Total() {
396
397                 }
398
399                 public List<Status> getStat() {
400                     return this.stat;
401                 }
402
403                 public void setStat(List<Status> stat) {
404                     this.stat = stat;
405                 }
406             }
407
408             public class TagStat {
409                 @JsonProperty("stat")
410                 private List<Status> stat;
411
412                 public TagStat() {
413
414                 }
415
416                 public List<Status> getStat() {
417                     return this.stat;
418                 }
419
420                 public void setStat(List<Status> stat) {
421                     this.stat = stat;
422                 }
423             }
424         }
425     }
426
427 }