org.xins.client.Library Maven / Gradle / Ivy
The newest version!
/*
* $Id: Library.java,v 1.18 2010/10/01 13:23:13 agoubard Exp $
*
* See the COPYRIGHT file for redistribution and use restrictions.
*/
package org.xins.client;
/**
* Class that represents the XINS/Java Client Framework library.
*
* @version $Revision: 1.18 $ $Date: 2010/10/01 13:23:13 $
* @author Ernst de Haan
*
* @since XINS 1.0.0
*/
public final class Library {
/**
* The version of this library.
*/
private static final String VERSION = Library.class.getPackage().getImplementationVersion();
/**
* Constructs a new Library
object.
*/
private Library() {
// empty
}
/**
* Returns the name of this library.
*
* @return
* the name of this library, never null
;
* for example "XINS/Java Client Framework"
.
*
* @since XINS 3.0
*/
public static final String getName() {
return "XINS/Java Client Framework";
}
/**
* Returns the version of this library.
*
* @return
* the version of this library, for example "1.0.0"
,
* never null
.
*/
public static final String getVersion() {
return VERSION;
}
/**
* Prints the name and version of this library.
*
* @param args
* the command line arguments; will be ignored.
*
* @since XINS 3.0
*/
public static final void main(String[] args) {
System.out.println(getName() + " " + getVersion());
}
}