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.
|
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, writeTypeSuffixForScalar
public AsExistingPropertyTypeSerializer(TypeIdResolver idRes, BeanProperty property, String propName)
public AsExistingPropertyTypeSerializer forProperty(BeanProperty prop)
TypeSerializer
Collection
or Map
valued properties).forProperty
in class AsPropertyTypeSerializer
public JsonTypeInfo.As getTypeInclusion()
TypeSerializer
getTypeInclusion
in class AsPropertyTypeSerializer
Copyright © 2019 JBoss by Red Hat. All rights reserved.