org.apache.geronimo.system.plugin
Class SnapshotVersion

java.lang.Object
  extended by org.apache.geronimo.kernel.repository.Version
      extended by org.apache.geronimo.system.plugin.SnapshotVersion
All Implemented Interfaces:
Serializable, Comparable

public class SnapshotVersion
extends Version

SnapshotVersion is like Version but holds extra fields that appear in the filename of a snapshot artifact. The toString() method is not overriden because the super implementation produces the correct string for navigating the directory structure of a plugin repository. The extra fields maintained in this class are needed for constructing the filename portion of a URL for a snapshot artifact where the qualifier and build number are replaced with a snapshot timestamp and build number.

See Also:
Serialized Form

Constructor Summary
SnapshotVersion(String version)
           
SnapshotVersion(Version version)
           
 
Method Summary
 boolean equals(Object other)
           
 int getBuildNumber()
           
 String getTimestamp()
           
 int hashCode()
           
 void setBuildNumber(int buildNumber)
           
 void setTimestamp(String timestamp)
           
 
Methods inherited from class org.apache.geronimo.kernel.repository.Version
compareTo, getIncrementalVersion, getMajorVersion, getMinorVersion, getQualifier, parseVersion, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SnapshotVersion

public SnapshotVersion(Version version)

SnapshotVersion

public SnapshotVersion(String version)
Method Detail

getBuildNumber

public int getBuildNumber()
Overrides:
getBuildNumber in class Version

setBuildNumber

public void setBuildNumber(int buildNumber)

getTimestamp

public String getTimestamp()

setTimestamp

public void setTimestamp(String timestamp)

equals

public boolean equals(Object other)
Overrides:
equals in class Version

hashCode

public int hashCode()
Overrides:
hashCode in class Version


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.