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

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

public class SnapshotVersion
extends Object
implements Serializable, Cloneable

Versioning information for a snapshot artifact.

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

Constructor Summary
SnapshotVersion()
           
 
Method Summary
 SnapshotVersion clone()
          Method clone.
 String getClassifier()
          Get the classifier of the snapshot artifact this version information belongs to.
 String getExtension()
          Get the file extension of the snapshot artifact this version information belongs to.
 String getUpdated()
          Get the timestamp when this version information was last updated.
 String getVersion()
          Get the resolved snapshot version of the artifact.
 void setClassifier(String classifier)
          Set the classifier of the snapshot artifact this version information belongs to.
 void setExtension(String extension)
          Set the file extension of the snapshot artifact this version information belongs to.
 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 artifact.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SnapshotVersion

public SnapshotVersion()
Method Detail

clone

public SnapshotVersion clone()
Method clone.

Overrides:
clone in class Object
Returns:
SnapshotVersion

getClassifier

public String getClassifier()
Get the classifier of the snapshot artifact this version information belongs to.

Returns:
String

getExtension

public String getExtension()
Get the file extension of the snapshot artifact this version information belongs to.

Returns:
String

getUpdated

public 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

public String getVersion()
Get the resolved snapshot version of the artifact.

Returns:
String

setClassifier

public void setClassifier(String classifier)
Set the classifier of the snapshot artifact this version information belongs to.

Parameters:
classifier -

setExtension

public void setExtension(String extension)
Set the file extension of the snapshot artifact this version information belongs to.

Parameters:
extension -

setUpdated

public void setUpdated(String updated)
Set the timestamp when this version information was last updated. The timestamp is expressed using UTC in the format yyyyMMddHHmmss.

Parameters:
updated -

setVersion

public void setVersion(String version)
Set the resolved snapshot version of the artifact.

Parameters:
version -


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