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

org.smartdeveloperhub.jenkins.crawler.xml.ci.Codebase 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.XmlElement;
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 Codebase complex type. * *

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

 * <complexType name="Codebase">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="location" type="{http://www.w3.org/2001/XMLSchema}anyURI"/>
 *         <element name="branch" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Codebase", namespace = "http://www.smartdeveloperhub.org/harvester/ci/model/v1", propOrder = { "location", "branch" }) public class Codebase implements Cloneable, CopyTo, Equals, HashCode, ToString { @XmlElement(required = true, type = String.class) @XmlJavaTypeAdapter(Adapter2 .class) @XmlSchemaType(name = "anyURI") protected URI location; @XmlElement(required = true) protected String branch; /** * Default no-arg constructor * */ public Codebase() { super(); } /** * Fully-initialising value constructor * */ public Codebase(final URI location, final String branch) { this.location = location; this.branch = branch; } /** * Gets the value of the location property. * * @return * possible object is * {@link String } * */ public URI getLocation() { return location; } /** * Sets the value of the location property. * * @param value * allowed object is * {@link String } * */ public void setLocation(URI value) { this.location = value; } public boolean isSetLocation() { return (this.location!= null); } /** * Gets the value of the branch property. * * @return * possible object is * {@link String } * */ public String getBranch() { return branch; } /** * Sets the value of the branch property. * * @param value * allowed object is * {@link String } * */ public void setBranch(String value) { this.branch = value; } public boolean isSetBranch() { return (this.branch!= null); } public Codebase withLocation(URI value) { setLocation(value); return this; } public Codebase withBranch(String value) { setBranch(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) { { URI theLocation; theLocation = this.getLocation(); strategy.appendField(locator, this, "location", buffer, theLocation); } { String theBranch; theBranch = this.getBranch(); strategy.appendField(locator, this, "branch", buffer, theBranch); } return buffer; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof Codebase)) { return false; } if (this == object) { return true; } final Codebase that = ((Codebase) object); { URI lhsLocation; lhsLocation = this.getLocation(); URI rhsLocation; rhsLocation = that.getLocation(); if (!strategy.equals(LocatorUtils.property(thisLocator, "location", lhsLocation), LocatorUtils.property(thatLocator, "location", rhsLocation), lhsLocation, rhsLocation)) { return false; } } { String lhsBranch; lhsBranch = this.getBranch(); String rhsBranch; rhsBranch = that.getBranch(); if (!strategy.equals(LocatorUtils.property(thisLocator, "branch", lhsBranch), LocatorUtils.property(thatLocator, "branch", rhsBranch), lhsBranch, rhsBranch)) { 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; { URI theLocation; theLocation = this.getLocation(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "location", theLocation), currentHashCode, theLocation); } { String theBranch; theBranch = this.getBranch(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "branch", theBranch), currentHashCode, theBranch); } 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 Codebase) { final Codebase copy = ((Codebase) draftCopy); if (this.isSetLocation()) { URI sourceLocation; sourceLocation = this.getLocation(); URI copyLocation = ((URI) strategy.copy(LocatorUtils.property(locator, "location", sourceLocation), sourceLocation)); copy.setLocation(copyLocation); } else { copy.location = null; } if (this.isSetBranch()) { String sourceBranch; sourceBranch = this.getBranch(); String copyBranch = ((String) strategy.copy(LocatorUtils.property(locator, "branch", sourceBranch), sourceBranch)); copy.setBranch(copyBranch); } else { copy.branch = null; } } return draftCopy; } public Object createNewInstance() { return new Codebase(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy