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.CloneableVersioning 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 SnapshotVersionclone()Method clone.booleanequals(java.lang.Object other)Method equals.java.lang.StringgetClassifier()Get the classifier of the sub-artifact.java.lang.StringgetExtension()Get the file extension of the sub-artifact.java.lang.StringgetUpdated()Get the timestamp when this version information was last updated.java.lang.StringgetVersion()Get the resolved snapshot version of the sub-artifact.inthashCode()Method hashCode.voidsetClassifier(java.lang.String classifier)Set the classifier of the sub-artifact.voidsetExtension(java.lang.String extension)Set the file extension of the sub-artifact.voidsetUpdated(java.lang.String updated)Set the timestamp when this version information was last updated.voidsetVersion(java.lang.String version)Set the resolved snapshot version of the sub-artifact.java.lang.StringtoString()Method toString.
-
-
-
Method Detail
-
clone
public SnapshotVersion clone()
Method clone.- Overrides:
clonein classjava.lang.Object- Returns:
- SnapshotVersion
-
equals
public boolean equals(java.lang.Object other)
Method equals.- Overrides:
equalsin 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:
hashCodein 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:
toStringin classjava.lang.Object- Returns:
- String
-
-