Class AsStringDeserializer

java.lang.Object
tools.jackson.databind.ValueDeserializer<Long>
me.ahoo.cosid.jackson.AsStringDeserializer
All Implemented Interfaces:
tools.jackson.databind.deser.NullValueProvider

public class AsStringDeserializer extends tools.jackson.databind.ValueDeserializer<Long>
Reads an AsString id. A JSON string is decoded, an empty one is null; a JSON number is the id itself if the codec could have written it. Text the codec cannot read is reported through DeserializationContext.handleWeirdStringValue(java.lang.Class<?>, java.lang.String, java.lang.String, java.lang.Object...), an InvalidFormatException (a client error) by default.
  • Nested Class Summary

    Nested classes/interfaces inherited from class tools.jackson.databind.ValueDeserializer

    tools.jackson.databind.ValueDeserializer.None
  • Constructor Summary

    Constructors
    Constructor
    Description
    A deserializer of decimal text, without a runtime: what @JsonDeserialize(using = ...) creates.
  • Method Summary

    Modifier and Type
    Method
    Description
    tools.jackson.databind.ValueDeserializer<?>
    createContextual(tools.jackson.databind.DeserializationContext ctxt, tools.jackson.databind.BeanProperty property)
     
    deserialize(tools.jackson.core.JsonParser p, tools.jackson.databind.DeserializationContext ctxt)
     
     

    Methods inherited from class tools.jackson.databind.ValueDeserializer

    deserialize, deserializeWithType, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getObjectIdReader, isCachable, logicalType, replaceDelegatee, resolve, supportsUpdate, unwrappingDeserializer

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AsStringDeserializer

      public AsStringDeserializer()
      A deserializer of decimal text, without a runtime: what @JsonDeserialize(using = ...) creates.
  • Method Details

    • createContextual

      public tools.jackson.databind.ValueDeserializer<?> createContextual(tools.jackson.databind.DeserializationContext ctxt, tools.jackson.databind.BeanProperty property)
      Overrides:
      createContextual in class tools.jackson.databind.ValueDeserializer<Long>
    • deserialize

      public Long deserialize(tools.jackson.core.JsonParser p, tools.jackson.databind.DeserializationContext ctxt)
      Specified by:
      deserialize in class tools.jackson.databind.ValueDeserializer<Long>
    • handledType

      public Class<?> handledType()
      Overrides:
      handledType in class tools.jackson.databind.ValueDeserializer<Long>