Class TypeSerializerBase

java.lang.Object
tools.jackson.databind.jsontype.TypeSerializer
tools.jackson.databind.jsontype.impl.TypeSerializerBase
Direct Known Subclasses:
AsArrayTypeSerializer, AsDeductionTypeSerializer, AsExistingPropertyTypeSerializer, AsExternalTypeSerializer, AsPropertyTypeSerializer, AsWrapperTypeSerializer

public abstract class TypeSerializerBase extends TypeSerializer
  • Field Details

    • _idResolver

      protected final TypeIdResolver _idResolver
    • _property

      protected final BeanProperty _property
    • _skipTypeIdFor

      protected final Class<?> _skipTypeIdFor
      When non-null, the default implementation class for which the type id will be suppressed during serialization: if the runtime value class exactly matches this class, no type id is written. When null, type id is always written.
      Since:
      3.2
  • Constructor Details

    • TypeSerializerBase

      protected TypeSerializerBase(TypeIdResolver idRes, BeanProperty property, Class<?> skipTypeIdFor)
      Parameters:
      skipTypeIdFor - if non-null, type id will be suppressed during serialization when the runtime value class exactly matches this class
      Since:
      3.2
    • TypeSerializerBase

      @Deprecated protected TypeSerializerBase(TypeIdResolver idRes, BeanProperty property)
      Deprecated.
      Since 3.2 use variant with 3 arguments
  • Method Details