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

org.hudsonci.maven.model.state.BuildStateDTO 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.state;

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.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import com.flipthebird.gwthashcodeequals.EqualsBuilder;
import com.flipthebird.gwthashcodeequals.HashCodeBuilder;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import org.codehaus.jackson.annotate.JsonProperty;
import org.hudsonci.maven.model.UniqueList;
import org.hudsonci.maven.model.config.BuildConfigurationDTO;


/**
 * 

Java class for buildState complex type. * *

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

 * <complexType name="buildState">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="buildConfiguration" type="{http://hudson-ci.org/xsd/hudson/2.1.0/maven/config}buildConfiguration"/>
 *         <element name="executionActivity" type="{http://hudson-ci.org/xsd/hudson/2.1.0/maven/state}executionActivity" maxOccurs="unbounded"/>
 *         <element name="runtimeEnvironment" type="{http://hudson-ci.org/xsd/hudson/2.1.0/maven/state}runtimeEnvironment"/>
 *         <element name="participatingProject" type="{http://hudson-ci.org/xsd/hudson/2.1.0/maven/state}mavenProject" maxOccurs="unbounded"/>
 *         <element name="artifact" type="{http://hudson-ci.org/xsd/hudson/2.1.0/maven/state}artifact" maxOccurs="unbounded"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "buildState", propOrder = { "buildConfiguration", "executionActivities", "runtimeEnvironment", "participatingProjects", "artifacts" }) @XmlRootElement(name = "buildState") @XStreamAlias("buildState") @Generated(value = "XJC hudson-jaxb-ri-2.1-2", date = "2012-06-15T19:34:37") public class BuildStateDTO implements Serializable { private final static long serialVersionUID = 1L; @XmlElement(required = true) @JsonProperty("buildConfiguration") protected BuildConfigurationDTO buildConfiguration; @XmlElement(name = "executionActivity", required = true) @JsonProperty("executionActivities") protected List executionActivities; @XmlElement(required = true) @JsonProperty("runtimeEnvironment") protected RuntimeEnvironmentDTO runtimeEnvironment; @XmlElement(name = "participatingProject", required = true) @JsonProperty("participatingProjects") protected List participatingProjects; @XmlElement(name = "artifact", required = true) @JsonProperty("artifacts") protected List artifacts = new UniqueList(); /** * Gets the value of the buildConfiguration property. * * @return * possible object is * {@link BuildConfigurationDTO } * */ public BuildConfigurationDTO getBuildConfiguration() { return buildConfiguration; } /** * Sets the value of the buildConfiguration property. * * @param value * allowed object is * {@link BuildConfigurationDTO } * */ public void setBuildConfiguration(BuildConfigurationDTO value) { this.buildConfiguration = value; } /** * Gets the value of the executionActivities 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 executionActivities property. * *

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

     *    getExecutionActivities().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link ExecutionActivityDTO } * * */ public List getExecutionActivities() { if (executionActivities == null) { executionActivities = new ArrayList(); } return this.executionActivities; } /** * Gets the value of the runtimeEnvironment property. * * @return * possible object is * {@link RuntimeEnvironmentDTO } * */ public RuntimeEnvironmentDTO getRuntimeEnvironment() { return runtimeEnvironment; } /** * Sets the value of the runtimeEnvironment property. * * @param value * allowed object is * {@link RuntimeEnvironmentDTO } * */ public void setRuntimeEnvironment(RuntimeEnvironmentDTO value) { this.runtimeEnvironment = value; } /** * Gets the value of the participatingProjects 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 participatingProjects property. * *

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

     *    getParticipatingProjects().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link MavenProjectDTO } * * */ public List getParticipatingProjects() { if (participatingProjects == null) { participatingProjects = new ArrayList(); } return this.participatingProjects; } /** * Gets the value of the artifacts 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 artifacts property. * *

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

     *    getArtifacts().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link ArtifactDTO } * * */ public List getArtifacts() { if (artifacts == null) { artifacts = new UniqueList(); } return this.artifacts; } public BuildStateDTO withBuildConfiguration(BuildConfigurationDTO value) { setBuildConfiguration(value); return this; } public BuildStateDTO withExecutionActivities(ExecutionActivityDTO... values) { if (values!= null) { for (ExecutionActivityDTO value: values) { getExecutionActivities().add(value); } } return this; } public BuildStateDTO withExecutionActivities(Collection values) { if (values!= null) { getExecutionActivities().addAll(values); } return this; } public BuildStateDTO withRuntimeEnvironment(RuntimeEnvironmentDTO value) { setRuntimeEnvironment(value); return this; } public BuildStateDTO withParticipatingProjects(MavenProjectDTO... values) { if (values!= null) { for (MavenProjectDTO value: values) { getParticipatingProjects().add(value); } } return this; } public BuildStateDTO withParticipatingProjects(Collection values) { if (values!= null) { getParticipatingProjects().addAll(values); } return this; } public BuildStateDTO withArtifacts(ArtifactDTO... values) { if (values!= null) { for (ArtifactDTO value: values) { getArtifacts().add(value); } } return this; } public BuildStateDTO withArtifacts(Collection values) { if (values!= null) { getArtifacts().addAll(values); } return this; } @Override public boolean equals(final Object obj) { if (obj == null) { return false; } if (this == obj) { return true; } if (!(obj instanceof BuildStateDTO)) { return false; } final BuildStateDTO that = ((BuildStateDTO) obj); final EqualsBuilder builder = new EqualsBuilder(); builder.append(this.getBuildConfiguration(), that.getBuildConfiguration()); builder.append(this.getExecutionActivities(), that.getExecutionActivities()); builder.append(this.getRuntimeEnvironment(), that.getRuntimeEnvironment()); builder.append(this.getParticipatingProjects(), that.getParticipatingProjects()); builder.append(this.getArtifacts(), that.getArtifacts()); return builder.build(); } @Override public int hashCode() { final HashCodeBuilder builder = new HashCodeBuilder(); builder.append(this.getBuildConfiguration()); builder.append(this.getExecutionActivities()); builder.append(this.getRuntimeEnvironment()); builder.append(this.getParticipatingProjects()); builder.append(this.getArtifacts()); return builder.build(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy