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.
|
getPropertyNameclone, 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, writeTypeSuffixpublic 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–2018. All rights reserved.