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 (un-versioned or snapshot).

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 only.
 Snapshot getSnapshot()
          Get the current snapshot data in use for this version (artifact snapshots only).
 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 only.
 void setSnapshot(Snapshot snapshot)
          Set the current snapshot data in use for this version (artifact snapshots only).
 void setSnapshotVersions(List<SnapshotVersion> snapshotVersions)
          Set information for each sub-artifact available in this artifact snapshot.
 void setVersions(List<String> versions)
          Set versions available of the artifact (both releases and snapshots).
 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 only.

Returns:
String

getSnapshot

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

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 only.

Parameters:
release -

setSnapshot

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

Parameters:
snapshot -

setSnapshotVersions

public void setSnapshotVersions(List<SnapshotVersion> snapshotVersions)
Set information for each sub-artifact available in this artifact snapshot.

Parameters:
snapshotVersions -

setVersions

public void setVersions(List<String> versions)
Set versions available of the artifact (both releases and snapshots).

Parameters:
versions -

updateTimestamp

public void updateTimestamp()

setLastUpdatedTimestamp

public void setLastUpdatedTimestamp(Date date)


Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.