![JAR search and dependency download from the Maven repository](/logo.png)
org.codehaus.mojo.versions.model.IgnoreVersion Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of versions-maven-plugin Show documentation
Show all versions of versions-maven-plugin Show documentation
Versions Plugin for Maven 2. The Versions Plugin updates the versions of components in the POM.
The newest version!
/*
=================== DO NOT EDIT THIS FILE ====================
Generated by Modello 1.6 on 2014-03-18 16:48:50,
any modifications will be overwritten.
==============================================================
*/
package org.codehaus.mojo.versions.model;
/**
* A version to ignore.
*
* @version $Revision$ $Date$
*/
@SuppressWarnings( "all" )
public class IgnoreVersion
implements java.io.Serializable
{
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
/**
* A version number or a regular expression for version numbers
* that should be ignored.
*/
private String version;
/**
* The type of ignore mechanism to use. Allowed values are
* 'exact' and 'regex'.
*/
private String type = "exact";
//-----------/
//- Methods -/
//-----------/
/**
* Get the type of ignore mechanism to use. Allowed values are
* 'exact' and 'regex'.
*
* @return String
*/
public String getType()
{
return this.type;
} //-- String getType()
/**
* Get a version number or a regular expression for version
* numbers that should be ignored.
*
* @return String
*/
public String getVersion()
{
return this.version;
} //-- String getVersion()
/**
* Set the type of ignore mechanism to use. Allowed values are
* 'exact' and 'regex'.
*
* @param type
*/
public void setType( String type )
{
this.type = type;
} //-- void setType( String )
/**
* Set a version number or a regular expression for version
* numbers that should be ignored.
*
* @param version
*/
public void setVersion( String version )
{
this.version = version;
} //-- void setVersion( String )
public String toString()
{
StringBuilder buf = new StringBuilder( 128 );
buf.append( version );
buf.append( " (" );
buf.append( type );
buf.append( ")" );
return buf.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy