Uses of Class
tools.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 (
tools.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
JacksonModules
(which are registered on ObjectMapper via builders}.-
Uses of NamedType in tools.jackson.databind
Methods in tools.jackson.databind that return types with arguments of type NamedTypeModifier and TypeMethodDescriptionAnnotationIntrospector.findSubtypes(MapperConfig<?> config, Annotated a) Method for locating annotation-specified subtypes related to annotated entity (class, method, field).Methods in tools.jackson.databind with parameters of type NamedTypeModifier and TypeMethodDescriptionJacksonModule.SetupContext.registerSubtypes(NamedType... subtypes) Method for registering specified classes as subtypes (of supertype(s) they have), using specified type names. -
Uses of NamedType in tools.jackson.databind.cfg
Methods in tools.jackson.databind.cfg with parameters of type NamedTypeModifier and TypeMethodDescriptionMapperBuilder.registerSubtypes(NamedType... subtypes) ModuleContextBase.registerSubtypes(NamedType... subtypes) -
Uses of NamedType in tools.jackson.databind.introspect
Methods in tools.jackson.databind.introspect that return types with arguments of type NamedTypeModifier and TypeMethodDescriptionAnnotationIntrospectorPair.findSubtypes(MapperConfig<?> config, Annotated a) JacksonAnnotationIntrospector.findSubtypes(MapperConfig<?> config, Annotated a) -
Uses of NamedType in tools.jackson.databind.jsontype
Methods in tools.jackson.databind.jsontype that return types with arguments of type NamedTypeModifier and TypeMethodDescriptionabstract Collection<NamedType>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).abstract Collection<NamedType>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).abstract Collection<NamedType>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).abstract Collection<NamedType>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 tools.jackson.databind.jsontype with parameters of type NamedTypeModifier and TypeMethodDescriptionabstract SubtypeResolverSubtypeResolver.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 tools.jackson.databind.jsontype with type arguments of type NamedTypeModifier and TypeMethodDescriptionTypeResolverBuilder.buildTypeDeserializer(DeserializationContext ctxt, JavaType baseType, Collection<NamedType> subtypes) Method for building type deserializer based on current configuration of this builder.TypeResolverBuilder.buildTypeSerializer(SerializationContext ctxt, JavaType baseType, Collection<NamedType> subtypes) Method for building type serializer based on current configuration of this builder. -
Uses of NamedType in tools.jackson.databind.jsontype.impl
Fields in tools.jackson.databind.jsontype.impl with type parameters of type NamedTypeMethods in tools.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 tools.jackson.databind.jsontype.impl with parameters of type NamedTypeModifier and TypeMethodDescriptionprotected voidStdSubtypeResolver._collectAndResolve(MapperConfig<?> config, AnnotatedClass annotatedType, NamedType namedType, 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 voidStdSubtypeResolver._collectAndResolveByTypeId(MapperConfig<?> config, AnnotatedClass annotatedType, NamedType namedType, 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).StdSubtypeResolver.registerSubtypes(NamedType... types) Method parameters in tools.jackson.databind.jsontype.impl with type arguments of type NamedTypeModifier and TypeMethodDescriptionprotected voidStdSubtypeResolver._collectAndResolve(MapperConfig<?> config, AnnotatedClass annotatedType, NamedType namedType, 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 voidStdSubtypeResolver._collectAndResolve(MapperConfig<?> config, AnnotatedClass annotatedType, NamedType namedType, 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 voidStdSubtypeResolver._collectAndResolveByTypeId(MapperConfig<?> config, AnnotatedClass annotatedType, NamedType namedType, 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(DeserializationContext ctxt, Collection<NamedType> subtypes) DefaultTypeResolverBuilder.buildTypeDeserializer(DeserializationContext ctxt, JavaType baseType, Collection<NamedType> subtypes) StdTypeResolverBuilder.buildTypeDeserializer(DeserializationContext ctxt, JavaType baseType, Collection<NamedType> subtypes) DefaultTypeResolverBuilder.buildTypeSerializer(SerializationContext ctxt, JavaType baseType, Collection<NamedType> subtypes) StdTypeResolverBuilder.buildTypeSerializer(SerializationContext ctxt, JavaType baseType, Collection<NamedType> subtypes) static ClassNameIdResolverClassNameIdResolver.construct(JavaType baseType, Collection<NamedType> subtypes, PolymorphicTypeValidator ptv) static MinimalClassNameIdResolverMinimalClassNameIdResolver.construct(JavaType baseType, Collection<NamedType> subtypes, PolymorphicTypeValidator ptv) static SimpleNameIdResolverSimpleNameIdResolver.construct(MapperConfig<?> config, JavaType baseType, Collection<NamedType> subtypes, boolean forSer, boolean forDeser) static TypeNameIdResolverTypeNameIdResolver.construct(MapperConfig<?> config, JavaType baseType, Collection<NamedType> subtypes, boolean forSer, boolean forDeser) 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.Constructor parameters in tools.jackson.databind.jsontype.impl with type arguments of type NamedTypeModifierConstructorDescriptionAsDeductionTypeDeserializer(DeserializationContext ctxt, JavaType bt, TypeIdResolver idRes, JavaType defaultImpl, Collection<NamedType> subtypes) ClassNameIdResolver(JavaType baseType, Collection<NamedType> subtypes, PolymorphicTypeValidator ptv) protectedMinimalClassNameIdResolver(JavaType baseType, Collection<NamedType> subtypes, PolymorphicTypeValidator ptv) protectedStdSubtypeResolver(Set<NamedType> reg) -
Uses of NamedType in tools.jackson.databind.module
Fields in tools.jackson.databind.module with type parameters of type NamedTypeModifier and TypeFieldDescriptionprotected LinkedHashSet<NamedType>SimpleModule._subtypesSet of subtypes to register, if any.Methods in tools.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 withObjectMapperthis is an alternative to using annotations in super type to indicate subtypes.