org.hudsonci.maven.model.StackTraceDTO 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: 2011.12.06 at 07:15:37 PM GMT
//
package org.hudsonci.maven.model;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
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.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import org.codehaus.jackson.annotate.JsonProperty;
/**
* Java class for stackTrace complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="stackTrace">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="element" maxOccurs="unbounded">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute name="type" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="method" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="file" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="line" type="{http://www.w3.org/2001/XMLSchema}int" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "stackTrace", propOrder = {
"elements"
})
@XStreamAlias("stackTrace")
@Generated(value = "XJC hudson-jaxb-ri-2.1-2", date = "2011-12-06T19:15:37")
public class StackTraceDTO
implements Serializable
{
private final static long serialVersionUID = 1L;
@XmlElement(name = "element", required = true)
@JsonProperty("elements")
protected List elements;
/**
* Gets the value of the elements property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the elements property.
*
*
* For example, to add a new item, do as follows:
*
* getElements().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link StackTraceDTO.Element }
*
*
*/
public List getElements() {
if (elements == null) {
elements = new ArrayList();
}
return this.elements;
}
public StackTraceDTO withElements(StackTraceDTO.Element... values) {
if (values!= null) {
for (StackTraceDTO.Element value: values) {
getElements().add(value);
}
}
return this;
}
public StackTraceDTO withElements(Collection values) {
if (values!= null) {
getElements().addAll(values);
}
return this;
}
@Override
public boolean equals(final Object obj) {
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (!(obj instanceof StackTraceDTO)) {
return false;
}
final StackTraceDTO that = ((StackTraceDTO) obj);
final com.flipthebird.gwthashcodeequals.EqualsBuilder builder = new com.flipthebird.gwthashcodeequals.EqualsBuilder();
builder.append(this.getElements(), that.getElements());
return builder.build();
}
@Override
public int hashCode() {
final com.flipthebird.gwthashcodeequals.HashCodeBuilder builder = new com.flipthebird.gwthashcodeequals.HashCodeBuilder();
builder.append(this.getElements());
return builder.build();
}
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <attribute name="type" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="method" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="file" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="line" type="{http://www.w3.org/2001/XMLSchema}int" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")
@XStreamAlias("element")
@Generated(value = "XJC hudson-jaxb-ri-2.1-2", date = "2011-12-06T19:15:37")
public static class Element
implements Serializable
{
private final static long serialVersionUID = 1L;
@XmlAttribute(name = "type", required = true)
@XStreamAsAttribute
@JsonProperty("type")
protected String type;
@XmlAttribute(name = "method", required = true)
@XStreamAsAttribute
@JsonProperty("method")
protected String method;
@XmlAttribute(name = "file")
@XStreamAsAttribute
@JsonProperty("file")
protected String file;
@XmlAttribute(name = "line")
@XStreamAsAttribute
@JsonProperty("line")
protected Integer line;
/**
* 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;
}
/**
* Gets the value of the method property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getMethod() {
return method;
}
/**
* Sets the value of the method property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setMethod(String value) {
this.method = value;
}
/**
* Gets the value of the file property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getFile() {
return file;
}
/**
* Sets the value of the file property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setFile(String value) {
this.file = value;
}
/**
* Gets the value of the line property.
*
* @return
* possible object is
* {@link Integer }
*
*/
public Integer getLine() {
return line;
}
/**
* Sets the value of the line property.
*
* @param value
* allowed object is
* {@link Integer }
*
*/
public void setLine(Integer value) {
this.line = value;
}
public StackTraceDTO.Element withType(String value) {
setType(value);
return this;
}
public StackTraceDTO.Element withMethod(String value) {
setMethod(value);
return this;
}
public StackTraceDTO.Element withFile(String value) {
setFile(value);
return this;
}
public StackTraceDTO.Element withLine(Integer value) {
setLine(value);
return this;
}
@Override
public boolean equals(final Object obj) {
if (obj == null) {
return false;
}
if (this == obj) {
return true;
}
if (!(obj instanceof StackTraceDTO.Element)) {
return false;
}
final StackTraceDTO.Element that = ((StackTraceDTO.Element) obj);
final com.flipthebird.gwthashcodeequals.EqualsBuilder builder = new com.flipthebird.gwthashcodeequals.EqualsBuilder();
builder.append(this.getType(), that.getType());
builder.append(this.getMethod(), that.getMethod());
builder.append(this.getFile(), that.getFile());
builder.append(this.getLine(), that.getLine());
return builder.build();
}
@Override
public int hashCode() {
final com.flipthebird.gwthashcodeequals.HashCodeBuilder builder = new com.flipthebird.gwthashcodeequals.HashCodeBuilder();
builder.append(this.getType());
builder.append(this.getMethod());
builder.append(this.getFile());
builder.append(this.getLine());
return builder.build();
}
}
}