public enum TapVersion extends Enum<TapVersion>
Enum Constant and Description |
---|
V10
TAP version 1.0.
|
V11
TAP version 1.1.
|
Modifier and Type | Method and Description |
---|---|
static TapVersion |
fromString(String txt)
Returns the best guess at a defined TapVersion value
for a given version string.
|
boolean |
is11()
True if this version is greater than or equal to TAP version 1.1.
|
String |
toString() |
static TapVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TapVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TapVersion V10
public static final TapVersion V11
public static TapVersion[] values()
for (TapVersion c : TapVersion.values()) System.out.println(c);
public static TapVersion valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean is11()
public static TapVersion fromString(String txt)
V11
and "1.0" (as well as most other things)
map to V10
.
TAP 1.1 sec 2.4 says "clients should treat a missing version attribute as equivalent to version='1.0'."
txt
- version string, may be nullpublic String toString()
toString
in class Enum<TapVersion>
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.