public class AsPropertyTypeSerializer extends AsArrayTypeSerializer
JsonTypeInfo.As.WRAPPER_ARRAY always works) as a fallback.| Modifier and Type | Field and Description |
|---|---|
protected String |
_typePropertyName |
_idResolver, _property| Constructor and Description |
|---|
AsPropertyTypeSerializer(TypeIdResolver idRes,
BeanProperty property,
String propName) |
| Modifier and Type | Method and Description |
|---|---|
AsPropertyTypeSerializer |
forProperty(BeanProperty prop)
Method called to create contextual version, to be used for
values of given property.
|
String |
getPropertyName()
Name of property that contains type information, if
property-based inclusion is used.
|
JsonTypeInfo.As |
getTypeInclusion()
Accessor for type information inclusion method
that serializer uses; indicates how type information
is embedded in resulting JSON.
|
_generateTypeId, getTypeIdResolver, handleMissingId, idFromValue, idFromValueAndType, writeTypePrefix, writeTypeSuffix_writeLegacySuffix, typeId, typeId, typeId, writeCustomTypePrefixForArray, writeCustomTypePrefixForObject, writeCustomTypePrefixForScalar, writeCustomTypeSuffixForArray, writeCustomTypeSuffixForObject, writeCustomTypeSuffixForScalar, writeTypePrefixForArray, writeTypePrefixForArray, writeTypePrefixForObject, writeTypePrefixForObject, writeTypePrefixForScalar, writeTypePrefixForScalar, writeTypeSuffixForArray, writeTypeSuffixForObject, writeTypeSuffixForScalarprotected final String _typePropertyName
public AsPropertyTypeSerializer(TypeIdResolver idRes, BeanProperty property, String propName)
public AsPropertyTypeSerializer forProperty(BeanProperty prop)
TypeSerializerCollection or Map
valued properties).forProperty in class AsArrayTypeSerializerpublic String getPropertyName()
TypeSerializergetPropertyName in class TypeSerializerBasepublic JsonTypeInfo.As getTypeInclusion()
TypeSerializergetTypeInclusion in class AsArrayTypeSerializerCopyright © 2008–2018 FasterXML. All rights reserved.