Class Snapshot
java.lang.Object
org.apache.maven.artifact.repository.metadata.Snapshot
- All Implemented Interfaces:
- Serializable,- Cloneable
Snapshot data for the last artifact corresponding to the
 SNAPSHOT base version.
- Version:
- $Revision$ $Date$
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionclone()Method clone.intGet the incremental build number.Get the timestamp when this version was deployed.booleanGet whether to use a local copy instead (with filename that includes the base version).voidsetBuildNumber(int buildNumber) Set the incremental build number.voidsetLocalCopy(boolean localCopy) Set whether to use a local copy instead (with filename that includes the base version).voidsetTimestamp(String timestamp) Set the timestamp when this version was deployed.
- 
Constructor Details- 
Snapshotpublic Snapshot()
 
- 
- 
Method Details- 
cloneMethod clone.
- 
getBuildNumberpublic int getBuildNumber()Get the incremental build number.- Returns:
- int
 
- 
getTimestampGet the timestamp when this version was deployed. The timestamp is expressed using UTC in the format yyyyMMdd.HHmmss.- Returns:
- String
 
- 
isLocalCopypublic boolean isLocalCopy()Get whether to use a local copy instead (with filename that includes the base version).- Returns:
- boolean
 
- 
setBuildNumberpublic void setBuildNumber(int buildNumber) Set the incremental build number.- Parameters:
- buildNumber- a buildNumber object.
 
- 
setLocalCopypublic void setLocalCopy(boolean localCopy) Set whether to use a local copy instead (with filename that includes the base version).- Parameters:
- localCopy- a localCopy object.
 
- 
setTimestampSet the timestamp when this version was deployed. The timestamp is expressed using UTC in the format yyyyMMdd.HHmmss.- Parameters:
- timestamp- a timestamp object.
 
 
-