info.informatica.app
Class ApplicationInfo

java.lang.Object
  extended by info.informatica.app.ApplicationInfo

public class ApplicationInfo
extends Object

The basic information for an application.

Application name, version, etc.

Author:
amengual at informatica dot info

Constructor Summary
ApplicationInfo()
           
 
Method Summary
 String getAppName()
          Gets the name of the application.
 String getAppNameVersion()
          Gets the version of an application.
 short getBuildNumber()
          Gets the build number of the application.
 short getMajorVersionNumber()
          Gets the Major Version number of the application.
 short getMinorVersionNumber()
          Gets the Minor Version number of the application.
 String getVersionTag()
          Gets the version tag of the application.
 void printUsage(PrintStream ps)
          Prints the basic usage of the application.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationInfo

public ApplicationInfo()
Method Detail

getAppNameVersion

public String getAppNameVersion()
Gets the version of an application.

Returns:
the complete version string

getAppName

public String getAppName()
Gets the name of the application.

Subclasses may return directly the name of the application, instead of relying on the app.name system property.

Returns:
the name

getMajorVersionNumber

public short getMajorVersionNumber()
Gets the Major Version number of the application.

Returns:
the version number

getMinorVersionNumber

public short getMinorVersionNumber()
Gets the Minor Version number of the application.

Returns:
the version number

getBuildNumber

public short getBuildNumber()
Gets the build number of the application.

Returns:
the build number

getVersionTag

public String getVersionTag()
Gets the version tag of the application.

Returns:
the version tag

printUsage

public void printUsage(PrintStream ps)
Prints the basic usage of the application.

Parameters:
ps - a PrintStream to output