Class JsonValueSerializer.TypeSerializerRerouter

  • Enclosing class:
    JsonValueSerializer

    static class JsonValueSerializer.TypeSerializerRerouter
    extends TypeSerializer
    Silly little wrapper class we need to re-route type serialization so that we can override Object to use for type id (logical type) even when asking serialization of something else (delegate type)
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      TypeSerializer forProperty​(BeanProperty prop)
      Method called to create contextual version, to be used for values of given property.
      java.lang.String getPropertyName()
      Name of property that contains type information, if property-based inclusion is used.
      TypeIdResolver getTypeIdResolver()
      Accessor for object that handles conversions between types and matching type ids.
      com.fasterxml.jackson.annotation.JsonTypeInfo.As getTypeInclusion()
      Accessor for type information inclusion method that serializer uses; indicates how type information is embedded in resulting JSON.
      void writeCustomTypePrefixForArray​(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator gen, java.lang.String typeId)
      Deprecated.
      void writeCustomTypePrefixForObject​(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator gen, java.lang.String typeId)
      Deprecated.
      void writeCustomTypePrefixForScalar​(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator gen, java.lang.String typeId)
      Deprecated.
      void writeCustomTypeSuffixForArray​(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator gen, java.lang.String typeId)
      Deprecated.
      void writeCustomTypeSuffixForObject​(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator gen, java.lang.String typeId)
      Deprecated.
      void writeCustomTypeSuffixForScalar​(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator gen, java.lang.String typeId)
      Deprecated.
      com.fasterxml.jackson.core.type.WritableTypeId writeTypePrefix​(com.fasterxml.jackson.core.JsonGenerator g, com.fasterxml.jackson.core.type.WritableTypeId typeId)
      Method called to write initial part of type information for given value, along with possible wrapping to use: details are specified by `typeId` argument.
      void writeTypePrefixForArray​(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator gen)
      Deprecated.
      void writeTypePrefixForArray​(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator gen, java.lang.Class<?> type)
      Deprecated.
      void writeTypePrefixForObject​(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator gen)
      Deprecated.
      void writeTypePrefixForObject​(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator gen, java.lang.Class<?> type)
      Deprecated.
      void writeTypePrefixForScalar​(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator gen)
      Deprecated.
      void writeTypePrefixForScalar​(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator gen, java.lang.Class<?> type)
      Deprecated.
      com.fasterxml.jackson.core.type.WritableTypeId writeTypeSuffix​(com.fasterxml.jackson.core.JsonGenerator g, com.fasterxml.jackson.core.type.WritableTypeId typeId)
      Method that should be called after TypeSerializer.writeTypePrefix(JsonGenerator, WritableTypeId) and matching value write have been called, passing WritableTypeId returned.
      void writeTypeSuffixForArray​(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator gen)
      Deprecated.
      void writeTypeSuffixForObject​(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator gen)
      Deprecated.
      void writeTypeSuffixForScalar​(java.lang.Object value, com.fasterxml.jackson.core.JsonGenerator gen)
      Deprecated.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait