java.lang.Object
io.sf.jclf.app.ApplicationInfo
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Gets the name of the application.Gets the version of an application.short
Gets the build number of the application.short
Gets the Major Version number of the application.short
Gets the Minor Version number of the application.Gets the version tag of the application.void
Prints the basic usage of the application.
-
Constructor Details
-
ApplicationInfo
public ApplicationInfo()
-
-
Method Details
-
getAppNameVersion
Gets the version of an application.- Returns:
- the complete version string
-
appendAppNameVersion
-
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
Gets the version tag of the application.- Returns:
- the version tag
-
printUsage
Prints the basic usage of the application.- Parameters:
ps
- aPrintStream
to output
-