public abstract class TypeSerializerBase extends TypeSerializer
| Modifier and Type | Field and Description |
|---|---|
protected TypeIdResolver |
_idResolver |
protected BeanProperty |
_property |
| Modifier | Constructor and Description |
|---|---|
protected |
TypeSerializerBase(TypeIdResolver idRes,
BeanProperty property) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
abstract 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.
|
protected void |
handleMissingId(java.lang.Object value) |
protected java.lang.String |
idFromValue(java.lang.Object value) |
protected java.lang.String |
idFromValueAndType(java.lang.Object value,
java.lang.Class<?> type) |
forProperty, writeCustomTypePrefixForArray, writeCustomTypePrefixForObject, writeCustomTypePrefixForScalar, writeCustomTypeSuffixForArray, writeCustomTypeSuffixForObject, writeCustomTypeSuffixForScalar, writeTypePrefixForArray, writeTypePrefixForArray, writeTypePrefixForObject, writeTypePrefixForObject, writeTypePrefixForScalar, writeTypePrefixForScalar, writeTypeSuffixForArray, writeTypeSuffixForObject, writeTypeSuffixForScalarprotected final TypeIdResolver _idResolver
protected final BeanProperty _property
protected TypeSerializerBase(TypeIdResolver idRes, BeanProperty property)
public abstract com.fasterxml.jackson.annotation.JsonTypeInfo.As getTypeInclusion()
TypeSerializergetTypeInclusion in class TypeSerializerpublic java.lang.String getPropertyName()
TypeSerializergetPropertyName in class TypeSerializerpublic TypeIdResolver getTypeIdResolver()
TypeSerializergetTypeIdResolver in class TypeSerializerprotected java.lang.String idFromValue(java.lang.Object value)
protected java.lang.String idFromValueAndType(java.lang.Object value,
java.lang.Class<?> type)
protected void handleMissingId(java.lang.Object value)