Enum Class TapVersion

java.lang.Object
java.lang.Enum<TapVersion>
uk.ac.starlink.vo.TapVersion
All Implemented Interfaces:
Serializable, Comparable<TapVersion>, Constable

public enum TapVersion extends Enum<TapVersion>
Version of the TAP protocol.
Since:
5 Oct 2018
Author:
Mark Taylor
See Also:
  • Enum Constant Details

    • V10

      public static final TapVersion V10
      TAP version 1.0.
    • V11

      public static final TapVersion V11
      TAP version 1.1.
  • Method Details

    • values

      public static TapVersion[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TapVersion valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • is11

      public boolean is11()
      True if this version is greater than or equal to TAP version 1.1.
      Returns:
      true for v1.1+
    • toString

      public String toString()
      Overrides:
      toString in class Enum<TapVersion>