Class Snapshot
- java.lang.Object
-
- org.apache.maven.artifact.repository.metadata.Snapshot
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class Snapshot extends java.lang.Object implements java.io.Serializable, java.lang.CloneableSnapshot data for the current artifact version.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private intbuildNumberThe incremental build number.private booleanlocalCopyWhether to use a local copy instead (with filename that includes the base version).private java.lang.StringtimestampThe time it was deployed.
-
Constructor Summary
Constructors Constructor Description Snapshot()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Snapshotclone()Method clone.intgetBuildNumber()Get the incremental build number.java.lang.StringgetTimestamp()Get the time it was deployed.booleanisLocalCopy()Get 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(java.lang.String timestamp)Set the time it was deployed.
-
-
-
Method Detail
-
clone
public Snapshot clone()
Method clone.- Overrides:
clonein classjava.lang.Object- Returns:
- Snapshot
-
getBuildNumber
public int getBuildNumber()
Get the incremental build number.- Returns:
- int
-
getTimestamp
public java.lang.String getTimestamp()
Get the time it was deployed.- Returns:
- String
-
isLocalCopy
public boolean isLocalCopy()
Get whether to use a local copy instead (with filename that includes the base version).- Returns:
- boolean
-
setBuildNumber
public void setBuildNumber(int buildNumber)
Set the incremental build number.- Parameters:
buildNumber-
-
setLocalCopy
public void setLocalCopy(boolean localCopy)
Set whether to use a local copy instead (with filename that includes the base version).- Parameters:
localCopy-
-
setTimestamp
public void setTimestamp(java.lang.String timestamp)
Set the time it was deployed.- Parameters:
timestamp-
-
-