Class JsonTypeAndClassSerializer


  • public class JsonTypeAndClassSerializer
    extends com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeSerializer
    • Field Summary

      • Fields inherited from class com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeSerializer

        _typePropertyName
      • Fields inherited from class com.fasterxml.jackson.databind.jsontype.impl.TypeSerializerBase

        _idResolver, _property
    • Constructor Summary

      Constructors 
      Constructor Description
      JsonTypeAndClassSerializer​(com.fasterxml.jackson.databind.jsontype.TypeIdResolver idRes, com.fasterxml.jackson.databind.BeanProperty property, java.lang.String propName)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      JsonTypeAndClassSerializer forProperty​(com.fasterxml.jackson.databind.BeanProperty prop)  
      com.fasterxml.jackson.core.type.WritableTypeId writeTypePrefix​(com.fasterxml.jackson.core.JsonGenerator g, com.fasterxml.jackson.core.type.WritableTypeId idMetadata)  
      com.fasterxml.jackson.core.type.WritableTypeId writeTypeSuffix​(com.fasterxml.jackson.core.JsonGenerator g, com.fasterxml.jackson.core.type.WritableTypeId idMetadata)  
      • Methods inherited from class com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeSerializer

        getPropertyName, getTypeInclusion
      • Methods inherited from class com.fasterxml.jackson.databind.jsontype.impl.TypeSerializerBase

        _generateTypeId, getTypeIdResolver, handleMissingId, idFromValue, idFromValueAndType
      • Methods inherited from class com.fasterxml.jackson.databind.jsontype.TypeSerializer

        _writeLegacySuffix, typeId, typeId, typeId, writeCustomTypePrefixForArray, writeCustomTypePrefixForObject, writeCustomTypePrefixForScalar, writeCustomTypeSuffixForArray, writeCustomTypeSuffixForObject, writeCustomTypeSuffixForScalar, writeTypePrefixForArray, writeTypePrefixForArray, writeTypePrefixForObject, writeTypePrefixForObject, writeTypePrefixForScalar, writeTypePrefixForScalar, writeTypeSuffixForArray, writeTypeSuffixForObject, writeTypeSuffixForScalar
      • Methods inherited from class java.lang.Object

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

      • JsonTypeAndClassSerializer

        public JsonTypeAndClassSerializer​(com.fasterxml.jackson.databind.jsontype.TypeIdResolver idRes,
                                          com.fasterxml.jackson.databind.BeanProperty property,
                                          java.lang.String propName)
    • Method Detail

      • forProperty

        public JsonTypeAndClassSerializer forProperty​(com.fasterxml.jackson.databind.BeanProperty prop)
        Overrides:
        forProperty in class com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeSerializer
      • writeTypePrefix

        public com.fasterxml.jackson.core.type.WritableTypeId writeTypePrefix​(com.fasterxml.jackson.core.JsonGenerator g,
                                                                              com.fasterxml.jackson.core.type.WritableTypeId idMetadata)
                                                                       throws java.io.IOException
        Overrides:
        writeTypePrefix in class com.fasterxml.jackson.databind.jsontype.impl.TypeSerializerBase
        Throws:
        java.io.IOException
      • writeTypeSuffix

        public com.fasterxml.jackson.core.type.WritableTypeId writeTypeSuffix​(com.fasterxml.jackson.core.JsonGenerator g,
                                                                              com.fasterxml.jackson.core.type.WritableTypeId idMetadata)
                                                                       throws java.io.IOException
        Overrides:
        writeTypeSuffix in class com.fasterxml.jackson.databind.jsontype.impl.TypeSerializerBase
        Throws:
        java.io.IOException