org.apache.maven.shared.release.versions
Interface VersionInfo

All Superinterfaces:
Comparable<VersionInfo>
All Known Implementing Classes:
DefaultVersionInfo

public interface VersionInfo
extends Comparable<VersionInfo>


Method Summary
 VersionInfo getNextVersion()
          Returns a VersionInfo object which represents the next version of this object.
 String getReleaseVersionString()
          Returns a string representing the version without a snapshot specification.
 String getSnapshotVersionString()
          Returns a string representing the version with a snapshot specification
 boolean isSnapshot()
          Returns whether this represents a snapshot version.
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getSnapshotVersionString

String getSnapshotVersionString()
Returns a string representing the version with a snapshot specification

Returns:
the snapshot version transformation of the original value

getReleaseVersionString

String getReleaseVersionString()
Returns a string representing the version without a snapshot specification.

Returns:
the final version transformation of the original value

getNextVersion

VersionInfo getNextVersion()
Returns a VersionInfo object which represents the next version of this object.

Returns:
the next VersionInfo

isSnapshot

boolean isSnapshot()
Returns whether this represents a snapshot version.

Returns:
true if the original value was a snapshot, otherwise false


Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.