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

org.smartdeveloperhub.jenkins.crawler.xml.ci.Run Maven / Gradle / Ivy

Go to download

The Crawler for the Jenkins integration for the Continuous Integration Harvester of the Smart Developer Hub project

The newest version!
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2016.07.14 at 09:08:59 AM UTC 
//


package org.smartdeveloperhub.jenkins.crawler.xml.ci;

import java.net.URI;
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.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.jvnet.jaxb2_commons.lang.CopyStrategy;
import org.jvnet.jaxb2_commons.lang.CopyTo;
import org.jvnet.jaxb2_commons.lang.Equals;
import org.jvnet.jaxb2_commons.lang.EqualsStrategy;
import org.jvnet.jaxb2_commons.lang.HashCode;
import org.jvnet.jaxb2_commons.lang.HashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBCopyStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBEqualsStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
import org.jvnet.jaxb2_commons.locator.util.LocatorUtils;
import org.w3._2001.xmlschema.Adapter2;


/**
 * 

Java class for Run complex type. * *

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

 * <complexType name="Run">
 *   <complexContent>
 *     <extension base="{http://www.smartdeveloperhub.org/harvester/ci/model/v1}Entity">
 *       <sequence>
 *         <element name="type" type="{http://www.smartdeveloperhub.org/harvester/ci/model/v1}RunType"/>
 *         <element name="timestamp" type="{http://www.w3.org/2001/XMLSchema}long"/>
 *         <element name="status" type="{http://www.smartdeveloperhub.org/harvester/ci/model/v1}RunStatus"/>
 *         <element name="result" type="{http://www.smartdeveloperhub.org/harvester/ci/model/v1}Result" minOccurs="0"/>
 *         <element name="codebase" type="{http://www.smartdeveloperhub.org/harvester/ci/model/v1}Codebase" minOccurs="0"/>
 *         <element name="commit" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *       </sequence>
 *       <attribute name="job" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Run", namespace = "http://www.smartdeveloperhub.org/harvester/ci/model/v1", propOrder = { "type", "timestamp", "status", "result", "codebase", "commit" }) @XmlRootElement(name = "run", namespace = "http://www.smartdeveloperhub.org/harvester/ci/model/v1") public class Run extends Entity implements Cloneable, CopyTo, Equals, HashCode, ToString { @XmlElement(required = true) @XmlSchemaType(name = "string") protected RunType type; protected long timestamp; @XmlElement(required = true) @XmlSchemaType(name = "string") protected RunStatus status; protected Result result; protected Codebase codebase; protected String commit; @XmlAttribute(name = "job", required = true) @XmlJavaTypeAdapter(Adapter2 .class) @XmlSchemaType(name = "anyURI") protected URI job; /** * Default no-arg constructor * */ public Run() { super(); } /** * Fully-initialising value constructor * */ public Run(final URI url, final String id, final String title, final String description, final RunType type, final long timestamp, final RunStatus status, final Result result, final Codebase codebase, final String commit, final URI job) { super(url, id, title, description); this.type = type; this.timestamp = timestamp; this.status = status; this.result = result; this.codebase = codebase; this.commit = commit; this.job = job; } /** * Gets the value of the type property. * * @return * possible object is * {@link RunType } * */ public RunType getType() { return type; } /** * Sets the value of the type property. * * @param value * allowed object is * {@link RunType } * */ public void setType(RunType value) { this.type = value; } public boolean isSetType() { return (this.type!= null); } /** * Gets the value of the timestamp property. * */ public long getTimestamp() { return timestamp; } /** * Sets the value of the timestamp property. * */ public void setTimestamp(long value) { this.timestamp = value; } public boolean isSetTimestamp() { return true; } /** * Gets the value of the status property. * * @return * possible object is * {@link RunStatus } * */ public RunStatus getStatus() { return status; } /** * Sets the value of the status property. * * @param value * allowed object is * {@link RunStatus } * */ public void setStatus(RunStatus value) { this.status = value; } public boolean isSetStatus() { return (this.status!= null); } /** * Gets the value of the result property. * * @return * possible object is * {@link Result } * */ public Result getResult() { return result; } /** * Sets the value of the result property. * * @param value * allowed object is * {@link Result } * */ public void setResult(Result value) { this.result = value; } public boolean isSetResult() { return (this.result!= null); } /** * Gets the value of the codebase property. * * @return * possible object is * {@link Codebase } * */ public Codebase getCodebase() { return codebase; } /** * Sets the value of the codebase property. * * @param value * allowed object is * {@link Codebase } * */ public void setCodebase(Codebase value) { this.codebase = value; } public boolean isSetCodebase() { return (this.codebase!= null); } /** * Gets the value of the commit property. * * @return * possible object is * {@link String } * */ public String getCommit() { return commit; } /** * Sets the value of the commit property. * * @param value * allowed object is * {@link String } * */ public void setCommit(String value) { this.commit = value; } public boolean isSetCommit() { return (this.commit!= null); } /** * Gets the value of the job property. * * @return * possible object is * {@link String } * */ public URI getJob() { return job; } /** * Sets the value of the job property. * * @param value * allowed object is * {@link String } * */ public void setJob(URI value) { this.job = value; } public boolean isSetJob() { return (this.job!= null); } public Run withType(RunType value) { setType(value); return this; } public Run withTimestamp(long value) { setTimestamp(value); return this; } public Run withStatus(RunStatus value) { setStatus(value); return this; } public Run withResult(Result value) { setResult(value); return this; } public Run withCodebase(Codebase value) { setCodebase(value); return this; } public Run withCommit(String value) { setCommit(value); return this; } public Run withJob(URI value) { setJob(value); return this; } @Override public Run withUrl(URI value) { setUrl(value); return this; } @Override public Run withId(String value) { setId(value); return this; } @Override public Run withTitle(String value) { setTitle(value); return this; } @Override public Run withDescription(String value) { setDescription(value); return this; } public String toString() { final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE; final StringBuilder buffer = new StringBuilder(); append(null, buffer, strategy); return buffer.toString(); } public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { strategy.appendStart(locator, this, buffer); appendFields(locator, buffer, strategy); strategy.appendEnd(locator, this, buffer); return buffer; } public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) { super.appendFields(locator, buffer, strategy); { RunType theType; theType = this.getType(); strategy.appendField(locator, this, "type", buffer, theType); } { long theTimestamp; theTimestamp = this.getTimestamp(); strategy.appendField(locator, this, "timestamp", buffer, theTimestamp); } { RunStatus theStatus; theStatus = this.getStatus(); strategy.appendField(locator, this, "status", buffer, theStatus); } { Result theResult; theResult = this.getResult(); strategy.appendField(locator, this, "result", buffer, theResult); } { Codebase theCodebase; theCodebase = this.getCodebase(); strategy.appendField(locator, this, "codebase", buffer, theCodebase); } { String theCommit; theCommit = this.getCommit(); strategy.appendField(locator, this, "commit", buffer, theCommit); } { URI theJob; theJob = this.getJob(); strategy.appendField(locator, this, "job", buffer, theJob); } return buffer; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof Run)) { return false; } if (this == object) { return true; } if (!super.equals(thisLocator, thatLocator, object, strategy)) { return false; } final Run that = ((Run) object); { RunType lhsType; lhsType = this.getType(); RunType rhsType; rhsType = that.getType(); if (!strategy.equals(LocatorUtils.property(thisLocator, "type", lhsType), LocatorUtils.property(thatLocator, "type", rhsType), lhsType, rhsType)) { return false; } } { long lhsTimestamp; lhsTimestamp = this.getTimestamp(); long rhsTimestamp; rhsTimestamp = that.getTimestamp(); if (!strategy.equals(LocatorUtils.property(thisLocator, "timestamp", lhsTimestamp), LocatorUtils.property(thatLocator, "timestamp", rhsTimestamp), lhsTimestamp, rhsTimestamp)) { return false; } } { RunStatus lhsStatus; lhsStatus = this.getStatus(); RunStatus rhsStatus; rhsStatus = that.getStatus(); if (!strategy.equals(LocatorUtils.property(thisLocator, "status", lhsStatus), LocatorUtils.property(thatLocator, "status", rhsStatus), lhsStatus, rhsStatus)) { return false; } } { Result lhsResult; lhsResult = this.getResult(); Result rhsResult; rhsResult = that.getResult(); if (!strategy.equals(LocatorUtils.property(thisLocator, "result", lhsResult), LocatorUtils.property(thatLocator, "result", rhsResult), lhsResult, rhsResult)) { return false; } } { Codebase lhsCodebase; lhsCodebase = this.getCodebase(); Codebase rhsCodebase; rhsCodebase = that.getCodebase(); if (!strategy.equals(LocatorUtils.property(thisLocator, "codebase", lhsCodebase), LocatorUtils.property(thatLocator, "codebase", rhsCodebase), lhsCodebase, rhsCodebase)) { return false; } } { String lhsCommit; lhsCommit = this.getCommit(); String rhsCommit; rhsCommit = that.getCommit(); if (!strategy.equals(LocatorUtils.property(thisLocator, "commit", lhsCommit), LocatorUtils.property(thatLocator, "commit", rhsCommit), lhsCommit, rhsCommit)) { return false; } } { URI lhsJob; lhsJob = this.getJob(); URI rhsJob; rhsJob = that.getJob(); if (!strategy.equals(LocatorUtils.property(thisLocator, "job", lhsJob), LocatorUtils.property(thatLocator, "job", rhsJob), lhsJob, rhsJob)) { return false; } } return true; } public boolean equals(Object object) { final EqualsStrategy strategy = JAXBEqualsStrategy.INSTANCE; return equals(null, null, object, strategy); } public int hashCode(ObjectLocator locator, HashCodeStrategy strategy) { int currentHashCode = super.hashCode(locator, strategy); { RunType theType; theType = this.getType(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "type", theType), currentHashCode, theType); } { long theTimestamp; theTimestamp = this.getTimestamp(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "timestamp", theTimestamp), currentHashCode, theTimestamp); } { RunStatus theStatus; theStatus = this.getStatus(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "status", theStatus), currentHashCode, theStatus); } { Result theResult; theResult = this.getResult(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "result", theResult), currentHashCode, theResult); } { Codebase theCodebase; theCodebase = this.getCodebase(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "codebase", theCodebase), currentHashCode, theCodebase); } { String theCommit; theCommit = this.getCommit(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "commit", theCommit), currentHashCode, theCommit); } { URI theJob; theJob = this.getJob(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "job", theJob), currentHashCode, theJob); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } public Object clone() { return copyTo(createNewInstance()); } public Object copyTo(Object target) { final CopyStrategy strategy = JAXBCopyStrategy.INSTANCE; return copyTo(null, target, strategy); } public Object copyTo(ObjectLocator locator, Object target, CopyStrategy strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); super.copyTo(locator, draftCopy, strategy); if (draftCopy instanceof Run) { final Run copy = ((Run) draftCopy); if (this.isSetType()) { RunType sourceType; sourceType = this.getType(); RunType copyType = ((RunType) strategy.copy(LocatorUtils.property(locator, "type", sourceType), sourceType)); copy.setType(copyType); } else { copy.type = null; } { long sourceTimestamp; sourceTimestamp = this.getTimestamp(); long copyTimestamp = strategy.copy(LocatorUtils.property(locator, "timestamp", sourceTimestamp), sourceTimestamp); copy.setTimestamp(copyTimestamp); } if (this.isSetStatus()) { RunStatus sourceStatus; sourceStatus = this.getStatus(); RunStatus copyStatus = ((RunStatus) strategy.copy(LocatorUtils.property(locator, "status", sourceStatus), sourceStatus)); copy.setStatus(copyStatus); } else { copy.status = null; } if (this.isSetResult()) { Result sourceResult; sourceResult = this.getResult(); Result copyResult = ((Result) strategy.copy(LocatorUtils.property(locator, "result", sourceResult), sourceResult)); copy.setResult(copyResult); } else { copy.result = null; } if (this.isSetCodebase()) { Codebase sourceCodebase; sourceCodebase = this.getCodebase(); Codebase copyCodebase = ((Codebase) strategy.copy(LocatorUtils.property(locator, "codebase", sourceCodebase), sourceCodebase)); copy.setCodebase(copyCodebase); } else { copy.codebase = null; } if (this.isSetCommit()) { String sourceCommit; sourceCommit = this.getCommit(); String copyCommit = ((String) strategy.copy(LocatorUtils.property(locator, "commit", sourceCommit), sourceCommit)); copy.setCommit(copyCommit); } else { copy.commit = null; } if (this.isSetJob()) { URI sourceJob; sourceJob = this.getJob(); URI copyJob = ((URI) strategy.copy(LocatorUtils.property(locator, "job", sourceJob), sourceJob)); copy.setJob(copyJob); } else { copy.job = null; } } return draftCopy; } public Object createNewInstance() { return new Run(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy