Class BaseExtendedValueParser

All Implemented Interfaces:
ElementParser
Direct Known Subclasses:
MongoBinaryValueParser, MongoDateValueParser, SimpleExtendedValueParser

public abstract class BaseExtendedValueParser extends ValueParser
  • Field Details

  • Constructor Details

  • Method Details

    • typeName

      protected abstract String typeName()
    • parseExtended

      protected void parseExtended(TokenIterator tokenizer, String typeName)
      Parse a value in extended form:
      
       {"$type": value}</code
      .

      Uses the given type name. Can parse an entire field, or a subfield, as in the V2 date format.

    • requireToken

      protected void requireToken(TokenIterator tokenizer, com.fasterxml.jackson.core.JsonToken expected)
    • requireToken

      protected void requireToken(com.fasterxml.jackson.core.JsonToken token, com.fasterxml.jackson.core.JsonToken expected)
    • requireScalar

      protected com.fasterxml.jackson.core.JsonToken requireScalar(TokenIterator tokenizer)
    • requireField

      protected void requireField(TokenIterator tokenizer, String fieldName)
    • syntaxError

      protected RuntimeException syntaxError()
    • formatHint

      protected abstract String formatHint()