Uses of Class
com.fasterxml.jackson.databind.ObjectMapper.DefaultTyping
-
Packages that use ObjectMapper.DefaultTyping Package Description com.fasterxml.jackson.databind 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.com.fasterxml.jackson.databind.cfg 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.DefaultTyping Modifier and Type Field Description protected ObjectMapper.DefaultTyping
ObjectMapper.DefaultTypeResolverBuilder. _appliesFor
Definition of what types is this default typer valid for.Methods in com.fasterxml.jackson.databind that return ObjectMapper.DefaultTyping Modifier and Type Method Description static ObjectMapper.DefaultTyping
ObjectMapper.DefaultTyping. valueOf(java.lang.String name)
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.DefaultTyping Modifier and Type Method Description protected 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
ObjectMapper. activateDefaultTyping(PolymorphicTypeValidator ptv, ObjectMapper.DefaultTyping applicability)
Convenience method that is equivalent to callingObjectMapper
ObjectMapper. 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
ObjectMapper. activateDefaultTypingAsProperty(PolymorphicTypeValidator ptv, ObjectMapper.DefaultTyping applicability, java.lang.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)static ObjectMapper.DefaultTypeResolverBuilder
ObjectMapper.DefaultTypeResolverBuilder. construct(ObjectMapper.DefaultTyping t, PolymorphicTypeValidator ptv)
ObjectMapper
ObjectMapper. enableDefaultTyping(ObjectMapper.DefaultTyping dti)
Deprecated.Since 2.10 useObjectMapper.activateDefaultTyping(PolymorphicTypeValidator,DefaultTyping)
insteadObjectMapper
ObjectMapper. enableDefaultTyping(ObjectMapper.DefaultTyping applicability, com.fasterxml.jackson.annotation.JsonTypeInfo.As includeAs)
Deprecated.Since 2.10 useObjectMapper.activateDefaultTyping(PolymorphicTypeValidator,DefaultTyping,JsonTypeInfo.As)
insteadObjectMapper
ObjectMapper. enableDefaultTypingAsProperty(ObjectMapper.DefaultTyping applicability, java.lang.String propertyName)
Deprecated.Since 2.10 useObjectMapper.activateDefaultTypingAsProperty(PolymorphicTypeValidator,DefaultTyping,String)
insteadConstructors in com.fasterxml.jackson.databind with parameters of type ObjectMapper.DefaultTyping Constructor Description DefaultTypeResolverBuilder(ObjectMapper.DefaultTyping t)
Deprecated.Since 2.10DefaultTypeResolverBuilder(ObjectMapper.DefaultTyping t, PolymorphicTypeValidator ptv)
-
Uses of ObjectMapper.DefaultTyping in com.fasterxml.jackson.databind.cfg
Methods in com.fasterxml.jackson.databind.cfg with parameters of type ObjectMapper.DefaultTyping Modifier and Type Method Description B
MapperBuilder. activateDefaultTyping(PolymorphicTypeValidator subtypeValidator, ObjectMapper.DefaultTyping dti)
Convenience method that is equivalent to callingB
MapperBuilder. 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
).B
MapperBuilder. activateDefaultTypingAsProperty(PolymorphicTypeValidator subtypeValidator, ObjectMapper.DefaultTyping applicability, java.lang.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)
-