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.Cloneable
Snapshot data for the last artifact corresponding to the SNAPSHOT base version.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private int
buildNumber
The incremental build number.private boolean
localCopy
Whether to use a local copy instead (with filename that includes the base version).private java.lang.String
timestamp
The timestamp when this version was deployed.
-
Constructor Summary
Constructors Constructor Description Snapshot()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Snapshot
clone()
Method clone.int
getBuildNumber()
Get the incremental build number.java.lang.String
getTimestamp()
Get the timestamp when this version was deployed.boolean
isLocalCopy()
Get whether to use a local copy instead (with filename that includes the base version).void
setBuildNumber(int buildNumber)
Set the incremental build number.void
setLocalCopy(boolean localCopy)
Set whether to use a local copy instead (with filename that includes the base version).void
setTimestamp(java.lang.String timestamp)
Set the timestamp when this version was deployed.
-
-
-
Field Detail
-
timestamp
private java.lang.String timestamp
The timestamp when this version was deployed. The timestamp is expressed using UTC in the format yyyyMMdd.HHmmss.
-
buildNumber
private int buildNumber
The incremental build number.
-
localCopy
private boolean localCopy
Whether to use a local copy instead (with filename that includes the base version).
-
-
Method Detail
-
clone
public Snapshot clone()
Method clone.- Overrides:
clone
in classjava.lang.Object
- Returns:
- Snapshot
-
getBuildNumber
public int getBuildNumber()
Get the incremental build number.- Returns:
- int
-
getTimestamp
public java.lang.String getTimestamp()
Get the timestamp when this version was deployed. The timestamp is expressed using UTC in the format yyyyMMdd.HHmmss.- 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
- a buildNumber object.
-
setLocalCopy
public void setLocalCopy(boolean localCopy)
Set whether to use a local copy instead (with filename that includes the base version).- Parameters:
localCopy
- a localCopy object.
-
setTimestamp
public void setTimestamp(java.lang.String timestamp)
Set the timestamp when this version was deployed. The timestamp is expressed using UTC in the format yyyyMMdd.HHmmss.- Parameters:
timestamp
- a timestamp object.
-
-