Uses of Enum
com.fasterxml.jackson.databind.ObjectMapper.DefaultTyping
Packages that use ObjectMapper.DefaultTyping
Package
Description
Basic data binding (mapping) functionality that
allows for reading JSON content into Java Objects (POJOs)
and JSON Trees (
JsonNode
), as well as
writing Java Objects and trees as JSON.Package that contains most of configuration-related classes;
exception being couple of most-commonly used configuration
things (like Feature enumerations) that are at the
main level (
com.fasterxml.jackson.databind
).-
Uses of ObjectMapper.DefaultTyping in com.fasterxml.jackson.databind
Fields in com.fasterxml.jackson.databind declared as ObjectMapper.DefaultTypingModifier and TypeFieldDescriptionprotected final ObjectMapper.DefaultTyping
ObjectMapper.DefaultTypeResolverBuilder._appliesFor
Definition of what types is this default typer valid for.Methods in com.fasterxml.jackson.databind that return ObjectMapper.DefaultTypingModifier and TypeMethodDescriptionstatic ObjectMapper.DefaultTyping
Returns the enum constant of this type with the specified name.static ObjectMapper.DefaultTyping[]
ObjectMapper.DefaultTyping.values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods in com.fasterxml.jackson.databind with parameters of type ObjectMapper.DefaultTypingModifier and TypeMethodDescriptionprotected TypeResolverBuilder
<?> ObjectMapper._constructDefaultTypeResolverBuilder
(ObjectMapper.DefaultTyping applicability, PolymorphicTypeValidator ptv) Overridable factory method, separate to allow format-specific mappers (and specifically XML-backed one, currently) to offer customTypeResolverBuilder
subtypes.ObjectMapper.activateDefaultTyping
(PolymorphicTypeValidator ptv, ObjectMapper.DefaultTyping applicability) Convenience method that is equivalent to callingObjectMapper.activateDefaultTyping
(PolymorphicTypeValidator ptv, ObjectMapper.DefaultTyping applicability, com.fasterxml.jackson.annotation.JsonTypeInfo.As includeAs) Method for enabling automatic inclusion of type information ("Default Typing"), needed for proper deserialization of polymorphic types (unless types have been annotated withJsonTypeInfo
).ObjectMapper.activateDefaultTypingAsProperty
(PolymorphicTypeValidator ptv, ObjectMapper.DefaultTyping applicability, String propertyName) Method for enabling automatic inclusion of type information ("Default Typing") -- needed for proper deserialization of polymorphic types (unless types have been annotated withJsonTypeInfo
) -- using "As.PROPERTY" inclusion mechanism and specified property name to use for inclusion (default being "@class" since default type information always uses class name as type identifier)ObjectMapper.DefaultTypeResolverBuilder.construct
(ObjectMapper.DefaultTyping t, PolymorphicTypeValidator ptv) ObjectMapper.enableDefaultTyping
(ObjectMapper.DefaultTyping dti) Deprecated.ObjectMapper.enableDefaultTyping
(ObjectMapper.DefaultTyping applicability, com.fasterxml.jackson.annotation.JsonTypeInfo.As includeAs) Deprecated.Since 2.10 useObjectMapper.activateDefaultTyping(PolymorphicTypeValidator,DefaultTyping,JsonTypeInfo.As)
insteadObjectMapper.enableDefaultTypingAsProperty
(ObjectMapper.DefaultTyping applicability, String propertyName) Deprecated.Since 2.10 useObjectMapper.activateDefaultTypingAsProperty(PolymorphicTypeValidator,DefaultTyping,String)
insteadConstructors in com.fasterxml.jackson.databind with parameters of type ObjectMapper.DefaultTypingModifierConstructorDescriptionDeprecated.Since 2.10 -
Uses of ObjectMapper.DefaultTyping in com.fasterxml.jackson.databind.cfg
Methods in com.fasterxml.jackson.databind.cfg with parameters of type ObjectMapper.DefaultTypingModifier and TypeMethodDescriptionMapperBuilder.activateDefaultTyping
(PolymorphicTypeValidator subtypeValidator, ObjectMapper.DefaultTyping dti) Convenience method that is equivalent to callingMapperBuilder.activateDefaultTyping
(PolymorphicTypeValidator subtypeValidator, ObjectMapper.DefaultTyping applicability, com.fasterxml.jackson.annotation.JsonTypeInfo.As includeAs) Method for enabling automatic inclusion of type information, needed for proper deserialization of polymorphic types (unless types have been annotated withJsonTypeInfo
).MapperBuilder.activateDefaultTypingAsProperty
(PolymorphicTypeValidator subtypeValidator, ObjectMapper.DefaultTyping applicability, String propertyName) Method for enabling automatic inclusion of type information -- needed for proper deserialization of polymorphic types (unless types have been annotated withJsonTypeInfo
) -- using "As.PROPERTY" inclusion mechanism and specified property name to use for inclusion (default being "@class" since default type information always uses class name as type identifier)
ObjectMapper.activateDefaultTyping(PolymorphicTypeValidator,DefaultTyping)
instead