Class SnapshotVersion
- java.lang.Object
-
- org.apache.maven.artifact.repository.metadata.SnapshotVersion
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public class SnapshotVersion extends java.lang.Object implements java.io.Serializable, java.lang.Cloneable
Versioning information for a sub-artifact of the current snapshot artifact.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SnapshotVersion()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SnapshotVersion
clone()
Method clone.java.lang.String
getClassifier()
Get the classifier of the sub-artifact.java.lang.String
getExtension()
Get the file extension of thesub-artifact.java.lang.String
getUpdated()
Get the timestamp when this version information was last updated.java.lang.String
getVersion()
Get the resolved snapshot version of the sub-artifact.void
setClassifier(java.lang.String classifier)
Set the classifier of the sub-artifact.void
setExtension(java.lang.String extension)
Set the file extension of thesub-artifact.void
setUpdated(java.lang.String updated)
Set the timestamp when this version information was last updated.void
setVersion(java.lang.String version)
Set the resolved snapshot version of the sub-artifact.
-
-
-
Method Detail
-
clone
public SnapshotVersion clone()
Method clone.- Overrides:
clone
in classjava.lang.Object
- Returns:
- SnapshotVersion
-
getClassifier
public java.lang.String getClassifier()
Get the classifier of the sub-artifact.- Returns:
- String
-
getExtension
public java.lang.String getExtension()
Get the file extension of thesub-artifact.- Returns:
- String
-
getUpdated
public java.lang.String getUpdated()
Get the timestamp when this version information was last updated. The timestamp is expressed using UTC in the format yyyyMMddHHmmss.- Returns:
- String
-
getVersion
public java.lang.String getVersion()
Get the resolved snapshot version of the sub-artifact.- Returns:
- String
-
setClassifier
public void setClassifier(java.lang.String classifier)
Set the classifier of the sub-artifact.- Parameters:
classifier
-
-
setExtension
public void setExtension(java.lang.String extension)
Set the file extension of thesub-artifact.- Parameters:
extension
-
-
setUpdated
public void setUpdated(java.lang.String updated)
Set the timestamp when this version information was last updated. The timestamp is expressed using UTC in the format yyyyMMddHHmmss.- Parameters:
updated
-
-
setVersion
public void setVersion(java.lang.String version)
Set the resolved snapshot version of the sub-artifact.- Parameters:
version
-
-
-