Uses of Class
tools.jackson.databind.DatabindContext
Packages that use DatabindContext
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 (
tools.jackson.databind
).Contains implementation classes of deserialization part of
data binding.
Package that contains interfaces that define how to implement
functionality for dynamically resolving type during deserialization.
Package that contains standard implementations for
TypeResolverBuilder
and
TypeIdResolver
.Contains implementation classes of serialization part of
data binding.
Utility classes for Mapper package.
-
Uses of DatabindContext in tools.jackson.databind
Subclasses of DatabindContext in tools.jackson.databindModifier and TypeClassDescriptionclass
Context for the process of deserialization a single root-level value.class
Class that defines API used byObjectMapper
andValueSerializer
s to obtain serializers capable of serializing instances of specific types; as well as the default implementation of the functionality.Methods in tools.jackson.databind that return DatabindContextModifier and TypeMethodDescriptionabstract DatabindContext
DatabindContext.setAttribute
(Object key, Object value) Method for setting per-call value of given attribute. -
Uses of DatabindContext in tools.jackson.databind.cfg
Methods in tools.jackson.databind.cfg with parameters of type DatabindContextModifier and TypeMethodDescriptionabstract PropertyName
MapperConfig.findRootName
(DatabindContext ctxt, Class<?> rawRootType) abstract PropertyName
MapperConfig.findRootName
(DatabindContext ctxt, JavaType rootType) MapperConfigBase.findRootName
(DatabindContext ctxt, Class<?> rawRootType) MapperConfigBase.findRootName
(DatabindContext ctxt, JavaType rootType) -
Uses of DatabindContext in tools.jackson.databind.deser
Subclasses of DatabindContext in tools.jackson.databind.deserModifier and TypeClassDescriptionclass
CompleteDeserializationContext
implementation that adds extended API forObjectMapper
(andObjectReader
) to call, as well as implements certain parts that base class has left abstract.static final class
Actual full concrete implementationMethods in tools.jackson.databind.deser with parameters of type DatabindContextModifier and TypeMethodDescriptionboolean
BasicDeserializerFactory.hasExplicitDeserializerFor
(DatabindContext ctxt, Class<?> valueType) Method that can be used to check if databind module has deserializer for given (likely JDK) type: explicit meaning that it is not automatically generated for POJO.abstract boolean
DeserializerFactory.hasExplicitDeserializerFor
(DatabindContext ctxt, Class<?> valueType) Method that can be used to check if databind module has explicitly declared deserializer for given (likely JDK) type, explicit meaning that there is specific deserializer for given type as opposed to auto-generated "Bean" deserializer. -
Uses of DatabindContext in tools.jackson.databind.jsontype
Methods in tools.jackson.databind.jsontype with parameters of type DatabindContextModifier and TypeMethodDescriptionTypeIdResolver.idFromBaseType
(DatabindContext ctxt) Method that can be called to figure out type id to use for instances of base type (declared type of property).TypeIdResolver.idFromValue
(DatabindContext ctxt, Object value) Method called to serialize type of the type of given value as a String to include in serialized JSON content.TypeIdResolver.idFromValueAndType
(DatabindContext ctxt, Object value, Class<?> suggestedType) Alternative method used for determining type from combination of value and type, using suggested type (that serializer provides) and possibly value of that type.protected boolean
DefaultBaseTypeLimitingValidator.isSafeSubType
(DatabindContext ctxt, JavaType baseType, JavaType subType) Helper called to determine whether given actual subtype is considered safe to process: this will only be called if subtype was considered acceptable earlier.protected boolean
DefaultBaseTypeLimitingValidator.isUnsafeBaseType
(DatabindContext ctxt, JavaType baseType) Helper method called to determine if the given base type is known to be problematic regarding possible "gadget types".boolean
BasicPolymorphicTypeValidator.NameMatcher.match
(DatabindContext ctxt, String clazzName) boolean
BasicPolymorphicTypeValidator.TypeMatcher.match
(DatabindContext ctxt, Class<?> clazz) TypeIdResolver.typeFromId
(DatabindContext ctxt, String id) Method called to resolve type from given type identifier.BasicPolymorphicTypeValidator.validateBaseType
(DatabindContext ctxt, JavaType baseType) DefaultBaseTypeLimitingValidator.validateBaseType
(DatabindContext ctxt, JavaType baseType) PolymorphicTypeValidator.Base.validateBaseType
(DatabindContext ctxt, JavaType baseType) abstract PolymorphicTypeValidator.Validity
PolymorphicTypeValidator.validateBaseType
(DatabindContext ctxt, JavaType baseType) Method called when a property with polymorphic value is encountered, and aTypeResolverBuilder
is needed.BasicPolymorphicTypeValidator.validateSubClassName
(DatabindContext ctxt, JavaType baseType, String subClassName) DefaultBaseTypeLimitingValidator.validateSubClassName
(DatabindContext ctxt, JavaType baseType, String subClassName) PolymorphicTypeValidator.Base.validateSubClassName
(DatabindContext ctxt, JavaType baseType, String subClassName) abstract PolymorphicTypeValidator.Validity
PolymorphicTypeValidator.validateSubClassName
(DatabindContext ctxt, JavaType baseType, String subClassName) BasicPolymorphicTypeValidator.validateSubType
(DatabindContext ctxt, JavaType baseType, JavaType subType) DefaultBaseTypeLimitingValidator.validateSubType
(DatabindContext ctxt, JavaType baseType, JavaType subType) PolymorphicTypeValidator.Base.validateSubType
(DatabindContext ctxt, JavaType baseType, JavaType subType) abstract PolymorphicTypeValidator.Validity
PolymorphicTypeValidator.validateSubType
(DatabindContext ctxt, JavaType baseType, JavaType subType) Method called after class name has been resolved to actual type, in cases where previous call toPolymorphicTypeValidator.validateSubClassName(tools.jackson.databind.DatabindContext, tools.jackson.databind.JavaType, java.lang.String)
returnedPolymorphicTypeValidator.Validity.INDETERMINATE
. -
Uses of DatabindContext in tools.jackson.databind.jsontype.impl
Methods in tools.jackson.databind.jsontype.impl with parameters of type DatabindContextModifier and TypeMethodDescriptionprotected void
TypeSerializerBase._generateTypeId
(DatabindContext ctxt, tools.jackson.core.type.WritableTypeId idMetadata) Helper method that will generate type id to use, if not already passed.protected boolean
StdTypeResolverBuilder._hasTypeResolver
(DatabindContext ctxt, JavaType baseType) Checks whether the given class has annotations indicating some type resolver is applied, for exampleJsonTypeInfo
.protected String
ClassNameIdResolver._idFrom
(DatabindContext ctxt, Object value, Class<?> cls) protected boolean
StdTypeResolverBuilder._strictTypeIdHandling
(DatabindContext ctxt, JavaType baseType) Determines whether strict type ID handling should be used for this type or not.protected JavaType
ClassNameIdResolver._typeFromId
(DatabindContext ctxt, String id) protected JavaType
MinimalClassNameIdResolver._typeFromId
(DatabindContext ctxt, String id) protected boolean
StdTypeResolverBuilder.allowPrimitiveTypes
(DatabindContext ctxt, JavaType baseType) Overridable helper method that is called to determine whether type serializers and type deserializers may be created even if base type is Javaprimitive
type.protected JavaType
StdTypeResolverBuilder.defineDefaultImpl
(DatabindContext ctxt, JavaType baseType) TypeIdResolverBase.idFromBaseType
(DatabindContext ctxt) protected String
SimpleNameIdResolver.idFromClass
(DatabindContext ctxt, Class<?> cls) protected String
TypeNameIdResolver.idFromClass
(DatabindContext ctxt, Class<?> cls) ClassNameIdResolver.idFromValue
(DatabindContext ctxt, Object value) MinimalClassNameIdResolver.idFromValue
(DatabindContext ctxt, Object value) SimpleNameIdResolver.idFromValue
(DatabindContext ctxt, Object value) TypeNameIdResolver.idFromValue
(DatabindContext ctxt, Object value) protected String
TypeSerializerBase.idFromValue
(DatabindContext ctxt, Object value) ClassNameIdResolver.idFromValueAndType
(DatabindContext ctxt, Object value, Class<?> type) MinimalClassNameIdResolver.idFromValueAndType
(DatabindContext ctxt, Object value, Class<?> rawType) SimpleNameIdResolver.idFromValueAndType
(DatabindContext ctxt, Object value, Class<?> type) TypeNameIdResolver.idFromValueAndType
(DatabindContext ctxt, Object value, Class<?> type) protected String
TypeSerializerBase.idFromValueAndType
(DatabindContext ctxt, Object value, Class<?> type) protected TypeIdResolver
StdTypeResolverBuilder.idResolver
(DatabindContext ctxt, JavaType baseType, PolymorphicTypeValidator subtypeValidator, Collection<NamedType> subtypes, boolean forSer, boolean forDeser) Helper method that will either return configured custom type id resolver, or construct a standard resolver given configuration.protected PolymorphicTypeValidator
StdTypeResolverBuilder.reportInvalidBaseType
(DatabindContext ctxt, JavaType baseType, PolymorphicTypeValidator ptv) DefaultTypeResolverBuilder.subTypeValidator
(DatabindContext ctxt) StdTypeResolverBuilder.subTypeValidator
(DatabindContext ctxt) Overridable helper method for determining actual validator to use when constructing type serializers and type deserializers.ClassNameIdResolver.typeFromId
(DatabindContext ctxt, String id) SimpleNameIdResolver.typeFromId
(DatabindContext ctxt, String id) TypeIdResolverBase.typeFromId
(DatabindContext context, String id) TypeNameIdResolver.typeFromId
(DatabindContext context, String id) protected PolymorphicTypeValidator
StdTypeResolverBuilder.verifyBaseTypeValidity
(DatabindContext ctxt, JavaType baseType) Helper method called to check that base type is valid regarding possible constraints on basetype/subtype combinations allowed for polymorphic type handling. -
Uses of DatabindContext in tools.jackson.databind.ser
Subclasses of DatabindContext in tools.jackson.databind.serModifier and TypeClassDescriptionclass
Extension overSerializationContext
that adds methods needed byObjectMapper
(andObjectWriter
) but that are not to be exposed as general context during serialization.static final class
Concrete implementation defined separately so it can be declared `final`. -
Uses of DatabindContext in tools.jackson.databind.util
Methods in tools.jackson.databind.util with parameters of type DatabindContextModifier and TypeMethodDescriptionRootNameLookup.findRootName
(DatabindContext ctxt, Class<?> rootType) RootNameLookup.findRootName
(DatabindContext ctxt, JavaType rootType)