public class ValueDef extends Object
To be clear, this is the JSON parser's best guess at a field type from the input token stream. This is not a description of the desired data type as JSON can only react to what it sees on input.
Modifier and Type | Class and Description |
---|---|
static class |
ValueDef.JsonType
Description of JSON types as derived from JSON tokens.
|
Modifier and Type | Field and Description |
---|---|
static ValueDef |
UNKNOWN |
static ValueDef |
UNKNOWN_ARRAY |
Constructor and Description |
---|
ValueDef(ValueDef.JsonType type) |
ValueDef(ValueDef.JsonType type,
int dims) |
Modifier and Type | Method and Description |
---|---|
int |
dimensions() |
boolean |
isArray() |
static ValueDef.JsonType |
jsonTypeFor(com.fasterxml.jackson.core.JsonToken token) |
String |
toString() |
ValueDef.JsonType |
type() |
public static final ValueDef UNKNOWN_ARRAY
public static final ValueDef UNKNOWN
public ValueDef(ValueDef.JsonType type)
public ValueDef(ValueDef.JsonType type, int dims)
public ValueDef.JsonType type()
public int dimensions()
public boolean isArray()
public static ValueDef.JsonType jsonTypeFor(com.fasterxml.jackson.core.JsonToken token)
Copyright © 1970 The Apache Software Foundation. All rights reserved.