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

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

There is a newer version: 3.0.6
Show 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: 2012.06.15 at 07:34:37 PM PDT 
//


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 invocation complex type. * *

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

 * <complexType name="invocation">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="method">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence>
 *                   <element name="type" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
 *                 </sequence>
 *                 <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *         <element name="arg" type="{http://www.w3.org/2001/XMLSchema}anyType" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="result" minOccurs="0">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence>
 *                   <element name="value" type="{http://www.w3.org/2001/XMLSchema}anyType"/>
 *                   <element name="exception" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
 *                 </sequence>
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "invocation", propOrder = { "method", "args", "result" }) @XStreamAlias("invocation") @Generated(value = "XJC hudson-jaxb-ri-2.1-2", date = "2012-06-15T19:34:37") public class InvocationDTO implements Serializable { private final static long serialVersionUID = 1L; @XmlElement(required = true) @JsonProperty("method") protected InvocationDTO.Method method; @XmlElement(name = "arg") @JsonProperty("args") protected List args; @JsonProperty("result") protected InvocationDTO.Result result; /** * Gets the value of the method property. * * @return * possible object is * {@link InvocationDTO.Method } * */ public InvocationDTO.Method getMethod() { return method; } /** * Sets the value of the method property. * * @param value * allowed object is * {@link InvocationDTO.Method } * */ public void setMethod(InvocationDTO.Method value) { this.method = value; } /** * Gets the value of the args 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 args property. * *

* For example, to add a new item, do as follows: *

     *    getArgs().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Object } * * */ public List getArgs() { if (args == null) { args = new ArrayList(); } return this.args; } /** * Gets the value of the result property. * * @return * possible object is * {@link InvocationDTO.Result } * */ public InvocationDTO.Result getResult() { return result; } /** * Sets the value of the result property. * * @param value * allowed object is * {@link InvocationDTO.Result } * */ public void setResult(InvocationDTO.Result value) { this.result = value; } public InvocationDTO withMethod(InvocationDTO.Method value) { setMethod(value); return this; } public InvocationDTO withArgs(Object... values) { if (values!= null) { for (Object value: values) { getArgs().add(value); } } return this; } public InvocationDTO withArgs(Collection values) { if (values!= null) { getArgs().addAll(values); } return this; } public InvocationDTO withResult(InvocationDTO.Result value) { setResult(value); return this; } @Override public boolean equals(final Object obj) { if (obj == null) { return false; } if (this == obj) { return true; } if (!(obj instanceof InvocationDTO)) { return false; } final InvocationDTO that = ((InvocationDTO) obj); final com.flipthebird.gwthashcodeequals.EqualsBuilder builder = new com.flipthebird.gwthashcodeequals.EqualsBuilder(); builder.append(this.getMethod(), that.getMethod()); builder.append(this.getArgs(), that.getArgs()); builder.append(this.getResult(), that.getResult()); return builder.build(); } @Override public int hashCode() { final com.flipthebird.gwthashcodeequals.HashCodeBuilder builder = new com.flipthebird.gwthashcodeequals.HashCodeBuilder(); builder.append(this.getMethod()); builder.append(this.getArgs()); builder.append(this.getResult()); 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">
     *       <sequence>
     *         <element name="type" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
     *       </sequence>
     *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
     *     </restriction>
     *   </complexContent>
     * </complexType>
     * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "types" }) @XStreamAlias("invocation-method") @Generated(value = "XJC hudson-jaxb-ri-2.1-2", date = "2012-06-15T19:34:37") public static class Method implements Serializable { private final static long serialVersionUID = 1L; @XmlElement(name = "type") @JsonProperty("types") protected List types; @XmlAttribute(name = "name", required = true) @XStreamAsAttribute @JsonProperty("name") protected String name; /** * Gets the value of the types 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 types property. * *

* For example, to add a new item, do as follows: *

         *    getTypes().add(newItem);
         * 
* * *

* Objects of the following type(s) are allowed in the list * {@link String } * * */ public List getTypes() { if (types == null) { types = new ArrayList(); } return this.types; } /** * 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; } public InvocationDTO.Method withTypes(String... values) { if (values!= null) { for (String value: values) { getTypes().add(value); } } return this; } public InvocationDTO.Method withTypes(Collection values) { if (values!= null) { getTypes().addAll(values); } return this; } public InvocationDTO.Method withName(String value) { setName(value); return this; } @Override public boolean equals(final Object obj) { if (obj == null) { return false; } if (this == obj) { return true; } if (!(obj instanceof InvocationDTO.Method)) { return false; } final InvocationDTO.Method that = ((InvocationDTO.Method) obj); final com.flipthebird.gwthashcodeequals.EqualsBuilder builder = new com.flipthebird.gwthashcodeequals.EqualsBuilder(); builder.append(this.getTypes(), that.getTypes()); builder.append(this.getName(), that.getName()); return builder.build(); } @Override public int hashCode() { final com.flipthebird.gwthashcodeequals.HashCodeBuilder builder = new com.flipthebird.gwthashcodeequals.HashCodeBuilder(); builder.append(this.getTypes()); builder.append(this.getName()); 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">
     *       <sequence>
     *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}anyType"/>
     *         <element name="exception" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
     *       </sequence>
     *     </restriction>
     *   </complexContent>
     * </complexType>
     * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "value", "exception" }) @XStreamAlias("invocation-result") @Generated(value = "XJC hudson-jaxb-ri-2.1-2", date = "2012-06-15T19:34:37") public static class Result implements Serializable { private final static long serialVersionUID = 1L; @XmlElement(required = true) @JsonProperty("value") protected Object value; @JsonProperty("exception") protected boolean exception; /** * Gets the value of the value property. * * @return * possible object is * {@link Object } * */ public Object getValue() { return value; } /** * Sets the value of the value property. * * @param value * allowed object is * {@link Object } * */ public void setValue(Object value) { this.value = value; } /** * Gets the value of the exception property. * */ public boolean isException() { return exception; } /** * Sets the value of the exception property. * */ public void setException(boolean value) { this.exception = value; } public InvocationDTO.Result withValue(Object value) { setValue(value); return this; } public InvocationDTO.Result withException(boolean value) { setException(value); return this; } @Override public boolean equals(final Object obj) { if (obj == null) { return false; } if (this == obj) { return true; } if (!(obj instanceof InvocationDTO.Result)) { return false; } final InvocationDTO.Result that = ((InvocationDTO.Result) obj); final com.flipthebird.gwthashcodeequals.EqualsBuilder builder = new com.flipthebird.gwthashcodeequals.EqualsBuilder(); builder.append(this.getValue(), that.getValue()); builder.append(this.isException(), that.isException()); return builder.build(); } @Override public int hashCode() { final com.flipthebird.gwthashcodeequals.HashCodeBuilder builder = new com.flipthebird.gwthashcodeequals.HashCodeBuilder(); builder.append(this.getValue()); builder.append(this.isException()); return builder.build(); } } }