Enum Class JsonType

java.lang.Object
java.lang.Enum<JsonType>
org.openqa.selenium.json.JsonType
All Implemented Interfaces:
Serializable, Comparable<JsonType>, Constable

public enum JsonType extends Enum<JsonType>
Used to specify the pending JSON element type.
  • Enum Constant Details

    • BOOLEAN

      public static final JsonType BOOLEAN
      Boolean value
    • NAME

      public static final JsonType NAME
      property name
    • NULL

      public static final JsonType NULL
      null value
    • NUMBER

      public static final JsonType NUMBER
      numeric value
    • START_MAP

      public static final JsonType START_MAP
      start of object
    • END_MAP

      public static final JsonType END_MAP
      end of object
    • START_COLLECTION

      public static final JsonType START_COLLECTION
      start of array
    • END_COLLECTION

      public static final JsonType END_COLLECTION
      end of array
    • STRING

      public static final JsonType STRING
      string value
    • END

      public static final JsonType END
      end of input
  • Method Details

    • values

      public static JsonType[] 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 JsonType 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