Class SnapshotVersion
- java.lang.Object
-
- org.apache.maven.artifact.repository.metadata.SnapshotVersion
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class SnapshotVersion extends Object implements Serializable, 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.boolean
equals(Object other)
Method equals.String
getClassifier()
Get the classifier of the sub-artifact.String
getExtension()
Get the file extension of the sub-artifact.String
getUpdated()
Get the timestamp when this version information was last updated.String
getVersion()
Get the resolved snapshot version of the sub-artifact.int
hashCode()
Method hashCode.void
setClassifier(String classifier)
Set the classifier of the sub-artifact.void
setExtension(String extension)
Set the file extension of the sub-artifact.void
setUpdated(String updated)
Set the timestamp when this version information was last updated.void
setVersion(String version)
Set the resolved snapshot version of the sub-artifact.String
toString()
Method toString.
-
-
-
Method Detail
-
clone
public SnapshotVersion clone()
Method clone.
-
equals
public boolean equals(Object other)
Method equals.
-
getClassifier
public String getClassifier()
Get the classifier of the sub-artifact. Each classifier and extension pair may only appear once.- Returns:
- String
-
getExtension
public String getExtension()
Get the file extension of the sub-artifact. Each classifier and extension pair may only appear once.- Returns:
- String
-
getUpdated
public 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 String getVersion()
Get the resolved snapshot version of the sub-artifact.- Returns:
- String
-
setClassifier
public void setClassifier(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(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(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(String version)
Set the resolved snapshot version of the sub-artifact.- Parameters:
version
- a version object.
-
-