|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.Version
public class Version
Defines a simple place to get the JMRI version string.
These JavaDocs are for Version 3.3.7 of JMRI.
JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.
JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
| Field Summary | |
|---|---|
static boolean |
branched
|
static String |
buildDate
|
static String |
buildUser
|
static int |
major
Major number changes with large incompatible changes in requirements or API. |
static int |
minor
Minor number changes with each production release. |
static boolean |
official
|
static String |
revisionId
|
static int |
test
|
| Constructor Summary | |
|---|---|
Version()
|
|
| Method Summary | |
|---|---|
static int |
compareCanonicalVersions(String version)
Compares a canonical version string to the JMRI canonical version and returns an integer indicating if the string is less than, equal to, or greater than the JMRI canonical version. |
static int |
compareCanonicalVersions(String version1,
String version2)
Compares two canonical version strings and returns an integer indicating if the first string is less than, equal to, or greater than the second string. |
static String |
getCanonicalVersion()
Return the version as a major.minor.test String. |
static String |
getCopyright()
Return the application copyright as a String. |
static String |
getModifier()
|
static boolean |
isCanonicalVersion(String version)
Tests that a string contains a canonical version string. |
static void |
main(String[] args)
Standalone print of version string and exit. |
static String |
name()
Provide the current version string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int major
public static final int minor
public static final int test
public static final String buildUser
public static final String revisionId
public static final String buildDate
public static final boolean official
public static final boolean branched
| Constructor Detail |
|---|
public Version()
| Method Detail |
|---|
public static String getModifier()
public static String name()
This string is built using various known build parameters, including the release.{major,minor,build} values, the SVN revision ID (if known) and the branched & release.official statuses.
public static boolean isCanonicalVersion(String version)
A canonical version string is a string in the form x.y.z and is different
than the version string displayed using name(). The canonical
version string for a JMRI instance is available using getCanonicalVersion().
version -
public static int compareCanonicalVersions(String version)
throws IllegalArgumentException
version -
IllegalArgumentException - if version is not a canonical version stringComparable.compareTo(java.lang.Object)
public static int compareCanonicalVersions(String version1,
String version2)
throws IllegalArgumentException
version1 - a canonical version stringversion2 - a canonical version string
IllegalArgumentException - if either version string is not a canonical version stringComparable.compareTo(java.lang.Object)public static String getCanonicalVersion()
public static String getCopyright()
public static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||