Uses of Class
com.fasterxml.jackson.databind.jsontype.NamedType
Packages that use NamedType
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
).Functionality needed for Bean introspection, required for detecting
accessors and mutators for Beans, as well as locating and handling
method annotations.
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
.Package that contains classes and interfaces to help implement
custom extension
Module
s
(which are registered using
ObjectMapper.registerModule(com.fasterxml.jackson.databind.Module)
.-
Uses of NamedType in com.fasterxml.jackson.databind
Methods in com.fasterxml.jackson.databind that return types with arguments of type NamedTypeModifier and TypeMethodDescriptionAnnotationIntrospector.findSubtypes
(Annotated a) Method for locating annotation-specified subtypes related to annotated entity (class, method, field).Methods in com.fasterxml.jackson.databind with parameters of type NamedTypeModifier and TypeMethodDescriptionvoid
Module.SetupContext.registerSubtypes
(NamedType... subtypes) Method for registering specified classes as subtypes (of supertype(s) they have), using specified type names.void
ObjectMapper.registerSubtypes
(NamedType... types) Method for registering specified class as a subtype, so that typename-based resolution can link supertypes to subtypes (as an alternative to using annotations).Method parameters in com.fasterxml.jackson.databind with type arguments of type NamedTypeModifier and TypeMethodDescriptionObjectMapper.DefaultTypeResolverBuilder.buildTypeDeserializer
(DeserializationConfig config, JavaType baseType, Collection<NamedType> subtypes) ObjectMapper.DefaultTypeResolverBuilder.buildTypeSerializer
(SerializationConfig config, JavaType baseType, Collection<NamedType> subtypes) -
Uses of NamedType in com.fasterxml.jackson.databind.cfg
Methods in com.fasterxml.jackson.databind.cfg with parameters of type NamedType -
Uses of NamedType in com.fasterxml.jackson.databind.introspect
Methods in com.fasterxml.jackson.databind.introspect that return types with arguments of type NamedTypeModifier and TypeMethodDescriptionAnnotationIntrospectorPair.findSubtypes
(Annotated a) JacksonAnnotationIntrospector.findSubtypes
(Annotated a) -
Uses of NamedType in com.fasterxml.jackson.databind.jsontype
Methods in com.fasterxml.jackson.databind.jsontype that return types with arguments of type NamedTypeModifier and TypeMethodDescriptionSubtypeResolver.collectAndResolveSubtypes
(AnnotatedClass baseType, MapperConfig<?> config, AnnotationIntrospector ai) Deprecated.SubtypeResolver.collectAndResolveSubtypes
(AnnotatedMember property, MapperConfig<?> config, AnnotationIntrospector ai, JavaType baseType) Deprecated.SubtypeResolver.collectAndResolveSubtypesByClass
(MapperConfig<?> config, AnnotatedClass baseType) Method for finding out all reachable subtypes for given type, such that access is by type, typically needed for serialization (converting from type to type name).SubtypeResolver.collectAndResolveSubtypesByClass
(MapperConfig<?> config, AnnotatedMember property, JavaType baseType) Method for finding out all reachable subtypes for a property specified by given element (method or field), such that access is by type, typically needed for serialization (converting from type to type name).SubtypeResolver.collectAndResolveSubtypesByTypeId
(MapperConfig<?> config, AnnotatedClass baseType) Method for finding out all reachable subtypes for given type, such that access is by type id, typically needed for deserialization (converting from type id to type).SubtypeResolver.collectAndResolveSubtypesByTypeId
(MapperConfig<?> config, AnnotatedMember property, JavaType baseType) Method for finding out all reachable subtypes for a property specified by given element (method or field), such that access is by type id, typically needed for deserialization (converting from type id to type).Methods in com.fasterxml.jackson.databind.jsontype with parameters of type NamedTypeModifier and TypeMethodDescriptionabstract void
SubtypeResolver.registerSubtypes
(NamedType... types) Method for registering specified subtypes (possibly including type names); for type entries without name, non-qualified class name as used as name (unless overridden by annotation).Method parameters in com.fasterxml.jackson.databind.jsontype with type arguments of type NamedTypeModifier and TypeMethodDescriptionTypeResolverBuilder.buildTypeDeserializer
(DeserializationConfig config, JavaType baseType, Collection<NamedType> subtypes) Method for building type deserializer based on current configuration of this builder.TypeResolverBuilder.buildTypeSerializer
(SerializationConfig config, JavaType baseType, Collection<NamedType> subtypes) Method for building type serializer based on current configuration of this builder. -
Uses of NamedType in com.fasterxml.jackson.databind.jsontype.impl
Fields in com.fasterxml.jackson.databind.jsontype.impl with type parameters of type NamedTypeModifier and TypeFieldDescriptionprotected LinkedHashSet
<NamedType> StdSubtypeResolver._registeredSubtypes
Methods in com.fasterxml.jackson.databind.jsontype.impl that return types with arguments of type NamedTypeModifier and TypeMethodDescriptionprotected Collection
<NamedType> StdSubtypeResolver._combineNamedAndUnnamed
(Class<?> rawBase, Set<Class<?>> typesHandled, Map<String, NamedType> byName) Helper method used for merging explicitly named types and handled classes without explicit names.StdSubtypeResolver.collectAndResolveSubtypesByClass
(MapperConfig<?> config, AnnotatedClass type) StdSubtypeResolver.collectAndResolveSubtypesByClass
(MapperConfig<?> config, AnnotatedMember property, JavaType baseType) StdSubtypeResolver.collectAndResolveSubtypesByTypeId
(MapperConfig<?> config, AnnotatedClass baseType) StdSubtypeResolver.collectAndResolveSubtypesByTypeId
(MapperConfig<?> config, AnnotatedMember property, JavaType baseType) Methods in com.fasterxml.jackson.databind.jsontype.impl with parameters of type NamedTypeModifier and TypeMethodDescriptionprotected void
StdSubtypeResolver._collectAndResolve
(AnnotatedClass annotatedType, NamedType namedType, MapperConfig<?> config, AnnotationIntrospector ai, HashMap<NamedType, NamedType> collectedSubtypes) Method called to find subtypes for a specific type (class), using type (class) as the unique key (in case of conflicts).protected void
StdSubtypeResolver._collectAndResolveByTypeId
(AnnotatedClass annotatedType, NamedType namedType, MapperConfig<?> config, Set<Class<?>> typesHandled, Map<String, NamedType> byName) Method called to find subtypes for a specific type (class), using type id as the unique key (in case of conflicts).void
StdSubtypeResolver.registerSubtypes
(NamedType... types) Method parameters in com.fasterxml.jackson.databind.jsontype.impl with type arguments of type NamedTypeModifier and TypeMethodDescriptionprotected void
StdSubtypeResolver._collectAndResolve
(AnnotatedClass annotatedType, NamedType namedType, MapperConfig<?> config, AnnotationIntrospector ai, HashMap<NamedType, NamedType> collectedSubtypes) Method called to find subtypes for a specific type (class), using type (class) as the unique key (in case of conflicts).protected void
StdSubtypeResolver._collectAndResolve
(AnnotatedClass annotatedType, NamedType namedType, MapperConfig<?> config, AnnotationIntrospector ai, HashMap<NamedType, NamedType> collectedSubtypes) Method called to find subtypes for a specific type (class), using type (class) as the unique key (in case of conflicts).protected void
StdSubtypeResolver._collectAndResolveByTypeId
(AnnotatedClass annotatedType, NamedType namedType, MapperConfig<?> config, Set<Class<?>> typesHandled, Map<String, NamedType> byName) Method called to find subtypes for a specific type (class), using type id as the unique key (in case of conflicts).protected Collection
<NamedType> StdSubtypeResolver._combineNamedAndUnnamed
(Class<?> rawBase, Set<Class<?>> typesHandled, Map<String, NamedType> byName) Helper method used for merging explicitly named types and handled classes without explicit names.AsDeductionTypeDeserializer.buildFingerprints
(DeserializationConfig config, Collection<NamedType> subtypes) StdTypeResolverBuilder.buildTypeDeserializer
(DeserializationConfig config, JavaType baseType, Collection<NamedType> subtypes) StdTypeResolverBuilder.buildTypeSerializer
(SerializationConfig config, JavaType baseType, Collection<NamedType> subtypes) static SimpleNameIdResolver
SimpleNameIdResolver.construct
(MapperConfig<?> config, JavaType baseType, Collection<NamedType> subtypes, boolean forSer, boolean forDeser) static TypeNameIdResolver
TypeNameIdResolver.construct
(MapperConfig<?> config, JavaType baseType, Collection<NamedType> subtypes, boolean forSer, boolean forDeser) protected TypeIdResolver
StdTypeResolverBuilder.idResolver
(MapperConfig<?> config, 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.Constructor parameters in com.fasterxml.jackson.databind.jsontype.impl with type arguments of type NamedTypeModifierConstructorDescriptionAsDeductionTypeDeserializer
(JavaType bt, TypeIdResolver idRes, JavaType defaultImpl, DeserializationConfig config, Collection<NamedType> subtypes) -
Uses of NamedType in com.fasterxml.jackson.databind.module
Fields in com.fasterxml.jackson.databind.module with type parameters of type NamedTypeModifier and TypeFieldDescriptionprotected LinkedHashSet
<NamedType> SimpleModule._subtypes
Set of subtypes to register, if any.Methods in com.fasterxml.jackson.databind.module with parameters of type NamedTypeModifier and TypeMethodDescriptionSimpleModule.registerSubtypes
(NamedType... subtypes) Method for adding set of subtypes (along with type name to use) to be registered withObjectMapper
this is an alternative to using annotations in super type to indicate subtypes.
SubtypeResolver.collectAndResolveSubtypesByClass(MapperConfig, AnnotatedClass)
orSubtypeResolver.collectAndResolveSubtypesByTypeId(MapperConfig, AnnotatedClass)
instead.