public class AsPropertyTypeSerializer extends AsArrayTypeSerializer
JsonTypeInfo.As.WRAPPER_ARRAY
always works) as a fallback.Constructor and Description |
---|
AsPropertyTypeSerializer(TypeIdResolver idRes,
BeanProperty property,
java.lang.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.
|
java.lang.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.
|
getTypeIdResolver, writeTypePrefix, writeTypeSuffix
typeId, typeId, typeId, writeCustomTypePrefixForArray, writeCustomTypePrefixForObject, writeCustomTypePrefixForScalar, writeCustomTypeSuffixForArray, writeCustomTypeSuffixForObject, writeCustomTypeSuffixForScalar, writeTypePrefixForArray, writeTypePrefixForArray, writeTypePrefixForObject, writeTypePrefixForObject, writeTypePrefixForScalar, writeTypePrefixForScalar, writeTypeSuffixForArray, writeTypeSuffixForObject, writeTypeSuffixForScalar
public AsPropertyTypeSerializer(TypeIdResolver idRes, BeanProperty property, java.lang.String propName)
public AsPropertyTypeSerializer forProperty(BeanProperty prop)
TypeSerializer
Collection
or Map
valued properties).forProperty
in class AsArrayTypeSerializer
public java.lang.String getPropertyName()
TypeSerializer
getPropertyName
in class TypeSerializerBase
public JsonTypeInfo.As getTypeInclusion()
TypeSerializer
getTypeInclusion
in class AsArrayTypeSerializer
Copyright © 2010 - 2020 Adobe. All Rights Reserved