de.codesourcery.versiontracker.xsd.Rule Maven / Gradle / Ivy
//
// This file was generated by the Eclipse Implementation of JAXB, v3.0.0
// See https://eclipse-ee4j.github.io/jaxb-ri
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2024.09.12 at 04:57:23 PM CEST
//
package de.codesourcery.versiontracker.xsd;
import java.util.ArrayList;
import java.util.List;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlAttribute;
import jakarta.xml.bind.annotation.XmlType;
/**
* Describes a rule for how versions of artifacts should be handled. This is marked deprecated and will be removed with release 3.0.0 of the versions-maven-plugin.
*
* Java class for Rule complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="Rule">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <all>
* <element name="ignoreVersions" minOccurs="0">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="ignoreVersion" type="{http://mojo.codehaus.org/versions-maven-plugin/rule/2.0.0}IgnoreVersion" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </all>
* <attribute name="groupId" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="artifactId" type="{http://www.w3.org/2001/XMLSchema}string" />
* <attribute name="comparisonMethod" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Rule", propOrder = {
})
public class Rule {
protected Rule.IgnoreVersions ignoreVersions;
@XmlAttribute(name = "groupId", required = true)
protected String groupId;
@XmlAttribute(name = "artifactId")
protected String artifactId;
@XmlAttribute(name = "comparisonMethod", required = true)
protected String comparisonMethod;
/**
* Gets the value of the ignoreVersions property.
*
* @return
* possible object is
* {@link Rule.IgnoreVersions }
*
*/
public Rule.IgnoreVersions getIgnoreVersions() {
return ignoreVersions;
}
/**
* Sets the value of the ignoreVersions property.
*
* @param value
* allowed object is
* {@link Rule.IgnoreVersions }
*
*/
public void setIgnoreVersions(Rule.IgnoreVersions value) {
this.ignoreVersions = value;
}
/**
* 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 comparisonMethod property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getComparisonMethod() {
return comparisonMethod;
}
/**
* Sets the value of the comparisonMethod property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setComparisonMethod(String value) {
this.comparisonMethod = value;
}
/**
* 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="ignoreVersion" type="{http://mojo.codehaus.org/versions-maven-plugin/rule/2.0.0}IgnoreVersion" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"ignoreVersion"
})
public static class IgnoreVersions {
protected List ignoreVersion;
/**
* Gets the value of the ignoreVersion 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 Jakarta XML Binding object.
* This is why there is not a set
method for the ignoreVersion property.
*
*
* For example, to add a new item, do as follows:
*
* getIgnoreVersion().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link IgnoreVersion }
*
*
*/
public List getIgnoreVersion() {
if (ignoreVersion == null) {
ignoreVersion = new ArrayList();
}
return this.ignoreVersion;
}
}
}