Package org.apache.bval.util
Class BValVersion
- java.lang.Object
-
- org.apache.bval.util.BValVersion
-
public class BValVersion extends Object
This class contains version information for BVal. It uses Ant's filter tokens to convert the template into a java file with current information.
-
-
Field Summary
Fields Modifier and Type Field Description static intMAJOR_RELEASEMajor release numberstatic intMINOR_RELEASEMinor release numberstatic intPATCH_RELEASEPatch/point release numberstatic StringPROJECT_IDUnique id of the current project/version/revisionstatic StringPROJECT_NAMEProject namestatic StringRELEASE_STATUSRelease statusstatic StringREVISION_NUMBERVersion control revision numberstatic StringVERSION_NUMBERVersion number
-
Constructor Summary
Constructors Constructor Description BValVersion()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringgetID()Get the fully-qualified project id.static StringgetName()Get the project name.static StringgetRevision()Get the version control revision number.static StringgetVersion()Get the project version number.static voidmain(String[] args)Main method of this class that prints thetoString()toSystem.out.StringtoString()
-
-
-
Field Detail
-
PROJECT_NAME
public static final String PROJECT_NAME
Project name- See Also:
- Constant Field Values
-
PROJECT_ID
public static final String PROJECT_ID
Unique id of the current project/version/revision
-
VERSION_NUMBER
public static final String VERSION_NUMBER
Version number
-
MAJOR_RELEASE
public static final int MAJOR_RELEASE
Major release number
-
MINOR_RELEASE
public static final int MINOR_RELEASE
Minor release number
-
PATCH_RELEASE
public static final int PATCH_RELEASE
Patch/point release number
-
RELEASE_STATUS
public static final String RELEASE_STATUS
Release status
-
REVISION_NUMBER
public static final String REVISION_NUMBER
Version control revision number
-
-
Method Detail
-
getVersion
public static String getVersion()
Get the project version number.- Returns:
- String
-
getRevision
public static String getRevision()
Get the version control revision number.- Returns:
- String
-
getName
public static String getName()
Get the project name.- Returns:
- String
-
getID
public static String getID()
Get the fully-qualified project id.- Returns:
- String
-
main
public static void main(String[] args)
Main method of this class that prints thetoString()toSystem.out.- Parameters:
args- ignored
-
-