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
Modifier and TypeClassDescriptionstatic interface
Value.Builder<V extends Value,
B extends Value.Builder<V, B>> static interface
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Set<JsonValueTypes>
The allowed types.boolean
If the processor should allow a missing JSON value.final ArrayValue
array()
Wrapsthis
as the value of anArrayValue
.final ObjectValue
Wrapsthis
as a singular field of anObjectValue
.final SkipValue
skip()
Wraps the allowed values ofthis
asSkipValue
.abstract <T> T
walk
(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 ofthis
asSkipValue
. 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
Wrapsthis
as 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
-