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

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

public class Versioning
extends Object
implements Serializable

Versioning information for an artifact.

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

Constructor Summary
Versioning()
           
 
Method Summary
 void addVersion(String string)
          Method addVersion.
 String getLastUpdated()
          Get when the metadata was last updated.
 String getLatest()
          Get what the latest version in the directory is, including snapshots.
 String getRelease()
          Get what the latest version in the directory is, of the releases.
 Snapshot getSnapshot()
          Get the current snapshot data in use for this version.
 List<String> getVersions()
          Method getVersions.
 void removeVersion(String string)
          Method removeVersion.
 void setLastUpdated(String lastUpdated)
          Set when the metadata was last updated.
 void setLastUpdatedTimestamp(Date date)
           
 void setLatest(String latest)
          Set what the latest version in the directory is, including snapshots.
 void setRelease(String release)
          Set what the latest version in the directory is, of the releases.
 void setSnapshot(Snapshot snapshot)
          Set the current snapshot data in use for this version.
 void setVersions(List<String> versions)
          Set versions available for the artifact.
 void updateTimestamp()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Versioning

public Versioning()
Method Detail

addVersion

public void addVersion(String string)
Method addVersion.

Parameters:
string -

getLastUpdated

public String getLastUpdated()
Get when the metadata was last updated.

Returns:
String

getLatest

public String getLatest()
Get what the latest version in the directory is, including snapshots.

Returns:
String

getRelease

public String getRelease()
Get what the latest version in the directory is, of the releases.

Returns:
String

getSnapshot

public Snapshot getSnapshot()
Get the current snapshot data in use for this version.

Returns:
Snapshot

getVersions

public List<String> getVersions()
Method getVersions.

Returns:
List

removeVersion

public void removeVersion(String string)
Method removeVersion.

Parameters:
string -

setLastUpdated

public void setLastUpdated(String lastUpdated)
Set when the metadata was last updated.

Parameters:
lastUpdated -

setLatest

public void setLatest(String latest)
Set what the latest version in the directory is, including snapshots.

Parameters:
latest -

setRelease

public void setRelease(String release)
Set what the latest version in the directory is, of the releases.

Parameters:
release -

setSnapshot

public void setSnapshot(Snapshot snapshot)
Set the current snapshot data in use for this version.

Parameters:
snapshot -

setVersions

public void setVersions(List<String> versions)
Set versions available for the artifact.

Parameters:
versions -

updateTimestamp

public void updateTimestamp()

setLastUpdatedTimestamp

public void setLastUpdatedTimestamp(Date date)


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