Class Value

java.lang.Object
io.deephaven.json.Value
Direct Known Subclasses:
AnyValue, SkipValue, ValueRestrictedUniverseBase

public abstract class Value extends Object
The base configuration for JSON values.
  • Constructor Details

    • Value

      public Value()
  • Method Details

    • allowedTypes

      public abstract Set<JsonValueTypes> allowedTypes()
      The allowed types.
    • allowMissing

      @Default public boolean allowMissing()
      If the processor should allow a missing JSON value. By default is true.
    • skip

      public final SkipValue skip()
      Wraps the allowed values of this as SkipValue. Equivalent to SkipValue.builder().allowMissing(allowMissing()).allowedTypes(allowedTypes()).build().
      Returns:
      this allowed values of this as skip options
    • array

      public final ArrayValue array()
      Wraps this as the value of an ArrayValue. Equivalent to ArrayOptions.standard(this).
      Returns:
      this as the value of an array options
      See Also:
    • field

      public final ObjectValue field(String name)
      Wraps this as a singular field of an ObjectValue. Equivalent to ObjectOptions.standard(Map.of(name, this)).
      Parameters:
      name - the field name
      Returns:
      this as the singular field of an object options
      See Also:
    • walk

      public abstract <T> T walk(Value.Visitor<T> visitor)