All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hudsonci.rest.model.build.TestCaseDTO Maven / Gradle / Ivy

//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-2 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2015.05.19 at 02:21:23 PM PDT 
//


package org.hudsonci.rest.model.build;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import com.flipthebird.gwthashcodeequals.EqualsBuilder;
import com.flipthebird.gwthashcodeequals.HashCodeBuilder;
import org.codehaus.jackson.annotate.JsonProperty;


/**
 * 

Java class for testCase complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="testCase">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="className" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="duration" type="{http://www.w3.org/2001/XMLSchema}float"/>
 *         <element name="errorStackTrace" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="errorDetails" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="status" type="{http://hudson-ci.org/xsd/hudson/2.1.0/rest/build}testCaseStatus"/>
 *         <element name="age" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "testCase", propOrder = { "name", "className", "duration", "errorStackTrace", "errorDetails", "status", "age" }) public class TestCaseDTO { @XmlElement(required = true) @JsonProperty("name") protected String name; @XmlElement(required = true) @JsonProperty("className") protected String className; @JsonProperty("duration") protected float duration; @XmlElement(required = true) @JsonProperty("errorStackTrace") protected String errorStackTrace; @XmlElement(required = true) @JsonProperty("errorDetails") protected String errorDetails; @XmlElement(required = true) @JsonProperty("status") protected TestCaseStatusDTO status; @JsonProperty("age") protected int age; /** * Gets the value of the name property. * * @return * possible object is * {@link String } * */ public String getName() { return name; } /** * Sets the value of the name property. * * @param value * allowed object is * {@link String } * */ public void setName(String value) { this.name = value; } /** * Gets the value of the className property. * * @return * possible object is * {@link String } * */ public String getClassName() { return className; } /** * Sets the value of the className property. * * @param value * allowed object is * {@link String } * */ public void setClassName(String value) { this.className = value; } /** * Gets the value of the duration property. * */ public float getDuration() { return duration; } /** * Sets the value of the duration property. * */ public void setDuration(float value) { this.duration = value; } /** * Gets the value of the errorStackTrace property. * * @return * possible object is * {@link String } * */ public String getErrorStackTrace() { return errorStackTrace; } /** * Sets the value of the errorStackTrace property. * * @param value * allowed object is * {@link String } * */ public void setErrorStackTrace(String value) { this.errorStackTrace = value; } /** * Gets the value of the errorDetails property. * * @return * possible object is * {@link String } * */ public String getErrorDetails() { return errorDetails; } /** * Sets the value of the errorDetails property. * * @param value * allowed object is * {@link String } * */ public void setErrorDetails(String value) { this.errorDetails = value; } /** * Gets the value of the status property. * * @return * possible object is * {@link TestCaseStatusDTO } * */ public TestCaseStatusDTO getStatus() { return status; } /** * Sets the value of the status property. * * @param value * allowed object is * {@link TestCaseStatusDTO } * */ public void setStatus(TestCaseStatusDTO value) { this.status = value; } /** * Gets the value of the age property. * */ public int getAge() { return age; } /** * Sets the value of the age property. * */ public void setAge(int value) { this.age = value; } public TestCaseDTO withName(String value) { setName(value); return this; } public TestCaseDTO withClassName(String value) { setClassName(value); return this; } public TestCaseDTO withDuration(float value) { setDuration(value); return this; } public TestCaseDTO withErrorStackTrace(String value) { setErrorStackTrace(value); return this; } public TestCaseDTO withErrorDetails(String value) { setErrorDetails(value); return this; } public TestCaseDTO withStatus(TestCaseStatusDTO value) { setStatus(value); return this; } public TestCaseDTO withAge(int value) { setAge(value); return this; } @Override public boolean equals(final Object obj) { if (obj == null) { return false; } if (this == obj) { return true; } if (!(obj instanceof TestCaseDTO)) { return false; } final TestCaseDTO that = ((TestCaseDTO) obj); final EqualsBuilder builder = new EqualsBuilder(); builder.append(this.getName(), that.getName()); builder.append(this.getClassName(), that.getClassName()); builder.append(this.getDuration(), that.getDuration()); builder.append(this.getErrorStackTrace(), that.getErrorStackTrace()); builder.append(this.getErrorDetails(), that.getErrorDetails()); builder.append(this.getStatus(), that.getStatus()); builder.append(this.getAge(), that.getAge()); return builder.build(); } @Override public int hashCode() { final HashCodeBuilder builder = new HashCodeBuilder(); builder.append(this.getName()); builder.append(this.getClassName()); builder.append(this.getDuration()); builder.append(this.getErrorStackTrace()); builder.append(this.getErrorDetails()); builder.append(this.getStatus()); builder.append(this.getAge()); return builder.build(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy