at.spardat.xma.boot.util.Version Maven / Gradle / Ivy
/*******************************************************************************
* Copyright (c) 2003, 2007 s IT Solutions AT Spardat GmbH .
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* s IT Solutions AT Spardat GmbH - initial API and implementation
*******************************************************************************/
// @(#) $Id: Version.java 2084 2007-11-27 14:53:31Z s3460 $
package at.spardat.xma.boot.util;
/**
* Version constants of the XMA runtime.
*
* @author YSD, 14.05.2003 20:18:39
*/
public class Version {
/**
* major version number of the XMA runtime
*/
public final static int MAJOR = 1;
/**
* minor version number of the XMA runtime
*/
public final static int MINOR = 7;
/**
* bugfix version number of the XMA runtime
*/
public final static int BUGFIX = 1;
/**
* Returns a String of the form major.minor.bugfix
*/
public static String getVersion () {
return "" + MAJOR + '.' + MINOR + '.' + BUGFIX;
}
/**
* Returns a numeric version identification.
*/
public static int getVersionNumber () {
return (MAJOR*1000 + MINOR)*1000 + BUGFIX;
}
/**
* Returns the major version number of the XMA bootruntime
* @since 1.7.0
*/
public static int getMajor() {
return MAJOR;
}
/**
* Returns the minor version number of the XMA bootruntime
* @since 1.7.0
*/
public static int getMinor() {
return MINOR;
}
/**
* Returns the bugfix version number of the XMA bootruntime
* @since 1.7.0
*/
public static int getBugfix() {
return BUGFIX;
}
}