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

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

//
// 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 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.XmlType;
import com.flipthebird.gwthashcodeequals.EqualsBuilder;
import com.flipthebird.gwthashcodeequals.HashCodeBuilder;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import org.codehaus.jackson.annotate.JsonProperty;


/**
 * 

Java class for mavenCoordinates complex type. * *

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

 * <complexType name="mavenCoordinates">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <attribute name="groupId" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="artifactId" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="version" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="type" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="classifier" type="{http://www.w3.org/2001/XMLSchema}string" />
 *       <attribute name="expandedMetaVersion" type="{http://www.w3.org/2001/XMLSchema}string" />
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "mavenCoordinates") @XStreamAlias("mavenCoordinates") @Generated(value = "XJC hudson-jaxb-ri-2.1-2", date = "2012-06-15T19:34:37") public class MavenCoordinatesDTO implements Serializable { private final static long serialVersionUID = 1L; @XmlAttribute(name = "groupId", required = true) @XStreamAsAttribute @JsonProperty("groupId") protected String groupId; @XmlAttribute(name = "artifactId", required = true) @XStreamAsAttribute @JsonProperty("artifactId") protected String artifactId; @XmlAttribute(name = "version") @XStreamAsAttribute @JsonProperty("version") protected String version; @XmlAttribute(name = "type") @XStreamAsAttribute @JsonProperty("type") protected String type; @XmlAttribute(name = "classifier") @XStreamAsAttribute @JsonProperty("classifier") protected String classifier; @XmlAttribute(name = "expandedMetaVersion") @XStreamAsAttribute @JsonProperty("expandedMetaVersion") protected String expandedMetaVersion; /** * Gets the value of the groupId property. * * @return * possible object is * {@link String } * */ public String getGroupId() { return groupId; } /** * Sets the value of the groupId property. * * @param value * allowed object is * {@link String } * */ public void setGroupId(String value) { this.groupId = value; } /** * Gets the value of the artifactId property. * * @return * possible object is * {@link String } * */ public String getArtifactId() { return artifactId; } /** * Sets the value of the artifactId property. * * @param value * allowed object is * {@link String } * */ public void setArtifactId(String value) { this.artifactId = value; } /** * Gets the value of the version property. * * @return * possible object is * {@link String } * */ public String getVersion() { return version; } /** * Sets the value of the version property. * * @param value * allowed object is * {@link String } * */ public void setVersion(String value) { this.version = value; } /** * Gets the value of the type property. * * @return * possible object is * {@link String } * */ public String getType() { return type; } /** * Sets the value of the type property. * * @param value * allowed object is * {@link String } * */ public void setType(String value) { this.type = value; } /** * Gets the value of the classifier property. * * @return * possible object is * {@link String } * */ public String getClassifier() { return classifier; } /** * Sets the value of the classifier property. * * @param value * allowed object is * {@link String } * */ public void setClassifier(String value) { this.classifier = value; } /** * Gets the value of the expandedMetaVersion property. * * @return * possible object is * {@link String } * */ public String getExpandedMetaVersion() { return expandedMetaVersion; } /** * Sets the value of the expandedMetaVersion property. * * @param value * allowed object is * {@link String } * */ public void setExpandedMetaVersion(String value) { this.expandedMetaVersion = value; } public MavenCoordinatesDTO withGroupId(String value) { setGroupId(value); return this; } public MavenCoordinatesDTO withArtifactId(String value) { setArtifactId(value); return this; } public MavenCoordinatesDTO withVersion(String value) { setVersion(value); return this; } public MavenCoordinatesDTO withType(String value) { setType(value); return this; } public MavenCoordinatesDTO withClassifier(String value) { setClassifier(value); return this; } public MavenCoordinatesDTO withExpandedMetaVersion(String value) { setExpandedMetaVersion(value); return this; } @Override public boolean equals(final Object obj) { if (obj == null) { return false; } if (this == obj) { return true; } if (!(obj instanceof MavenCoordinatesDTO)) { return false; } final MavenCoordinatesDTO that = ((MavenCoordinatesDTO) obj); final EqualsBuilder builder = new EqualsBuilder(); builder.append(this.getGroupId(), that.getGroupId()); builder.append(this.getArtifactId(), that.getArtifactId()); builder.append(this.getVersion(), that.getVersion()); builder.append(this.getType(), that.getType()); builder.append(this.getClassifier(), that.getClassifier()); return builder.build(); } @Override public int hashCode() { final HashCodeBuilder builder = new HashCodeBuilder(); builder.append(this.getGroupId()); builder.append(this.getArtifactId()); builder.append(this.getVersion()); builder.append(this.getType()); builder.append(this.getClassifier()); return builder.build(); } @Override public String toString() { return MavenCoordinatesDTOHelper.asString(this); } public String toString(final MavenCoordinatesDTOHelper.RenderStyle style) { return MavenCoordinatesDTOHelper.asString(this, style); } public MavenCoordinatesDTO normalize() { return MavenCoordinatesDTOHelper.normalize(this); } public boolean isSnapshot() { return MavenCoordinatesDTOHelper.isSnapshot(this); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy