public abstract class TypeSerializerBase extends TypeSerializer
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getPropertyName()
Name of property that contains type information, if
property-based inclusion is used.
|
TypeIdResolver |
getTypeIdResolver()
Accessor for object that handles conversions between
types and matching type ids.
|
abstract JsonTypeInfo.As |
getTypeInclusion()
Accessor for type information inclusion method
that serializer uses; indicates how type information
is embedded in resulting JSON.
|
WritableTypeId |
writeTypePrefix(JsonGenerator g,
WritableTypeId idMetadata)
Method called to write initial part of type information for given
value, along with possible wrapping to use: details are specified
by `typeId` argument.
|
WritableTypeId |
writeTypeSuffix(JsonGenerator g,
WritableTypeId idMetadata) |
forProperty, typeId, typeId, typeId, writeCustomTypePrefixForArray, writeCustomTypePrefixForObject, writeCustomTypePrefixForScalar, writeCustomTypeSuffixForArray, writeCustomTypeSuffixForObject, writeCustomTypeSuffixForScalar, writeTypePrefixForArray, writeTypePrefixForArray, writeTypePrefixForObject, writeTypePrefixForObject, writeTypePrefixForScalar, writeTypePrefixForScalar, writeTypeSuffixForArray, writeTypeSuffixForObject, writeTypeSuffixForScalarpublic abstract JsonTypeInfo.As getTypeInclusion()
TypeSerializergetTypeInclusion in class TypeSerializerpublic java.lang.String getPropertyName()
TypeSerializergetPropertyName in class TypeSerializerpublic TypeIdResolver getTypeIdResolver()
TypeSerializergetTypeIdResolver in class TypeSerializerpublic WritableTypeId writeTypePrefix(JsonGenerator g, WritableTypeId idMetadata) throws java.io.IOException
TypeSerializerwriteTypePrefix in class TypeSerializerg - Generator to use for outputting type id and possible wrappingidMetadata - Details of what type id is to be written, how.java.io.IOExceptionpublic WritableTypeId writeTypeSuffix(JsonGenerator g, WritableTypeId idMetadata) throws java.io.IOException
writeTypeSuffix in class TypeSerializerjava.io.IOExceptionCopyright © 2010 - 2019 Adobe. All Rights Reserved