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

org.hudsonci.maven.model.ThrowableDTO Maven / Gradle / Ivy

The newest version!
//
// 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: 2011.12.06 at 07:15:37 PM GMT 
//


package org.hudsonci.maven.model;

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.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;


/**
 * 

Java class for throwable complex type. * *

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

 * <complexType name="throwable">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="message" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="stackTrace" type="{http://hudson-ci.org/xsd/hudson/2.1.0/maven/common}stackTrace" minOccurs="0"/>
 *         <element name="cause" type="{http://hudson-ci.org/xsd/hudson/2.1.0/maven/common}throwable" minOccurs="0"/>
 *       </sequence>
 *       <attribute name="type" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "throwable", propOrder = { "message", "stackTrace", "cause" }) @XStreamAlias("throwable") @Generated(value = "XJC hudson-jaxb-ri-2.1-2", date = "2011-12-06T19:15:37") public class ThrowableDTO implements Serializable { private final static long serialVersionUID = 1L; @JsonProperty("message") protected String message; @JsonProperty("stackTrace") protected StackTraceDTO stackTrace; @JsonProperty("cause") protected ThrowableDTO cause; @XmlAttribute(name = "type", required = true) @XStreamAsAttribute @JsonProperty("type") protected String type; /** * Gets the value of the message property. * * @return * possible object is * {@link String } * */ public String getMessage() { return message; } /** * Sets the value of the message property. * * @param value * allowed object is * {@link String } * */ public void setMessage(String value) { this.message = value; } /** * Gets the value of the stackTrace property. * * @return * possible object is * {@link StackTraceDTO } * */ public StackTraceDTO getStackTrace() { return stackTrace; } /** * Sets the value of the stackTrace property. * * @param value * allowed object is * {@link StackTraceDTO } * */ public void setStackTrace(StackTraceDTO value) { this.stackTrace = value; } /** * Gets the value of the cause property. * * @return * possible object is * {@link ThrowableDTO } * */ public ThrowableDTO getCause() { return cause; } /** * Sets the value of the cause property. * * @param value * allowed object is * {@link ThrowableDTO } * */ public void setCause(ThrowableDTO value) { this.cause = value; } /** * Gets the value of the type property. * * @return * possible object is * {@link String } * */ public String getType() { return type; } /** * Sets the value of the type property. * * @param value * allowed object is * {@link String } * */ public void setType(String value) { this.type = value; } public ThrowableDTO withMessage(String value) { setMessage(value); return this; } public ThrowableDTO withStackTrace(StackTraceDTO value) { setStackTrace(value); return this; } public ThrowableDTO withCause(ThrowableDTO value) { setCause(value); return this; } public ThrowableDTO withType(String value) { setType(value); return this; } @Override public boolean equals(final Object obj) { if (obj == null) { return false; } if (this == obj) { return true; } if (!(obj instanceof ThrowableDTO)) { return false; } final ThrowableDTO that = ((ThrowableDTO) obj); final EqualsBuilder builder = new EqualsBuilder(); builder.append(this.getMessage(), that.getMessage()); builder.append(this.getStackTrace(), that.getStackTrace()); builder.append(this.getCause(), that.getCause()); builder.append(this.getType(), that.getType()); return builder.build(); } @Override public int hashCode() { final HashCodeBuilder builder = new HashCodeBuilder(); builder.append(this.getMessage()); builder.append(this.getStackTrace()); builder.append(this.getCause()); builder.append(this.getType()); return builder.build(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy