Algernon Software

org.algernon.app
Class AlgernonApplication

java.lang.Object
  extended byorg.algernon.app.AlgernonApplication
Direct Known Subclasses:
Algernon, Java2Protege

public class AlgernonApplication
extends Object

AlgernonApplication does...


Field Summary
private  String VERSION_DATE
           
private  int VERSION_MAJOR
           
private  int VERSION_MICRO
           
private  int VERSION_MINOR
           
private  String VERSION_NAME
           
private  String VERSION_TYPE
           
private  String VERSION_URL
           
 
Constructor Summary
AlgernonApplication(String name, int majorVersion, int minorVersion, int microVersion, String type, String date, String URL)
           
 
Method Summary
 String getName()
          Returns the program name, e.g.
 String getVersionDate()
          Returns the date of this version as a string: "nn MONTH yyyy".
 int getVersionMajor()
          Returns the major version number, that is, 1 in version 1.2.3.
 int getVersionMicro()
          Returns the micro version number, that is, 3 in version 1.2.3.
 int getVersionMinor()
          Returns the minor version number, that is, 2 in version 1.2.3.
 String getVersionString()
          Returns the entire version string.
 String getVersionType()
          Returns the type of release: "production", "beta" or "alpha".
 String getVersionURL()
          Returns a URL where you can find info about Application.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION_NAME

private String VERSION_NAME

VERSION_MAJOR

private int VERSION_MAJOR

VERSION_MINOR

private int VERSION_MINOR

VERSION_MICRO

private int VERSION_MICRO

VERSION_TYPE

private String VERSION_TYPE

VERSION_DATE

private String VERSION_DATE

VERSION_URL

private String VERSION_URL
Constructor Detail

AlgernonApplication

public AlgernonApplication(String name,
                           int majorVersion,
                           int minorVersion,
                           int microVersion,
                           String type,
                           String date,
                           String URL)
Parameters:
name - The name of the application
majorVersion - 1 in 1.2.3
minorVersion - 2 in 1.2.3
microVersion - 3 in 1.2.3
type - "alpha", "beta" or ""
date - date of release
URL - URL to find more information.
Method Detail

getVersionString

public String getVersionString()
Returns the entire version string.

Returns:
a string containing the entire description of Application.

getName

public String getName()
Returns the program name, e.g. Application.


getVersionDate

public String getVersionDate()
Returns the date of this version as a string: "nn MONTH yyyy".


getVersionURL

public String getVersionURL()
Returns a URL where you can find info about Application.


getVersionType

public String getVersionType()
Returns the type of release: "production", "beta" or "alpha".


getVersionMajor

public int getVersionMajor()
Returns the major version number, that is, 1 in version 1.2.3.


getVersionMinor

public int getVersionMinor()
Returns the minor version number, that is, 2 in version 1.2.3.


getVersionMicro

public int getVersionMicro()
Returns the micro version number, that is, 3 in version 1.2.3.


Algernon Software