public class AsExistingPropertyTypeSerializer extends AsPropertyTypeSerializer
JsonTypeInfo.As.EXISTING_PROPERTY inclusion mechanism.
Expects type information to be a well-defined property on all sub-classes._typePropertyName_idResolver, _property| Constructor and Description |
|---|
AsExistingPropertyTypeSerializer(TypeIdResolver idRes,
BeanProperty property,
String propName) |
| Modifier and Type | Method and Description |
|---|---|
AsExistingPropertyTypeSerializer |
forProperty(BeanProperty prop)
Method called to create contextual version, to be used for
values of given property.
|
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.
|
getPropertyName_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, writeTypeSuffixForScalarpublic AsExistingPropertyTypeSerializer(TypeIdResolver idRes, BeanProperty property, String propName)
public AsExistingPropertyTypeSerializer forProperty(BeanProperty prop)
TypeSerializerCollection or Map
valued properties).forProperty in class AsPropertyTypeSerializerpublic com.fasterxml.jackson.annotation.JsonTypeInfo.As getTypeInclusion()
TypeSerializergetTypeInclusion in class AsPropertyTypeSerializerCopyright © 2008–2023 FasterXML. All rights reserved.