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

org.jasig.maven.notice.lookup.ArtifactLicense Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.2-7 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2010.11.21 at 09:03:43 PM PST 
//


package org.jasig.maven.notice.lookup;

import java.util.ArrayList;
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.XmlType;
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.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 artifactLicense complex type. * *

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

 * <complexType name="artifactLicense">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="groupId" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="artifactId" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="version" type="{https://source.jasig.org/schemas/maven-notice-plugin/license-lookup}mappedVersion" maxOccurs="unbounded" minOccurs="0"/>
 *         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="license" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "artifactLicense", propOrder = { "groupId", "artifactId", "version", "name", "license" }) public class ArtifactLicense implements Equals, HashCode, ToString { @XmlElement(required = true) protected String groupId; @XmlElement(required = true) protected String artifactId; protected List version; protected String name; protected String license; /** * 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. * *

* 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 version property. * *

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

     *    getVersion().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link MappedVersion } * * */ public List getVersion() { if (version == null) { version = new ArrayList(); } return this.version; } /** * Gets the value of the name property. * * @return * possible object is * {@link String } * */ public String getName() { return name; } /** * Sets the value of the name property. * * @param value * allowed object is * {@link String } * */ public void setName(String value) { this.name = value; } /** * Gets the value of the license property. * * @return * possible object is * {@link String } * */ public String getLicense() { return license; } /** * Sets the value of the license property. * * @param value * allowed object is * {@link String } * */ public void setLicense(String value) { this.license = value; } 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) { { String theGroupId; theGroupId = this.getGroupId(); strategy.appendField(locator, this, "groupId", buffer, theGroupId); } { String theArtifactId; theArtifactId = this.getArtifactId(); strategy.appendField(locator, this, "artifactId", buffer, theArtifactId); } { List theVersion; theVersion = this.getVersion(); strategy.appendField(locator, this, "version", buffer, theVersion); } { String theName; theName = this.getName(); strategy.appendField(locator, this, "name", buffer, theName); } { String theLicense; theLicense = this.getLicense(); strategy.appendField(locator, this, "license", buffer, theLicense); } return buffer; } public boolean equals(ObjectLocator thisLocator, ObjectLocator thatLocator, Object object, EqualsStrategy strategy) { if (!(object instanceof ArtifactLicense)) { return false; } if (this == object) { return true; } final ArtifactLicense that = ((ArtifactLicense) object); { String lhsGroupId; lhsGroupId = this.getGroupId(); String rhsGroupId; rhsGroupId = that.getGroupId(); if (!strategy.equals(LocatorUtils.property(thisLocator, "groupId", lhsGroupId), LocatorUtils.property(thatLocator, "groupId", rhsGroupId), lhsGroupId, rhsGroupId)) { return false; } } { String lhsArtifactId; lhsArtifactId = this.getArtifactId(); String rhsArtifactId; rhsArtifactId = that.getArtifactId(); if (!strategy.equals(LocatorUtils.property(thisLocator, "artifactId", lhsArtifactId), LocatorUtils.property(thatLocator, "artifactId", rhsArtifactId), lhsArtifactId, rhsArtifactId)) { return false; } } { List lhsVersion; lhsVersion = this.getVersion(); List rhsVersion; rhsVersion = that.getVersion(); if (!strategy.equals(LocatorUtils.property(thisLocator, "version", lhsVersion), LocatorUtils.property(thatLocator, "version", rhsVersion), lhsVersion, rhsVersion)) { return false; } } { String lhsName; lhsName = this.getName(); String rhsName; rhsName = that.getName(); if (!strategy.equals(LocatorUtils.property(thisLocator, "name", lhsName), LocatorUtils.property(thatLocator, "name", rhsName), lhsName, rhsName)) { return false; } } { String lhsLicense; lhsLicense = this.getLicense(); String rhsLicense; rhsLicense = that.getLicense(); if (!strategy.equals(LocatorUtils.property(thisLocator, "license", lhsLicense), LocatorUtils.property(thatLocator, "license", rhsLicense), lhsLicense, rhsLicense)) { 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; { String theGroupId; theGroupId = this.getGroupId(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "groupId", theGroupId), currentHashCode, theGroupId); } { String theArtifactId; theArtifactId = this.getArtifactId(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "artifactId", theArtifactId), currentHashCode, theArtifactId); } { List theVersion; theVersion = this.getVersion(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "version", theVersion), currentHashCode, theVersion); } { String theName; theName = this.getName(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "name", theName), currentHashCode, theName); } { String theLicense; theLicense = this.getLicense(); currentHashCode = strategy.hashCode(LocatorUtils.property(locator, "license", theLicense), currentHashCode, theLicense); } return currentHashCode; } public int hashCode() { final HashCodeStrategy strategy = JAXBHashCodeStrategy.INSTANCE; return this.hashCode(null, strategy); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy