Package io.deephaven.json
Class StringValue
Processes a JSON value as a
String
.-
Nested Class Summary
Nested classes/interfaces inherited from class io.deephaven.json.ValueSingleValueBase
ValueSingleValueBase.BuilderSpecial<T,
V extends ValueSingleValueBase<T>, B extends ValueSingleValueBase.BuilderSpecial<T, V, B>> Nested classes/interfaces inherited from class io.deephaven.json.Value
Value.Visitor<T>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe allowed types.static StringValue.Builder
builder()
static StringValue
lenient()
The lenientString
options.static StringValue
standard()
The standardString
options.static StringValue
strict()
The strictString
options.final <T> T
walk
(Value.Visitor<T> visitor) Methods inherited from class io.deephaven.json.ValueSingleValueBase
onMissing, onNull
Methods inherited from class io.deephaven.json.Value
allowMissing, array, field, skip
-
Constructor Details
-
StringValue
public StringValue()
-
-
Method Details
-
builder
-
lenient
The lenientString
options. Allows missing and acceptsJsonValueTypes.stringLike()
.- Returns:
- the lenient String options
-
standard
The standardString
options. Allows missing and acceptsJsonValueTypes.stringOrNull()
.- Returns:
- the standard String options
-
strict
The strictString
options. Disallows missing and acceptsJsonValueTypes.string()
.- Returns:
- the strict String options
-
allowedTypes
The allowed types. Must be a subset ofJsonValueTypes.stringLike()
. By default isJsonValueTypes.stringOrNull()
.- Specified by:
allowedTypes
in classValue
-
walk
-