org.apache.maven.artifact.repository.metadata
Class Snapshot

java.lang.Object
  extended by org.apache.maven.artifact.repository.metadata.Snapshot
All Implemented Interfaces:
Serializable

public class Snapshot
extends Object
implements Serializable

Snapshot data for the current version.

Version:
$Revision$ $Date$
See Also:
Serialized Form

Constructor Summary
Snapshot()
           
 
Method Summary
 int getBuildNumber()
          Get the incremental build number.
 String getModelEncoding()
           
 String getTimestamp()
          Get the time it 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 setModelEncoding(String modelEncoding)
          Set an encoding used for reading/writing the model.
 void setTimestamp(String timestamp)
          Set the time it was deployed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Snapshot

public Snapshot()
Method Detail

getBuildNumber

public int getBuildNumber()
Get the incremental build number.

Returns:
int

getTimestamp

public 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(String timestamp)
Set the time it was deployed.

Parameters:
timestamp -

setModelEncoding

public void setModelEncoding(String modelEncoding)
Set an encoding used for reading/writing the model.

Parameters:
modelEncoding - the encoding used when reading/writing the model.

getModelEncoding

public String getModelEncoding()
Returns:
the current encoding used when reading/writing this model.


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.