uk.ac.vamsas.objects.utils.document
Class VersionEntries
java.lang.Object
uk.ac.vamsas.objects.utils.document.VersionEntries
- public class VersionEntries
- extends java.lang.Object
enumerates versions for the VamsasDocument.Version string provides version
comparison methods TODO: LATER: associate schema versions with these strings
Method Summary |
static int |
compare(java.lang.String higher,
java.lang.String lower)
returns 0 if levels are equivalent, 1 if higher is valid and higher, 2 if
lower is valid and higher -1 if both levels are invalid |
static boolean |
isVersion(java.lang.String vstring)
|
static java.lang.String |
latestVersion()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ALPHA_VERSION
public static final java.lang.String ALPHA_VERSION
- See Also:
- Constant Field Values
BETA_VERSION
public static final java.lang.String BETA_VERSION
- See Also:
- Constant Field Values
versions
protected static java.util.Hashtable versions
VersionEntries
public VersionEntries()
isVersion
public static boolean isVersion(java.lang.String vstring)
compare
public static int compare(java.lang.String higher,
java.lang.String lower)
- returns 0 if levels are equivalent, 1 if higher is valid and higher, 2 if
lower is valid and higher -1 if both levels are invalid
- Parameters:
higher
- lower
-
- Returns:
latestVersion
public static java.lang.String latestVersion()
- Returns:
- the latest version that this vamsas library supports