UI initial implementation.
[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("_id")
118             private String suiteId;
119
120             @JsonProperty("_name")
121             private String name;
122
123             public Suite() {
124
125             }
126
127             public String getSuiteId() {
128                 return this.suiteId;
129             }
130
131             public void setSuiteId(String suiteId) {
132                 this.suiteId = suiteId;
133             }
134
135             public String getName() {
136                 return this.name;
137             }
138
139             public void setName(String name) {
140                 this.name = name;
141             }
142
143             public Suite.Status getStatus() {
144                 return this.status;
145             }
146
147             public void setStatus(Suite.Status status) {
148                 this.status = status;
149             }
150
151             public class Status {
152                 @JsonProperty("_status")
153                 private String statusValue;
154
155                 @JsonProperty("_starttime")
156                 private String startTime;
157
158                 @JsonProperty("_endtime")
159                 private String endTime;
160
161                 public Status() {
162
163                 }
164
165                 public String getStatusValue() {
166                     return this.statusValue;
167                 }
168
169                 public void setStatusValue(String statusValue) {
170                     this.statusValue = statusValue;
171                 }
172
173                 public String getStartTime() {
174                     return this.startTime;
175                 }
176
177                 public void setStartTime(String startTime) {
178                     this.startTime = startTime;
179                 }
180
181                 public String getEndTime() {
182                     return this.endTime;
183                 }
184
185                 public void setEndTime(String endTime) {
186                     this.endTime = endTime;
187                 }
188             }
189
190         }
191
192         public class Statistics {
193             @JsonProperty("suite")
194             private Suite suite;
195
196             @JsonProperty("total")
197             private Total total;
198
199             @JsonProperty("tag")
200             private TagStat tag;
201
202             public Statistics() {
203
204             }
205
206             public Suite getSuite() {
207                 return this.suite;
208             }
209
210             public void setSuite(Suite suite) {
211                 this.suite = suite;
212             }
213
214             public Total getTotal() {
215                 return this.total;
216             }
217
218             public void setTotal(Total total) {
219                 this.total = total;
220             }
221
222             public TagStat getTag() {
223                 return this.tag;
224             }
225
226             public void setTag(TagStat tag) {
227                 this.tag = tag;
228             }
229
230             public class Suite {
231                 @JsonProperty("stat")
232                 private List<Status> stat;
233
234                 public Suite() {
235
236                 }
237
238                 public List<Status> getStat() {
239                     return this.stat;
240                 }
241
242                 public void setStat(List<Status> stat) {
243                     this.stat = stat;
244                 }
245             }
246
247             public class Total {
248                 @JsonProperty("stat")
249                 private List<Status> stat;
250
251                 public Total() {
252
253                 }
254
255                 public List<Status> getStat() {
256                     return this.stat;
257                 }
258
259                 public void setStat(List<Status> stat) {
260                     this.stat = stat;
261                 }
262             }
263
264             public class TagStat {
265                 @JsonProperty("stat")
266                 private List<Status> stat;
267
268                 public TagStat() {
269
270                 }
271
272                 public List<Status> getStat() {
273                     return this.stat;
274                 }
275
276                 public void setStat(List<Status> stat) {
277                     this.stat = stat;
278                 }
279             }
280         }
281     }
282
283 }