Class ApplicationInfo

java.lang.Object
io.sf.jclf.app.ApplicationInfo

public class ApplicationInfo extends Object
The basic information for an application.

Application name, version, etc.

Users may use a subclass, or include a customized version of this class in their projects.

  • Constructor Details

    • ApplicationInfo

      public ApplicationInfo()
  • Method Details

    • getAppNameVersion

      public String getAppNameVersion()
      Gets the version of an application.
      Returns:
      the complete version string
    • appendAppNameVersion

      protected void appendAppNameVersion(StringBuilder sb)
    • 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