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

org.smartdeveloperhub.jenkins.crawler.xml.ci.Instance 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 java.util.ArrayList;
import java.util.Collection;
import java.util.List;
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 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;


/**
 * 

Java class for Instance complex type. * *

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

 * <complexType name="Instance">
 *   <complexContent>
 *     <extension base="{http://www.smartdeveloperhub.org/harvester/ci/model/v1}Entity">
 *       <sequence>
 *         <element name="jobs">
 *           <complexType>
 *             <complexContent>
 *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *                 <sequence>
 *                   <element name="job" type="{http://www.smartdeveloperhub.org/harvester/ci/model/v1}Reference" maxOccurs="unbounded" minOccurs="0"/>
 *                 </sequence>
 *               </restriction>
 *             </complexContent>
 *           </complexType>
 *         </element>
 *       </sequence>
 *     </extension>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Instance", namespace = "http://www.smartdeveloperhub.org/harvester/ci/model/v1", propOrder = { "jobs" }) @XmlRootElement(name = "instance", namespace = "http://www.smartdeveloperhub.org/harvester/ci/model/v1") public class Instance extends Entity implements Cloneable, CopyTo, Equals, HashCode, ToString { @XmlElement(required = true) protected Instance.Jobs jobs; /** * Default no-arg constructor * */ public Instance() { super(); } /** * Fully-initialising value constructor * */ public Instance(final URI url, final String id, final String title, final String description, final Instance.Jobs jobs) { super(url, id, title, description); this.jobs = jobs; } /** * Gets the value of the jobs property. * * @return * possible object is * {@link Instance.Jobs } * */ public Instance.Jobs getJobs() { return jobs; } /** * Sets the value of the jobs property. * * @param value * allowed object is * {@link Instance.Jobs } * */ public void setJobs(Instance.Jobs value) { this.jobs = value; } public boolean isSetJobs() { return (this.jobs!= null); } public Instance withJobs(Instance.Jobs value) { setJobs(value); return this; } @Override public Instance withUrl(URI value) { setUrl(value); return this; } @Override public Instance withId(String value) { setId(value); return this; } @Override public Instance withTitle(String value) { setTitle(value); return this; } @Override public Instance 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); { Instance.Jobs theJobs; theJobs = this.getJobs(); strategy.appendField(locator, this, "jobs", buffer, theJobs); } return buffer; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof Instance)) { return false; } if (this == object) { return true; } if (!super.equals(thisLocator, thatLocator, object, strategy)) { return false; } final Instance that = ((Instance) object); { Instance.Jobs lhsJobs; lhsJobs = this.getJobs(); Instance.Jobs rhsJobs; rhsJobs = that.getJobs(); if (!strategy.equals(LocatorUtils.property(thisLocator, "jobs", lhsJobs), LocatorUtils.property(thatLocator, "jobs", rhsJobs), lhsJobs, rhsJobs)) { 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); { Instance.Jobs theJobs; theJobs = this.getJobs(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "jobs", theJobs), currentHashCode, theJobs); } 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 Instance) { final Instance copy = ((Instance) draftCopy); if (this.isSetJobs()) { Instance.Jobs sourceJobs; sourceJobs = this.getJobs(); Instance.Jobs copyJobs = ((Instance.Jobs) strategy.copy(LocatorUtils.property(locator, "jobs", sourceJobs), sourceJobs)); copy.setJobs(copyJobs); } else { copy.jobs = null; } } return draftCopy; } public Object createNewInstance() { return new Instance(); } /** *

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="job" type="{http://www.smartdeveloperhub.org/harvester/ci/model/v1}Reference" maxOccurs="unbounded" minOccurs="0"/>
     *       </sequence>
     *     </restriction>
     *   </complexContent>
     * </complexType>
     * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "jobs" }) public static class Jobs implements Cloneable, CopyTo, Equals, HashCode, ToString { @XmlElement(name = "job") protected List jobs; /** * Default no-arg constructor * */ public Jobs() { super(); } /** * Fully-initialising value constructor * */ public Jobs(final List jobs) { this.jobs = jobs; } /** * Gets the value of the jobs 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 jobs property. * *

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

         *    getJobs().add(newItem);
         * 
* * *

* Objects of the following type(s) are allowed in the list * {@link Reference } * * */ public List getJobs() { if (jobs == null) { jobs = new ArrayList(); } return this.jobs; } public boolean isSetJobs() { return ((this.jobs!= null)&&(!this.jobs.isEmpty())); } public void unsetJobs() { this.jobs = null; } public Instance.Jobs withJobs(Reference... values) { if (values!= null) { for (Reference value: values) { getJobs().add(value); } } return this; } public Instance.Jobs withJobs(Collection values) { if (values!= null) { getJobs().addAll(values); } 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) { { List theJobs; theJobs = (this.isSetJobs()?this.getJobs():null); strategy.appendField(locator, this, "jobs", buffer, theJobs); } return buffer; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof Instance.Jobs)) { return false; } if (this == object) { return true; } final Instance.Jobs that = ((Instance.Jobs) object); { List lhsJobs; lhsJobs = (this.isSetJobs()?this.getJobs():null); List rhsJobs; rhsJobs = (that.isSetJobs()?that.getJobs():null); if (!strategy.equals(LocatorUtils.property(thisLocator, "jobs", lhsJobs), LocatorUtils.property(thatLocator, "jobs", rhsJobs), lhsJobs, rhsJobs)) { 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 = 1; { List theJobs; theJobs = (this.isSetJobs()?this.getJobs():null); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "jobs", theJobs), currentHashCode, theJobs); } 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); if (draftCopy instanceof Instance.Jobs) { final Instance.Jobs copy = ((Instance.Jobs) draftCopy); if (this.isSetJobs()) { List sourceJobs; sourceJobs = (this.isSetJobs()?this.getJobs():null); @SuppressWarnings("unchecked") List copyJobs = ((List ) strategy.copy(LocatorUtils.property(locator, "jobs", sourceJobs), sourceJobs)); copy.unsetJobs(); if (copyJobs!= null) { List uniqueJobsl = copy.getJobs(); uniqueJobsl.addAll(copyJobs); } } else { copy.unsetJobs(); } } return draftCopy; } public Object createNewInstance() { return new Instance.Jobs(); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy