org.hudsonci.maven.model.state.ExecutionActivityDTO 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 java.util.Date;
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.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
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.w3._2001.xmlschema.Adapter1;
/**
* Java class for executionActivity complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="executionActivity">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute name="type" use="required" type="{http://hudson-ci.org/xsd/hudson/2.1.0/maven/state}executionActivityType" />
* <attribute name="timestamp" use="required" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "executionActivity")
@XStreamAlias("executionActivity")
@Generated(value = "XJC hudson-jaxb-ri-2.1-2", date = "2012-06-15T19:34:37")
public class ExecutionActivityDTO
implements Serializable
{
private final static long serialVersionUID = 1L;
@XmlAttribute(name = "type", required = true)
@XStreamAsAttribute
@JsonProperty("type")
protected ExecutionActivityTypeDTO type;
@XmlAttribute(name = "timestamp", required = true)
@XmlJavaTypeAdapter(Adapter1 .class)
@XmlSchemaType(name = "dateTime")
@XStreamAsAttribute
@JsonProperty("timestamp")
protected Date timestamp;
/**
* Gets the value of the type property.
*
* @return
* possible object is
* {@link ExecutionActivityTypeDTO }
*
*/
public ExecutionActivityTypeDTO getType() {
return type;
}
/**
* Sets the value of the type property.
*
* @param value
* allowed object is
* {@link ExecutionActivityTypeDTO }
*
*/
public void setType(ExecutionActivityTypeDTO value) {
this.type = value;
}
/**
* Gets the value of the timestamp property.
*
* @return
* possible object is
* {@link String }
*
*/
public Date getTimestamp() {
return timestamp;
}
/**
* Sets the value of the timestamp property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTimestamp(Date value) {
this.timestamp = value;
}
public ExecutionActivityDTO withType(ExecutionActivityTypeDTO value) {
setType(value);
return this;
}
public ExecutionActivityDTO withTimestamp(Date value) {
setTimestamp(value);
return this;
}
@Override
public boolean equals(final Object obj) {
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (!(obj instanceof ExecutionActivityDTO)) {
return false;
}
final ExecutionActivityDTO that = ((ExecutionActivityDTO) obj);
final EqualsBuilder builder = new EqualsBuilder();
builder.append(this.getType(), that.getType());
builder.append(this.getTimestamp(), that.getTimestamp());
return builder.build();
}
@Override
public int hashCode() {
final HashCodeBuilder builder = new HashCodeBuilder();
builder.append(this.getType());
builder.append(this.getTimestamp());
return builder.build();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy