org.hudsonci.maven.model.state.BuildSummaryDTO 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: 2012.06.15 at 07:34:37 PM PDT
//
package org.hudsonci.maven.model.state;
import java.io.Serializable;
import javax.annotation.Generated;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import com.flipthebird.gwthashcodeequals.EqualsBuilder;
import com.flipthebird.gwthashcodeequals.HashCodeBuilder;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import org.codehaus.jackson.annotate.JsonProperty;
import org.hudsonci.maven.model.ThrowableDTO;
/**
* Java class for buildSummary complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="buildSummary">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="failureCause" type="{http://hudson-ci.org/xsd/hudson/2.1.0/maven/common}throwable"/>
* </sequence>
* <attribute name="result" use="required" type="{http://hudson-ci.org/xsd/hudson/2.1.0/maven/state}buildResult" />
* <attribute name="duration" type="{http://www.w3.org/2001/XMLSchema}long" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "buildSummary", propOrder = {
"failureCause"
})
@XStreamAlias("buildSummary")
@Generated(value = "XJC hudson-jaxb-ri-2.1-2", date = "2012-06-15T19:34:37")
public class BuildSummaryDTO
implements Serializable
{
private final static long serialVersionUID = 1L;
@XmlElement(required = true)
@JsonProperty("failureCause")
protected ThrowableDTO failureCause;
@XmlAttribute(name = "result", required = true)
@XStreamAsAttribute
@JsonProperty("result")
protected BuildResultDTO result;
@XmlAttribute(name = "duration")
@XStreamAsAttribute
@JsonProperty("duration")
protected Long duration;
/**
* Gets the value of the failureCause property.
*
* @return
* possible object is
* {@link ThrowableDTO }
*
*/
public ThrowableDTO getFailureCause() {
return failureCause;
}
/**
* Sets the value of the failureCause property.
*
* @param value
* allowed object is
* {@link ThrowableDTO }
*
*/
public void setFailureCause(ThrowableDTO value) {
this.failureCause = value;
}
/**
* Gets the value of the result property.
*
* @return
* possible object is
* {@link BuildResultDTO }
*
*/
public BuildResultDTO getResult() {
return result;
}
/**
* Sets the value of the result property.
*
* @param value
* allowed object is
* {@link BuildResultDTO }
*
*/
public void setResult(BuildResultDTO value) {
this.result = value;
}
/**
* Gets the value of the duration property.
*
* @return
* possible object is
* {@link Long }
*
*/
public Long getDuration() {
return duration;
}
/**
* Sets the value of the duration property.
*
* @param value
* allowed object is
* {@link Long }
*
*/
public void setDuration(Long value) {
this.duration = value;
}
public BuildSummaryDTO withFailureCause(ThrowableDTO value) {
setFailureCause(value);
return this;
}
public BuildSummaryDTO withResult(BuildResultDTO value) {
setResult(value);
return this;
}
public BuildSummaryDTO withDuration(Long value) {
setDuration(value);
return this;
}
@Override
public boolean equals(final Object obj) {
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (!(obj instanceof BuildSummaryDTO)) {
return false;
}
final BuildSummaryDTO that = ((BuildSummaryDTO) obj);
final EqualsBuilder builder = new EqualsBuilder();
builder.append(this.getFailureCause(), that.getFailureCause());
builder.append(this.getResult(), that.getResult());
builder.append(this.getDuration(), that.getDuration());
return builder.build();
}
@Override
public int hashCode() {
final HashCodeBuilder builder = new HashCodeBuilder();
builder.append(this.getFailureCause());
builder.append(this.getResult());
builder.append(this.getDuration());
return builder.build();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy