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 | Description |
---|---|
AsExistingPropertyTypeSerializer(TypeIdResolver idRes,
BeanProperty property,
String propName) |
Modifier and Type | Method | 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
_writeLegacySuffix, typeId, typeId, typeId, writeCustomTypePrefixForArray, writeCustomTypePrefixForObject, writeCustomTypePrefixForScalar, writeCustomTypeSuffixForArray, writeCustomTypeSuffixForObject, writeCustomTypeSuffixForScalar, writeTypePrefixForArray, writeTypePrefixForArray, writeTypePrefixForObject, writeTypePrefixForObject, writeTypePrefixForScalar, writeTypePrefixForScalar, writeTypeSuffixForArray, writeTypeSuffixForObject, writeTypeSuffixForScalar
_generateTypeId, getTypeIdResolver, handleMissingId, idFromValue, idFromValueAndType, writeTypePrefix, writeTypeSuffix
public AsExistingPropertyTypeSerializer(TypeIdResolver idRes, BeanProperty property, String propName)
public AsExistingPropertyTypeSerializer forProperty(BeanProperty prop)
TypeSerializer
Collection
or Map
valued properties).forProperty
in class AsPropertyTypeSerializer
public com.fasterxml.jackson.annotation.JsonTypeInfo.As getTypeInclusion()
TypeSerializer
getTypeInclusion
in class AsPropertyTypeSerializer
Copyright © 2008–2018. All rights reserved.