Uses of Interface
tools.jackson.databind.jsontype.TypeIdResolver
Packages that use TypeIdResolver
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.-
Uses of TypeIdResolver in tools.jackson.databind
Methods in tools.jackson.databind with parameters of type TypeIdResolverModifier and TypeMethodDescriptionDeserializationContext.handleMissingTypeId(JavaType baseType, TypeIdResolver idResolver, String extraDesc) DeserializationContext.handleUnknownTypeId(JavaType baseType, String id, TypeIdResolver idResolver, String extraDesc) Method that deserializers should call if they encounter a type id (for polymorphic deserialization) that cannot be resolved to an actual type; usually since there is no mapping defined. -
Uses of TypeIdResolver in tools.jackson.databind.cfg
Methods in tools.jackson.databind.cfg that return TypeIdResolverModifier and TypeMethodDescriptionabstract TypeIdResolverHandlerInstantiator.typeIdResolverInstance(MapperConfig<?> config, Annotated annotated, Class<?> resolverClass) Method called to get an instance of TypeIdResolver of specified type.MapperConfig.typeIdResolverInstance(Annotated annotated, Class<? extends TypeIdResolver> resolverClass) Method that can be called to obtain an instance ofTypeIdResolverof specified type.Method parameters in tools.jackson.databind.cfg with type arguments of type TypeIdResolverModifier and TypeMethodDescriptionMapperConfig.typeIdResolverInstance(Annotated annotated, Class<? extends TypeIdResolver> resolverClass) Method that can be called to obtain an instance ofTypeIdResolverof specified type. -
Uses of TypeIdResolver in tools.jackson.databind.deser
Methods in tools.jackson.databind.deser with parameters of type TypeIdResolverModifier and TypeMethodDescriptionDeserializationProblemHandler.handleMissingTypeId(DeserializationContext ctxt, JavaType baseType, TypeIdResolver idResolver, String failureMsg) Handler method called if an expected type id for a polymorphic value is not found and no "default type" is specified or allowed.DeserializationProblemHandler.handleUnknownTypeId(DeserializationContext ctxt, JavaType baseType, String subTypeId, TypeIdResolver idResolver, String failureMsg) Handler method called if resolution of type id from given String failed to produce a subtype; usually because logical id is not mapped to actual implementation class. -
Uses of TypeIdResolver in tools.jackson.databind.jsontype
Methods in tools.jackson.databind.jsontype that return TypeIdResolverModifier and TypeMethodDescriptionabstract TypeIdResolverTypeDeserializer.getTypeIdResolver()Accessor for object that handles conversions between types and matching type ids.abstract TypeIdResolverTypeSerializer.getTypeIdResolver()Accessor for object that handles conversions between types and matching type ids.Methods in tools.jackson.databind.jsontype with parameters of type TypeIdResolverModifier and TypeMethodDescriptionTypeResolverBuilder.init(JsonTypeInfo.Value settings, TypeIdResolver res) Initialization method that is called right after constructing the builder instance, in cases where information could not be passed directly (for example when instantiated for an annotation) -
Uses of TypeIdResolver in tools.jackson.databind.jsontype.impl
Classes in tools.jackson.databind.jsontype.impl that implement TypeIdResolverModifier and TypeClassDescriptionclassTypeIdResolverimplementation that converts between fully-qualified Java class names and (JSON) Strings.classSpecialization ofClassNameIdResolverthat instead uses a "minimal" derivation ofClassname, using relative reference from the base type (base class) that polymorphic value has.classTypeIdResolverimplementation that converts using explicitly (annotation-) specified type names and maps to implementation classes; or, in absence of annotated type name, defaults to simpleClassnames (obtained withClass.getSimpleName().classPartial base implementation ofTypeIdResolver: all custom implementations are strongly recommended to extend this class, instead of directly implementingTypeIdResolver.classTypeIdResolverimplementation that converts using explicitly (annotation-) specified type names and maps to implementation classes; or, in absence of annotated type name, defaults to fully-qualifiedClassnames (obtained withClass.getName()Fields in tools.jackson.databind.jsontype.impl declared as TypeIdResolverModifier and TypeFieldDescriptionprotected TypeIdResolverStdTypeResolverBuilder._customIdResolverprotected final TypeIdResolverTypeDeserializerBase._idResolverprotected final TypeIdResolverTypeSerializerBase._idResolverMethods in tools.jackson.databind.jsontype.impl that return TypeIdResolverModifier and TypeMethodDescriptionTypeDeserializerBase.getTypeIdResolver()TypeSerializerBase.getTypeIdResolver()protected TypeIdResolverStdTypeResolverBuilder.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.Methods in tools.jackson.databind.jsontype.impl with parameters of type TypeIdResolverModifier and TypeMethodDescriptionStdTypeResolverBuilder.init(JsonTypeInfo.Value settings, TypeIdResolver idRes) Constructors in tools.jackson.databind.jsontype.impl with parameters of type TypeIdResolverModifierConstructorDescriptionAsArrayTypeDeserializer(JavaType bt, TypeIdResolver idRes, String typePropertyName, boolean typeIdVisible, JavaType defaultImpl) AsArrayTypeSerializer(TypeIdResolver idRes, BeanProperty property) AsDeductionTypeDeserializer(DeserializationContext ctxt, JavaType bt, TypeIdResolver idRes, JavaType defaultImpl, Collection<NamedType> subtypes) AsExistingPropertyTypeSerializer(TypeIdResolver idRes, BeanProperty property, String propName) AsExternalTypeDeserializer(JavaType bt, TypeIdResolver idRes, String typePropertyName, boolean typeIdVisible, JavaType defaultImpl) AsExternalTypeSerializer(TypeIdResolver idRes, BeanProperty property, String propName) AsPropertyTypeDeserializer(JavaType bt, TypeIdResolver idRes, String typePropertyName, boolean typeIdVisible, JavaType defaultImpl, JsonTypeInfo.As inclusion, boolean strictTypeIdHandling) AsPropertyTypeSerializer(TypeIdResolver idRes, BeanProperty property, String propName) AsWrapperTypeDeserializer(JavaType bt, TypeIdResolver idRes, String typePropertyName, boolean typeIdVisible, JavaType defaultImpl) AsWrapperTypeSerializer(TypeIdResolver idRes, BeanProperty property) protectedTypeDeserializerBase(JavaType baseType, TypeIdResolver idRes, String typePropertyName, boolean typeIdVisible, JavaType defaultImpl) protectedTypeSerializerBase(TypeIdResolver idRes, BeanProperty property)