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 int
MAJOR_RELEASE
Major release numberstatic int
MINOR_RELEASE
Minor release numberstatic int
PATCH_RELEASE
Patch/point release numberstatic String
PROJECT_ID
Unique id of the current project/version/revisionstatic String
PROJECT_NAME
Project namestatic String
RELEASE_STATUS
Release statusstatic String
REVISION_NUMBER
Version control revision numberstatic String
VERSION_NUMBER
Version number
-
Constructor Summary
Constructors Constructor Description BValVersion()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
getID()
Get the fully-qualified project id.static String
getName()
Get the project name.static String
getRevision()
Get the version control revision number.static String
getVersion()
Get the project version number.static void
main(String[] args)
Main method of this class that prints thetoString()
toSystem.out
.String
toString()
-
-
-
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
-
-