Enum Class JsonNodeData.Kind

java.lang.Object
java.lang.Enum<JsonNodeData.Kind>
edu.cnu.mdi.json.JsonNodeData.Kind
All Implemented Interfaces:
Serializable, Comparable<JsonNodeData.Kind>, Constable
Enclosing class:
JsonNodeData

public static enum JsonNodeData.Kind extends Enum<JsonNodeData.Kind>
Classifies a JSON tree node for color selection in JsonTreeCellRenderer.
  • Enum Constant Details

    • ROOT

      public static final JsonNodeData.Kind ROOT
      Root node (the file name).
    • KEY

      public static final JsonNodeData.Kind KEY
      An object key or array index that has children (object or array value). Rendered in key color with a gray size summary.
    • STRING

      public static final JsonNodeData.Kind STRING
      A quoted string value leaf.
    • NUMBER

      public static final JsonNodeData.Kind NUMBER
      A numeric value leaf.
    • BOOLEAN

      public static final JsonNodeData.Kind BOOLEAN
      A true or false value leaf.
    • NULL

      public static final JsonNodeData.Kind NULL
      A null value leaf.
  • Method Details

    • values

      public static JsonNodeData.Kind[] 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 JsonNodeData.Kind 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