org.apache.geronimo.system.plugin
Class SnapshotVersion
java.lang.Object
org.apache.geronimo.kernel.repository.Version
org.apache.geronimo.system.plugin.SnapshotVersion
- All Implemented Interfaces:
- Serializable, Comparable
public class SnapshotVersion
- extends org.apache.geronimo.kernel.repository.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
Methods inherited from class org.apache.geronimo.kernel.repository.Version |
compareTo, getIncrementalVersion, getMajorVersion, getMinorVersion, getQualifier, parseVersion, toString |
SnapshotVersion
public SnapshotVersion(org.apache.geronimo.kernel.repository.Version version)
SnapshotVersion
public SnapshotVersion(String version)
getBuildNumber
public int getBuildNumber()
- Overrides:
getBuildNumber
in class org.apache.geronimo.kernel.repository.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 org.apache.geronimo.kernel.repository.Version
hashCode
public int hashCode()
- Overrides:
hashCode
in class org.apache.geronimo.kernel.repository.Version
Copyright © 2006 Apache Software Foundation. All Rights Reserved.