Interface ValueListener
- All Known Implementing Classes:
BigIntListener,BinaryValueListener,BooleanListener,DateValueListener,DecimalValueListener,DoubleListener,IntervalValueListener,ScalarListener,StrictBigIntValueListener,StrictDoubleValueListener,StrictIntValueListener,StrictStringValueListener,TimestampValueListener,TimeValueListener,UtcDateValueListener,UtcTimestampValueListener,VarCharListener
public interface ValueListener
Represents a JSON scalar value, either a direct object field, or level
within an array. That is:
foo: <value>- Field valuefoo: [ <value> ]- 1D array valuefoo: [ [<value> ] ]- 2D array valuefoo: { ... }- objectfoo: [+ { ... } ]- object array
-
Method Summary
Modifier and TypeMethodDescriptionvoidCalled when a parser converts a JSON structure to text rather than delivering the token directly.voidonValue(com.fasterxml.jackson.core.JsonToken token, TokenIterator tokenizer) Called for a JSON scalar token.
-
Method Details
-
onValue
Called for a JSON scalar token.- Parameters:
token- the scalar tokentokenizer- provides access to the value of the token
-
onText
Called when a parser converts a JSON structure to text rather than delivering the token directly.- Parameters:
value- the string value of the parsed token or structure
-