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

org.codehaus.mojo.versions.model.IgnoreVersion Maven / Gradle / Ivy

// =================== DO NOT EDIT THIS FILE ====================
// Generated by Modello 1.8.3,
// 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 - 2024 Weber Informatics LLC | Privacy Policy