org.inria.ns.reflex.util
Class Version

java.lang.Object
  extended by org.inria.ns.reflex.util.Version

public class Version
extends Object

Get the version of a component.

Author:
Philippe Poulard

Field Summary
static String SWITCH
          The switch for the CLI used to get the version.
 
Method Summary
static String getVersion(Class clazz)
          Return the version of the given class, taken from the implementation version found in the package of the class.
static void main(String[] args)
          Displays the version of RefleX or of some classes.
static String welcome()
          Return the welcome message.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SWITCH

public static final String SWITCH
The switch for the CLI used to get the version.

See Also:
Constant Field Values
Method Detail

getVersion

public static String getVersion(Class clazz)
Return the version of the given class, taken from the implementation version found in the package of the class.

Parameters:
clazz - The class.
Returns:
Its version (contains the status separated by a "-" or "_").
See Also:
Package.getImplementationVersion()

main

public static void main(String[] args)
Displays the version of RefleX or of some classes.

Parameters:
args - The class name for which one want to display the version. If null or empty, displays the version of RefleX.

welcome

public static String welcome()
Return the welcome message.

Returns:
The welcome message.
See Also:
Names.WELCOME