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

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

public class Versioning
extends Object
implements Serializable, Cloneable

Versioning information for an artifact.

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

Constructor Summary
Versioning()
           
 
Method Summary
 void addSnapshotVersion(SnapshotVersion snapshotVersion)
          Method addSnapshotVersion.
 void addVersion(String string)
          Method addVersion.
 Versioning clone()
          Method clone.
 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<SnapshotVersion> getSnapshotVersions()
          Method getSnapshotVersions.
 List<String> getVersions()
          Method getVersions.
 void removeSnapshotVersion(SnapshotVersion snapshotVersion)
          Method removeSnapshotVersion.
 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 setSnapshotVersions(List<SnapshotVersion> snapshotVersions)
          Set the snapshot versions available for the artifact.
 void setVersions(List<String> versions)
          Set versions available for the artifact.
 void updateTimestamp()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Versioning

public Versioning()
Method Detail

addSnapshotVersion

public void addSnapshotVersion(SnapshotVersion snapshotVersion)
Method addSnapshotVersion.

Parameters:
snapshotVersion -

addVersion

public void addVersion(String string)
Method addVersion.

Parameters:
string -

clone

public Versioning clone()
Method clone.

Overrides:
clone in class Object
Returns:
Versioning

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

getSnapshotVersions

public List<SnapshotVersion> getSnapshotVersions()
Method getSnapshotVersions.

Returns:
List

getVersions

public List<String> getVersions()
Method getVersions.

Returns:
List

removeSnapshotVersion

public void removeSnapshotVersion(SnapshotVersion snapshotVersion)
Method removeSnapshotVersion.

Parameters:
snapshotVersion -

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 -

setSnapshotVersions

public void setSnapshotVersions(List<SnapshotVersion> snapshotVersions)
Set the snapshot versions available for the artifact.

Parameters:
snapshotVersions -

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-2013 The Apache Software Foundation. All Rights Reserved.