public abstract class TypeSerializerBase extends TypeSerializer
限定符和类型 | 字段和说明 |
---|---|
protected TypeIdResolver |
_idResolver |
protected BeanProperty |
_property |
限定符 | 构造器和说明 |
---|---|
protected |
TypeSerializerBase(TypeIdResolver idRes,
BeanProperty property) |
限定符和类型 | 方法和说明 |
---|---|
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 JsonTypeInfo.As |
getTypeInclusion()
Accessor for type information inclusion method
that serializer uses; indicates how type information
is embedded in resulting JSON.
|
protected final TypeIdResolver _idResolver
protected final BeanProperty _property
protected TypeSerializerBase(TypeIdResolver idRes, BeanProperty property)
public abstract JsonTypeInfo.As getTypeInclusion()
TypeSerializer
getTypeInclusion
在类中 TypeSerializer
public String getPropertyName()
TypeSerializer
getPropertyName
在类中 TypeSerializer
public TypeIdResolver getTypeIdResolver()
TypeSerializer
getTypeIdResolver
在类中 TypeSerializer