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 value
  • foo: [ <value> ] - 1D array value
  • foo: [ [<value> ] ] - 2D array value
  • foo: { ... } - object
  • foo: [+ { ... } ] - object array
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onText(String value)
    Called when a parser converts a JSON structure to text rather than delivering the token directly.
    void
    onValue(com.fasterxml.jackson.core.JsonToken token, TokenIterator tokenizer)
    Called for a JSON scalar token.
  • Method Details

    • onValue

      void onValue(com.fasterxml.jackson.core.JsonToken token, TokenIterator tokenizer)
      Called for a JSON scalar token.
      Parameters:
      token - the scalar token
      tokenizer - provides access to the value of the token
    • onText

      void onText(String value)
      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