org.apache.maven.plugin.registry.Plugin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of virtdata-lib-realer Show documentation
Show all versions of virtdata-lib-realer Show documentation
With inspiration from other libraries
/*
=================== DO NOT EDIT THIS FILE ====================
Generated by Modello 1.0.1 on 2009-08-06 15:14:41,
any modifications will be overwritten.
==============================================================
*/
package org.apache.maven.plugin.registry;
/**
* Policy for updating a single plugin.
*
* @version $Revision$ $Date$
*/
public class Plugin
extends TrackableBase
implements java.io.Serializable
{
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
/**
* Field groupId.
*/
private String groupId;
/**
* Field artifactId.
*/
private String artifactId;
/**
* [format: yyyy-MM-dd.HH:mm:ss Z] Specifies the date/time at
* which this plugin was last checked.
*/
private String lastChecked;
/**
* The current version of this plugin, to be used until the
* appropriate update actions happen.
*/
private String useVersion;
/**
* Field rejectedVersions.
*/
private java.util.List rejectedVersions;
//-----------/
//- Methods -/
//-----------/
/**
* Method addRejectedVersion.
*
* @param string
*/
public void addRejectedVersion( String string )
{
if ( !(string instanceof String) )
{
throw new ClassCastException( "Plugin.addRejectedVersions(string) parameter must be instanceof " + String.class.getName() );
}
getRejectedVersions().add( string );
} //-- void addRejectedVersion( String )
/**
* Get the artifactId field.
*
* @return String
*/
public String getArtifactId()
{
return this.artifactId;
} //-- String getArtifactId()
/**
* Get the groupId field.
*
* @return String
*/
public String getGroupId()
{
return this.groupId;
} //-- String getGroupId()
/**
* Get [format: yyyy-MM-dd.HH:mm:ss Z] Specifies the date/time
* at which this plugin was last checked.
*
* @return String
*/
public String getLastChecked()
{
return this.lastChecked;
} //-- String getLastChecked()
/**
* Method getRejectedVersions.
*
* @return List
*/
public java.util.List getRejectedVersions()
{
if ( this.rejectedVersions == null )
{
this.rejectedVersions = new java.util.ArrayList();
}
return this.rejectedVersions;
} //-- java.util.List getRejectedVersions()
/**
* Get the current version of this plugin, to be used until the
* appropriate update actions happen.
*
* @return String
*/
public String getUseVersion()
{
return this.useVersion;
} //-- String getUseVersion()
/**
* Method removeRejectedVersion.
*
* @param string
*/
public void removeRejectedVersion( String string )
{
if ( !(string instanceof String) )
{
throw new ClassCastException( "Plugin.removeRejectedVersions(string) parameter must be instanceof " + String.class.getName() );
}
getRejectedVersions().remove( string );
} //-- void removeRejectedVersion( String )
/**
* Set the artifactId field.
*
* @param artifactId
*/
public void setArtifactId( String artifactId )
{
this.artifactId = artifactId;
} //-- void setArtifactId( String )
/**
* Set the groupId field.
*
* @param groupId
*/
public void setGroupId( String groupId )
{
this.groupId = groupId;
} //-- void setGroupId( String )
/**
* Set [format: yyyy-MM-dd.HH:mm:ss Z] Specifies the date/time
* at which this plugin was last checked.
*
* @param lastChecked
*/
public void setLastChecked( String lastChecked )
{
this.lastChecked = lastChecked;
} //-- void setLastChecked( String )
/**
* Set the list of versions for this plugin that the user
* declined to "install".
*
* @param rejectedVersions
*/
public void setRejectedVersions( java.util.List rejectedVersions )
{
this.rejectedVersions = rejectedVersions;
} //-- void setRejectedVersions( java.util.List )
/**
* Set the current version of this plugin, to be used until the
* appropriate update actions happen.
*
* @param useVersion
*/
public void setUseVersion( String useVersion )
{
this.useVersion = useVersion;
} //-- void setUseVersion( String )
public static final String LAST_CHECKED_DATE_FORMAT = "yyyy-MM-dd.HH:mm:ss Z";
public String getKey()
{
return getGroupId() + ":" + getArtifactId();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy