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
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
classifier
The classifier of the sub-artifact.private java.lang.String
extension
The file extension of the sub-artifact.private java.lang.String
updated
The timestamp when this version information was last updated.private java.lang.String
version
The resolved snapshot version of the sub-artifact.
-
Constructor Summary
Constructors Constructor Description SnapshotVersion()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SnapshotVersion
clone()
Method clone.boolean
equals(java.lang.Object other)
Method equals.java.lang.String
getClassifier()
Get the classifier of the sub-artifact.java.lang.String
getExtension()
Get the file extension of the sub-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.int
hashCode()
Method hashCode.void
setClassifier(java.lang.String classifier)
Set the classifier of the sub-artifact.void
setExtension(java.lang.String extension)
Set the file extension of the sub-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.java.lang.String
toString()
Method toString.
-
-
-
Field Detail
-
classifier
private java.lang.String classifier
The classifier of the sub-artifact. Each classifier and extension pair may only appear once.
-
extension
private java.lang.String extension
The file extension of the sub-artifact. Each classifier and extension pair may only appear once.
-
version
private java.lang.String version
The resolved snapshot version of the sub-artifact.
-
updated
private java.lang.String updated
The timestamp when this version information was last updated. The timestamp is expressed using UTC in the format yyyyMMddHHmmss.
-
-
Method Detail
-
clone
public SnapshotVersion clone()
Method clone.- Overrides:
clone
in classjava.lang.Object
- Returns:
- SnapshotVersion
-
equals
public boolean equals(java.lang.Object other)
Method equals.- Overrides:
equals
in classjava.lang.Object
- Parameters:
other
- a other object.- Returns:
- boolean
-
getClassifier
public java.lang.String getClassifier()
Get the classifier of the sub-artifact. Each classifier and extension pair may only appear once.- Returns:
- String
-
getExtension
public java.lang.String getExtension()
Get the file extension of the sub-artifact. Each classifier and extension pair may only appear once.- 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
-
hashCode
public int hashCode()
Method hashCode.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- int
-
setClassifier
public void setClassifier(java.lang.String classifier)
Set the classifier of the sub-artifact. Each classifier and extension pair may only appear once.- Parameters:
classifier
- a classifier object.
-
setExtension
public void setExtension(java.lang.String extension)
Set the file extension of the sub-artifact. Each classifier and extension pair may only appear once.- Parameters:
extension
- a extension object.
-
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
- a updated object.
-
setVersion
public void setVersion(java.lang.String version)
Set the resolved snapshot version of the sub-artifact.- Parameters:
version
- a version object.
-
toString
public java.lang.String toString()
Method toString.- Overrides:
toString
in classjava.lang.Object
- Returns:
- String
-
-