001// 002// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2 003// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 004// Any modifications to this file will be lost upon recompilation of the source schema. 005// Generated on: 2017.04.15 at 10:50:52 PM IST 006// 007 008 009package com.thed.zblast.parser.jaxb.junit; 010 011import java.text.ParseException; 012import java.text.SimpleDateFormat; 013import java.util.ArrayList; 014import java.util.Date; 015import java.util.List; 016import javax.xml.bind.annotation.XmlAccessType; 017import javax.xml.bind.annotation.XmlAccessorType; 018import javax.xml.bind.annotation.XmlAttribute; 019import javax.xml.bind.annotation.XmlElement; 020import javax.xml.bind.annotation.XmlRootElement; 021import javax.xml.bind.annotation.XmlTransient; 022import javax.xml.bind.annotation.XmlType; 023 024 025/** 026 * <p>Java class for anonymous complex type. 027 * 028 * <p>The following schema fragment specifies the expected content contained within this class. 029 * 030 * <pre> 031 * <complexType> 032 * <complexContent> 033 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 034 * <sequence> 035 * <element ref="{}properties" minOccurs="0"/> 036 * <element ref="{}testcase" maxOccurs="unbounded" minOccurs="0"/> 037 * <element ref="{}system-out" minOccurs="0"/> 038 * <element ref="{}system-err" minOccurs="0"/> 039 * </sequence> 040 * <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> 041 * <attribute name="tests" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> 042 * <attribute name="failures" type="{http://www.w3.org/2001/XMLSchema}string" /> 043 * <attribute name="errors" type="{http://www.w3.org/2001/XMLSchema}string" /> 044 * <attribute name="time" type="{http://www.w3.org/2001/XMLSchema}string" /> 045 * <attribute name="disabled" type="{http://www.w3.org/2001/XMLSchema}string" /> 046 * <attribute name="skipped" type="{http://www.w3.org/2001/XMLSchema}string" /> 047 * <attribute name="timestamp" type="{http://www.w3.org/2001/XMLSchema}string" /> 048 * <attribute name="hostname" type="{http://www.w3.org/2001/XMLSchema}string" /> 049 * <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}string" /> 050 * <attribute name="package" type="{http://www.w3.org/2001/XMLSchema}string" /> 051 * </restriction> 052 * </complexContent> 053 * </complexType> 054 * </pre> 055 * 056 * 057 */ 058@XmlAccessorType(XmlAccessType.FIELD) 059@XmlType(name = "", propOrder = { 060 "properties", 061 "testcase", 062 "systemOut", 063 "systemErr" 064}) 065@XmlRootElement(name = "testsuite") 066public class Testsuite { 067 068 protected Properties properties; 069 protected List<Testcase> testcase; 070 @XmlElement(name = "system-out") 071 protected String systemOut; 072 @XmlElement(name = "system-err") 073 protected String systemErr; 074 @XmlAttribute(name = "name", required = true) 075 protected String name; 076 @XmlAttribute(name = "tests", required = true) 077 protected String tests; 078 @XmlAttribute(name = "failures") 079 protected String failures; 080 @XmlAttribute(name = "errors") 081 protected String errors; 082 @XmlAttribute(name = "time") 083 protected String time; 084 @XmlAttribute(name = "disabled") 085 protected String disabled; 086 @XmlAttribute(name = "skipped") 087 protected String skipped; 088 @XmlAttribute(name = "timestamp") 089 protected String timestamp; 090 @XmlAttribute(name = "hostname") 091 protected String hostname; 092 @XmlAttribute(name = "id") 093 protected String id; 094 @XmlAttribute(name = "package") 095 protected String _package; 096 @XmlTransient 097 private String attachmentFile; 098 @XmlTransient 099 private Date timeInDate; 100 @XmlTransient 101 private SimpleDateFormat format= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSSZ"); 102 103 public String getAttachmentFile() { 104 return attachmentFile; 105 } 106 107 public void setAttachmentFile(String attachmentFile) { 108 this.attachmentFile = attachmentFile; 109 } 110 111 public Date getTimeInDate() { 112 Date date=null; 113 try { 114 date= format.parse(getTimestamp()); 115 } catch (ParseException e) { 116 e.printStackTrace(); 117 } 118 return date; 119 } 120 121 public void setTimeInDate(Date timeInDate) { this.timeInDate = timeInDate; } 122 123 124 /** 125 * Gets the value of the properties property. 126 * 127 * @return 128 * possible object is 129 * {@link Properties } 130 * 131 */ 132 public Properties getProperties() { 133 return properties; 134 } 135 136 /** 137 * Sets the value of the properties property. 138 * 139 * @param value 140 * allowed object is 141 * {@link Properties } 142 * 143 */ 144 public void setProperties(Properties value) { 145 this.properties = value; 146 } 147 148 /** 149 * Gets the value of the testcase 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 testcase property. 156 * 157 * <p> 158 * For example, to add a new item, do as follows: 159 * <pre> 160 * getTestcase().add(newItem); 161 * </pre> 162 * 163 * 164 * <p> 165 * Objects of the following type(s) are allowed in the list 166 * {@link Testcase } 167 * 168 * 169 */ 170 public List<Testcase> getTestcase() { 171 if (testcase == null) { 172 testcase = new ArrayList<Testcase>(); 173 } 174 return this.testcase; 175 } 176 177 /** 178 * Gets the value of the systemOut property. 179 * 180 * @return 181 * possible object is 182 * {@link String } 183 * 184 */ 185 public String getSystemOut() { 186 return systemOut; 187 } 188 189 /** 190 * Sets the value of the systemOut property. 191 * 192 * @param value 193 * allowed object is 194 * {@link String } 195 * 196 */ 197 public void setSystemOut(String value) { 198 this.systemOut = value; 199 } 200 201 /** 202 * Gets the value of the systemErr property. 203 * 204 * @return 205 * possible object is 206 * {@link String } 207 * 208 */ 209 public String getSystemErr() { 210 return systemErr; 211 } 212 213 /** 214 * Sets the value of the systemErr property. 215 * 216 * @param value 217 * allowed object is 218 * {@link String } 219 * 220 */ 221 public void setSystemErr(String value) { 222 this.systemErr = value; 223 } 224 225 /** 226 * Gets the value of the name property. 227 * 228 * @return 229 * possible object is 230 * {@link String } 231 * 232 */ 233 public String getName() { 234 return name; 235 } 236 237 /** 238 * Sets the value of the name property. 239 * 240 * @param value 241 * allowed object is 242 * {@link String } 243 * 244 */ 245 public void setName(String value) { 246 this.name = value; 247 } 248 249 /** 250 * Gets the value of the tests property. 251 * 252 * @return 253 * possible object is 254 * {@link String } 255 * 256 */ 257 public String getTests() { 258 return tests; 259 } 260 261 /** 262 * Sets the value of the tests property. 263 * 264 * @param value 265 * allowed object is 266 * {@link String } 267 * 268 */ 269 public void setTests(String value) { 270 this.tests = value; 271 } 272 273 /** 274 * Gets the value of the failures property. 275 * 276 * @return 277 * possible object is 278 * {@link String } 279 * 280 */ 281 public String getFailures() { 282 return failures; 283 } 284 285 /** 286 * Sets the value of the failures property. 287 * 288 * @param value 289 * allowed object is 290 * {@link String } 291 * 292 */ 293 public void setFailures(String value) { 294 this.failures = value; 295 } 296 297 /** 298 * Gets the value of the errors property. 299 * 300 * @return 301 * possible object is 302 * {@link String } 303 * 304 */ 305 public String getErrors() { 306 return errors; 307 } 308 309 /** 310 * Sets the value of the errors property. 311 * 312 * @param value 313 * allowed object is 314 * {@link String } 315 * 316 */ 317 public void setErrors(String value) { 318 this.errors = value; 319 } 320 321 /** 322 * Gets the value of the time property. 323 * 324 * @return 325 * possible object is 326 * {@link String } 327 * 328 */ 329 public String getTime() { 330 return time; 331 } 332 333 /** 334 * Sets the value of the time property. 335 * 336 * @param value 337 * allowed object is 338 * {@link String } 339 * 340 */ 341 public void setTime(String value) { 342 this.time = value; 343 } 344 345 /** 346 * Gets the value of the disabled property. 347 * 348 * @return 349 * possible object is 350 * {@link String } 351 * 352 */ 353 public String getDisabled() { 354 return disabled; 355 } 356 357 /** 358 * Sets the value of the disabled property. 359 * 360 * @param value 361 * allowed object is 362 * {@link String } 363 * 364 */ 365 public void setDisabled(String value) { 366 this.disabled = value; 367 } 368 369 /** 370 * Gets the value of the skipped property. 371 * 372 * @return 373 * possible object is 374 * {@link String } 375 * 376 */ 377 public String getSkipped() { 378 return skipped; 379 } 380 381 /** 382 * Sets the value of the skipped property. 383 * 384 * @param value 385 * allowed object is 386 * {@link String } 387 * 388 */ 389 public void setSkipped(String value) { 390 this.skipped = value; 391 } 392 393 /** 394 * Gets the value of the timestamp property. 395 * 396 * @return 397 * possible object is 398 * {@link String } 399 * 400 */ 401 public String getTimestamp() { 402 return timestamp; 403 } 404 405 /** 406 * Sets the value of the timestamp property. 407 * 408 * @param value 409 * allowed object is 410 * {@link String } 411 * 412 */ 413 public void setTimestamp(String value) { 414 this.timestamp = value; 415 } 416 417 /** 418 * Gets the value of the hostname property. 419 * 420 * @return 421 * possible object is 422 * {@link String } 423 * 424 */ 425 public String getHostname() { 426 return hostname; 427 } 428 429 /** 430 * Sets the value of the hostname property. 431 * 432 * @param value 433 * allowed object is 434 * {@link String } 435 * 436 */ 437 public void setHostname(String value) { 438 this.hostname = value; 439 } 440 441 /** 442 * Gets the value of the id property. 443 * 444 * @return 445 * possible object is 446 * {@link String } 447 * 448 */ 449 public String getId() { 450 return id; 451 } 452 453 /** 454 * Sets the value of the id property. 455 * 456 * @param value 457 * allowed object is 458 * {@link String } 459 * 460 */ 461 public void setId(String value) { 462 this.id = value; 463 } 464 465 /** 466 * Gets the value of the package property. 467 * 468 * @return 469 * possible object is 470 * {@link String } 471 * 472 */ 473 public String getPackage() { 474 return _package; 475 } 476 477 /** 478 * Sets the value of the package property. 479 * 480 * @param value 481 * allowed object is 482 * {@link String } 483 * 484 */ 485 public void setPackage(String value) { 486 this._package = value; 487 } 488 489 public void setTestcase(List<Testcase> testcase) { 490 this.testcase = testcase; 491 } 492}