Class SnapshotVersion
java.lang.Object
org.apache.maven.artifact.repository.metadata.SnapshotVersion
- All Implemented Interfaces:
Serializable
,Cloneable
Versioning information for a sub-artifact of the current
snapshot artifact.
- Version:
- $Revision$ $Date$
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Method clone.Get the classifier of the sub-artifact.Get the file extension of thesub-artifact.Get the timestamp when this version information was last updated.Get the resolved snapshot version of the sub-artifact.void
setClassifier
(String classifier) Set the classifier of the sub-artifact.void
setExtension
(String extension) Set the file extension of thesub-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.
-
Field Details
-
classifier
The classifier of the sub-artifact. -
extension
The file extension of thesub-artifact. -
version
The resolved snapshot version of the sub-artifact. -
updated
The timestamp when this version information was last updated. The timestamp is expressed using UTC in the format yyyyMMddHHmmss.
-
-
Constructor Details
-
SnapshotVersion
public SnapshotVersion()
-
-
Method Details
-
clone
Method clone. -
getClassifier
Get the classifier of the sub-artifact.- Returns:
- String
-
getExtension
Get the file extension of thesub-artifact.- Returns:
- 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
Get the resolved snapshot version of the sub-artifact.- Returns:
- String
-
setClassifier
Set the classifier of the sub-artifact.- Parameters:
classifier
-
-
setExtension
Set the file extension of thesub-artifact.- Parameters:
extension
-
-
setUpdated
Set the timestamp when this version information was last updated. The timestamp is expressed using UTC in the format yyyyMMddHHmmss.- Parameters:
updated
-
-
setVersion
Set the resolved snapshot version of the sub-artifact.- Parameters:
version
-
-