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

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

public class Versioning
extends java.lang.Object
implements java.io.Serializable

Versioning information for an artifact

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

Constructor Summary
Versioning()
           
 
Method Summary
 void addVersion(java.lang.String string)
          Method addVersion
 java.lang.String getLastUpdated()
          Get When the metadata was last updated
 java.lang.String getLatest()
          Get What the latest version in the directory is, including snapshots
 java.lang.String getModelEncoding()
           
 java.lang.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
 java.util.List getVersions()
          Method getVersions
 void removeVersion(java.lang.String string)
          Method removeVersion
 void setLastUpdated(java.lang.String lastUpdated)
          Set When the metadata was last updated
 void setLastUpdatedTimestamp(java.util.Date date)
           
 void setLatest(java.lang.String latest)
          Set What the latest version in the directory is, including snapshots
 void setModelEncoding(java.lang.String modelEncoding)
           
 void setRelease(java.lang.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(java.util.List 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(java.lang.String string)
Method addVersion

Parameters:
string -

getLastUpdated

public java.lang.String getLastUpdated()
Get When the metadata was last updated


getLatest

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


getRelease

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


getSnapshot

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


getVersions

public java.util.List getVersions()
Method getVersions


removeVersion

public void removeVersion(java.lang.String string)
Method removeVersion

Parameters:
string -

setLastUpdated

public void setLastUpdated(java.lang.String lastUpdated)
Set When the metadata was last updated

Parameters:
lastUpdated -

setLatest

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

Parameters:
latest -

setRelease

public void setRelease(java.lang.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(java.util.List versions)
Set Versions available for the artifact

Parameters:
versions -

updateTimestamp

public void updateTimestamp()

setLastUpdatedTimestamp

public void setLastUpdatedTimestamp(java.util.Date date)

setModelEncoding

public void setModelEncoding(java.lang.String modelEncoding)

getModelEncoding

public java.lang.String getModelEncoding()


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