net.sourceforge.acelogger
Class VersionInfo

java.lang.Object
  extended by net.sourceforge.acelogger.VersionInfo

public final class VersionInfo
extends Object

This class holds information regarding this release of AceLogger.

Since:
1.0.0
Version:
1.0.0
Author:
Zardi (https://sourceforge.net/users/daniel_zardi)

Field Summary
static int BUILD_NUMBER
          The build number for this release.
static int MAJOR_VERSION
          The major version number for this release.
static int MINOR_VERSION
          The minor version number for this release.
static String PROJECT_NAME
          The project name with proper case.
static String PROJECT_SITE
          The project's site on the Internet.
static String VERSION_CLASSIFIER
          The classifier of this release.
static String VERSION_CODENAME
          This version's codename.
 
Method Summary
static String getBuildName()
          Returns the build name of this release.
static String getBuildString()
          Returns the complete version string for this release, including major, minor, build and classifier.
static String getReleaseDescriptor()
          Returns the descriptor for this release.
static String getVersionString()
          Returns the build version string, including major, minor and build numbers.
static boolean isHigherThan(int major)
          Checks if this release is higher (newer) than the supplied version.
static boolean isHigherThan(int major, int minor)
          Checks if this release is higher (newer) than the supplied version.
static boolean isHigherThan(int major, int minor, int build)
          Checks if this release is higher (newer) than the supplied version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROJECT_NAME

public static final String PROJECT_NAME
The project name with proper case.

See Also:
Constant Field Values

VERSION_CODENAME

public static final String VERSION_CODENAME
This version's codename.

See Also:
Constant Field Values

PROJECT_SITE

public static final String PROJECT_SITE
The project's site on the Internet.

See Also:
Constant Field Values

MAJOR_VERSION

public static final int MAJOR_VERSION
The major version number for this release.

See Also:
Constant Field Values

MINOR_VERSION

public static final int MINOR_VERSION
The minor version number for this release.

See Also:
Constant Field Values

BUILD_NUMBER

public static final int BUILD_NUMBER
The build number for this release.

See Also:
Constant Field Values

VERSION_CLASSIFIER

public static final String VERSION_CLASSIFIER
The classifier of this release.

See Also:
Constant Field Values
Method Detail

getBuildString

public static String getBuildString()
Returns the complete version string for this release, including major, minor, build and classifier.

Returns:
The version string of this release including the classifier.
Since:
1.0.0

getVersionString

public static String getVersionString()
Returns the build version string, including major, minor and build numbers.

Returns:
The version string of this release without the classifier.
Since:
1.0.0

getReleaseDescriptor

public static String getReleaseDescriptor()
Returns the descriptor for this release.

Returns:
The project descriptor, including the project name, complete version string and the project's site.
Since:
1.0.0
See Also:
getBuildString()

getBuildName

public static String getBuildName()
Returns the build name of this release.

Returns:
The build name, including project name, complete version string and version codename.
Since:
1.0.0
See Also:
getBuildString()

isHigherThan

public static boolean isHigherThan(int major,
                                   int minor,
                                   int build)
Checks if this release is higher (newer) than the supplied version.

Parameters:
major - The major version number.
minor - The minor version number.
build - The build number.
Returns:
True if this release number is higher than the supplied values or if it is an exact match; False otherwise.

isHigherThan

public static boolean isHigherThan(int major,
                                   int minor)
Checks if this release is higher (newer) than the supplied version.

Parameters:
major - The major version number.
minor - The minor version number.
Returns:
True if this release number is higher than the supplied values or if it is an exact match; False otherwise.

isHigherThan

public static boolean isHigherThan(int major)
Checks if this release is higher (newer) than the supplied version.

Parameters:
major - The major version number.
Returns:
True if this release number is higher than the supplied values or if it is an exact match; False otherwise.


Copyright © 2007-2010 The AceLogger Team. All Rights Reserved.