Package io.deephaven.json
Class Value
java.lang.Object
io.deephaven.json.Value
- Direct Known Subclasses:
AnyValue,SkipValue,ValueRestrictedUniverseBase
The base configuration for JSON values.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceValue.Builder<V extends Value,B extends Value.Builder<V, B>> static interface -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Set<JsonValueTypes>The allowed types.booleanIf the processor should allow a missing JSON value.final ArrayValuearray()Wrapsthisas the value of anArrayValue.final ObjectValueWrapsthisas a singular field of anObjectValue.final SkipValueskip()Wraps the allowed values ofthisasSkipValue.abstract <T> Twalk(Value.Visitor<T> visitor)
-
Constructor Details
-
Value
public Value()
-
-
Method Details
-
allowedTypes
The allowed types. -
allowMissing
@Default public boolean allowMissing()If the processor should allow a missing JSON value. By default istrue. -
skip
Wraps the allowed values ofthisasSkipValue. Equivalent toSkipValue.builder().allowMissing(allowMissing()).allowedTypes(allowedTypes()).build().- Returns:
- this allowed values of this as skip options
-
array
- Returns:
- this as the value of an array options
- See Also:
-
field
Wrapsthisas a singular field of anObjectValue. Equivalent toObjectOptions.standard(Map.of(name, this)).- Parameters:
name- the field name- Returns:
- this as the singular field of an object options
- See Also:
-
walk
-