net.acomputerdog.BlazeLoader.version
Class BasicVersion

java.lang.Object
  extended by net.acomputerdog.BlazeLoader.version.BasicVersion
All Implemented Interfaces:
Versioned

public class BasicVersion
extends java.lang.Object
implements Versioned

Class that implements basic functionality of IVersioned. Automatically adds the version to Version.class


Constructor Summary
BasicVersion(int[] versionParts, java.lang.String id, java.lang.String name, BuildType buildType)
           
 
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"
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicVersion

public BasicVersion(int[] versionParts,
                    java.lang.String id,
                    java.lang.String name,
                    BuildType buildType)
Method Detail

getVersionDepth

public 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.

Specified by:
getVersionDepth in interface Versioned
Returns:
The number of version categories this version has.

getVersion1

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

Specified by:
getVersion1 in interface Versioned
Returns:
The major version

getVersion2

public int getVersion2()
Gets the minor version int of this version.

Specified by:
getVersion2 in interface Versioned
Returns:
The minor version

getVersion3

public int getVersion3()
Gets the patch version int of this version.

Specified by:
getVersion3 in interface Versioned
Returns:
The patch version

getVersion4

public int getVersion4()
Gets the additional version int of this version.

Specified by:
getVersion4 in interface Versioned
Returns:
The additional version

getID

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

Specified by:
getID in interface Versioned
Returns:
The ID that will be used internally to identify this version

getFriendlyName

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

Specified by:
getFriendlyName in interface Versioned
Returns:
The user-friendly name of this version.

getVersionString

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

Specified by:
getVersionString in interface Versioned
Returns:
Gets this version as a String.

getBuildType

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

Specified by:
getBuildType in interface Versioned
Returns:
The build type of this version.