// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2012.06.23 at 11:23:18 ���� CST // package jef.tools.maven.jaxb; 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 jef.tools.maven.MavenDependencyParser; import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.builder.HashCodeBuilder; /** * 3.0.0+ * * <p>Java class for Dependency complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType name="Dependency"> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <all> * <element name="groupId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="artifactId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="version" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="type" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="classifier" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="scope" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="systemPath" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> * <element name="exclusions" minOccurs="0"> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="exclusion" type="{http://maven.apache.org/POM/4.0.0}Exclusion" maxOccurs="unbounded" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </element> * <element name="optional" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/> * </all> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "Dependency", propOrder = { }) public class Dependency { protected String groupId; protected String artifactId; protected String version; @XmlElement(defaultValue = "jar") protected String type; protected String classifier; protected String scope; protected String systemPath; protected Dependency.Exclusions exclusions; @XmlElement(defaultValue = "false") protected Boolean optional; /** * 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 scope property. * * @return * possible object is * {@link String } * */ public String getScope() { return scope; } /** * Sets the value of the scope property. * * @param value * allowed object is * {@link String } * */ public void setScope(String value) { this.scope = value; } /** * Gets the value of the systemPath property. * * @return * possible object is * {@link String } * */ public String getSystemPath() { return systemPath; } /** * Sets the value of the systemPath property. * * @param value * allowed object is * {@link String } * */ public void setSystemPath(String value) { this.systemPath = value; } /** * Gets the value of the exclusions property. * * @return * possible object is * {@link Dependency.Exclusions } * */ public Dependency.Exclusions getExclusions() { return exclusions; } /** * Sets the value of the exclusions property. * * @param value * allowed object is * {@link Dependency.Exclusions } * */ public void setExclusions(Dependency.Exclusions value) { this.exclusions = value; } /** * Gets the value of the optional property. * * @return * possible object is * {@link Boolean } * */ public Boolean isOptional() { return optional; } /** * Sets the value of the optional property. * * @param value * allowed object is * {@link Boolean } * */ public void setOptional(Boolean value) { this.optional = value; } /** * <p>Java class for anonymous complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * <complexType> * <complexContent> * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * <sequence> * <element name="exclusion" type="{http://maven.apache.org/POM/4.0.0}Exclusion" maxOccurs="unbounded" minOccurs="0"/> * </sequence> * </restriction> * </complexContent> * </complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "exclusion" }) public static class Exclusions { protected List<Exclusion> exclusion; /** * Gets the value of the exclusion property. * * <p> * 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 <CODE>set</CODE> method for the exclusion property. * * <p> * For example, to add a new item, do as follows: * <pre> * getExclusion().add(newItem); * </pre> * * * <p> * Objects of the following type(s) are allowed in the list * {@link Exclusion } * * */ public List<Exclusion> getExclusion() { if (exclusion == null) { exclusion = new ArrayList<Exclusion>(); } return this.exclusion; } } @Override public int hashCode() { return new HashCodeBuilder().append(groupId).append(artifactId).append(version).append(classifier).toHashCode(); } @Override public boolean equals(Object obj) { if(obj instanceof Dependency){ Dependency rhs=(Dependency)obj; if(!StringUtils.equals(this.groupId, rhs.groupId)) return false; if(!StringUtils.equals(this.artifactId, rhs.artifactId)) return false; if(!StringUtils.equals(this.version, rhs.version)) return false; if(!StringUtils.equals(this.classifier, rhs.classifier)) return false; return true; } return false; } @Override public String toString() { return MavenDependencyParser.getJarFileName(this); } }