org.apache.bval.util
Class BValVersion

java.lang.Object
  extended by 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
static int MAJOR_RELEASE
          Major release number
static int MINOR_RELEASE
          Minor release number
static int PATCH_RELEASE
          Patch/point release number
static String PROJECT_ID
          Unique id of the current project/version/revision
static String PROJECT_NAME
          Project name
static String RELEASE_STATUS
          Release status
static String REVISION_NUMBER
          Version control revision number
static String VERSION_NUMBER
          Version number
 
Constructor Summary
BValVersion()
           
 
Method Summary
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 the toString() to System.out.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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

Constructor Detail

BValVersion

public BValVersion()
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 the toString() to System.out.

Parameters:
args - ignored

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2010-2012 Apache Software Foundation. All Rights Reserved.