net.acomputerdog.BlazeLoader.version
Interface Versioned

All Known Implementing Classes:
BasicVersion

public interface Versioned

Interface for anything with a version.


Method Summary
 BuildType getBuildType()
          Gets the build type of this version.
 java.lang.String getFriendlyName()
          Gets the user-friendly name of this version.
 java.lang.String getID()
          Gets the ID that will be used internally to identify this version.
 int getVersion1()
          Gets the major version int of this version.
 int getVersion2()
          Gets the minor version int of this version.
 int getVersion3()
          Gets the patch version int of this version.
 int getVersion4()
          Gets the additional version int of this version.
 int getVersionDepth()
          The number of version categories this version has.
 java.lang.String getVersionString()
          Gets this version as a String, for example "1.2", "1:2:3", or "1.2.3_4"
 

Method Detail

getVersionDepth

int getVersionDepth()
The number of version categories this version has. 1 for major only; 2 for major and minor; 3 for major, minor, and patch; 4 for major, minor, patch, and additional.

Returns:
The number of version categories this version has.

getVersion1

int getVersion1()
Gets the major version int of this version.

Returns:
The major version

getVersion2

int getVersion2()
Gets the minor version int of this version. Can throw an exception if version does not exist.

Returns:
The minor version

getVersion3

int getVersion3()
Gets the patch version int of this version. Can throw an exception if version does not exist.

Returns:
The patch version

getVersion4

int getVersion4()
Gets the additional version int of this version. Can throw an exception if version does not exist.

Returns:
The additional version

getID

java.lang.String getID()
Gets the ID that will be used internally to identify this version.

Returns:
The ID that will be used internally to identify this version

getFriendlyName

java.lang.String getFriendlyName()
Gets the user-friendly name of this version.

Returns:
The user-friendly name of this version.

getVersionString

java.lang.String getVersionString()
Gets this version as a String, for example "1.2", "1:2:3", or "1.2.3_4"

Returns:
Gets this version as a String.

getBuildType

BuildType getBuildType()
Gets the build type of this version.

Returns:
The build type of this version.