Package org.apache.maven.plugin.registry
Class Plugin
- java.lang.Object
-
- org.apache.maven.plugin.registry.TrackableBase
-
- org.apache.maven.plugin.registry.Plugin
-
- All Implemented Interfaces:
java.io.Serializable
public class Plugin extends TrackableBase implements java.io.Serializable
Policy for updating a single plugin.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringLAST_CHECKED_DATE_FORMAT-
Fields inherited from class org.apache.maven.plugin.registry.TrackableBase
GLOBAL_LEVEL, USER_LEVEL
-
-
Constructor Summary
Constructors Constructor Description Plugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRejectedVersion(java.lang.String string)Method addRejectedVersion.java.lang.StringgetArtifactId()Get the artifactId field.java.lang.StringgetGroupId()Get the groupId field.java.lang.StringgetKey()java.lang.StringgetLastChecked()Get [format: yyyy-MM-dd.HH:mm:ss Z] Specifies the date/time at which this plugin was last checked.java.util.List<java.lang.String>getRejectedVersions()Method getRejectedVersions.java.lang.StringgetUseVersion()Get the current version of this plugin, to be used until the appropriate update actions happen.voidremoveRejectedVersion(java.lang.String string)Method removeRejectedVersion.voidsetArtifactId(java.lang.String artifactId)Set the artifactId field.voidsetGroupId(java.lang.String groupId)Set the groupId field.voidsetLastChecked(java.lang.String lastChecked)Set [format: yyyy-MM-dd.HH:mm:ss Z] Specifies the date/time at which this plugin was last checked.voidsetRejectedVersions(java.util.List<java.lang.String> rejectedVersions)Set the list of versions for this plugin that the user declined to "install".voidsetUseVersion(java.lang.String useVersion)Set the current version of this plugin, to be used until the appropriate update actions happen.-
Methods inherited from class org.apache.maven.plugin.registry.TrackableBase
getSourceLevel, setSourceLevel
-
-
-
-
Field Detail
-
LAST_CHECKED_DATE_FORMAT
public static final java.lang.String LAST_CHECKED_DATE_FORMAT
- See Also:
- Constant Field Values
-
-
Method Detail
-
addRejectedVersion
public void addRejectedVersion(java.lang.String string)
Method addRejectedVersion.- Parameters:
string- a string object.
-
getArtifactId
public java.lang.String getArtifactId()
Get the artifactId field.- Returns:
- String
-
getGroupId
public java.lang.String getGroupId()
Get the groupId field.- Returns:
- String
-
getLastChecked
public java.lang.String getLastChecked()
Get [format: yyyy-MM-dd.HH:mm:ss Z] Specifies the date/time at which this plugin was last checked.- Returns:
- String
-
getRejectedVersions
public java.util.List<java.lang.String> getRejectedVersions()
Method getRejectedVersions.- Returns:
- List
-
getUseVersion
public java.lang.String getUseVersion()
Get the current version of this plugin, to be used until the appropriate update actions happen.- Returns:
- String
-
removeRejectedVersion
public void removeRejectedVersion(java.lang.String string)
Method removeRejectedVersion.- Parameters:
string- a string object.
-
setArtifactId
public void setArtifactId(java.lang.String artifactId)
Set the artifactId field.- Parameters:
artifactId- a artifactId object.
-
setGroupId
public void setGroupId(java.lang.String groupId)
Set the groupId field.- Parameters:
groupId- a groupId object.
-
setLastChecked
public void setLastChecked(java.lang.String lastChecked)
Set [format: yyyy-MM-dd.HH:mm:ss Z] Specifies the date/time at which this plugin was last checked.- Parameters:
lastChecked- a lastChecked object.
-
setRejectedVersions
public void setRejectedVersions(java.util.List<java.lang.String> rejectedVersions)
Set the list of versions for this plugin that the user declined to "install".- Parameters:
rejectedVersions- a rejectedVersions object.
-
setUseVersion
public void setUseVersion(java.lang.String useVersion)
Set the current version of this plugin, to be used until the appropriate update actions happen.- Parameters:
useVersion- a useVersion object.
-
getKey
public java.lang.String getKey()
-
-