## Uses of Class
com.fasterxml.jackson.databind.jsontype.NamedType

- Packages that use NamedType
  Package | Description
  --- | ---
  com.fasterxml.jackson.databind | Contains basic mapper (conversion) functionality that allows for converting between regular streaming json content and Java objects (beans or Tree Model: support for both is via `ObjectMapper` class, as well as convenience methods included in `JsonParser`
  com.fasterxml.jackson.databind.introspect | Functionality needed for Bean introspection, required for detecting accessors and mutators for Beans, as well as locating and handling method annotations.
  com.fasterxml.jackson.databind.jsontype | Package that contains interfaces that define how to implement functionality for dynamically resolving type during deserialization.
  com.fasterxml.jackson.databind.jsontype.impl | Package that contains standard implementations for `TypeResolverBuilder` and `TypeIdResolver`.
  com.fasterxml.jackson.databind.module | 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 NamedType
    Modifier and Type | Method and Description
    --- | ---
    `List<NamedType>` | AnnotationIntrospector.`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 NamedType
    Modifier and Type | Method and Description
    --- | ---
    `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).
    `void` | Module.SetupContext.`registerSubtypes(NamedType... subtypes)` Method for registering specified classes as subtypes (of supertype(s) they have), using specified type names.

    Method parameters in com.fasterxml.jackson.databind with type arguments of type NamedType
    Modifier and Type | Method and Description
    --- | ---
    `TypeDeserializer` | ObjectMapper.DefaultTypeResolverBuilder.`buildTypeDeserializer(DeserializationConfig config, JavaType baseType, Collection<NamedType> subtypes)`
    `TypeSerializer` | ObjectMapper.DefaultTypeResolverBuilder.`buildTypeSerializer(SerializationConfig config, JavaType baseType, Collection<NamedType> subtypes)`

  - ### Uses of NamedType in com.fasterxml.jackson.databind.introspect

    Methods in com.fasterxml.jackson.databind.introspect that return types with arguments of type NamedType
    Modifier and Type | Method and Description
    --- | ---
    `List<NamedType>` | JacksonAnnotationIntrospector.`findSubtypes(Annotated a)`
    `List<NamedType>` | AnnotationIntrospectorPair.`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 NamedType
    Modifier and Type | Method and Description
    --- | ---
    `abstract Collection<NamedType>` | SubtypeResolver.`collectAndResolveSubtypes(AnnotatedClass basetype, MapperConfig<?> config, AnnotationIntrospector ai)` Method for finding out all reachable subtypes for given type.
    `abstract Collection<NamedType>` | SubtypeResolver.`collectAndResolveSubtypes(AnnotatedMember property, MapperConfig<?> config, AnnotationIntrospector ai)` Deprecated. Since 2.1: use variant that takes in property type.
    `abstract Collection<NamedType>` | SubtypeResolver.`collectAndResolveSubtypes(AnnotatedMember property, MapperConfig<?> config, AnnotationIntrospector ai, JavaType baseType)` Method for finding out all reachable subtypes for a property specified by given element (method or field)

    Methods in com.fasterxml.jackson.databind.jsontype with parameters of type NamedType
    Modifier and Type | Method and Description
    --- | ---
    `abstract 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 NamedType
    Modifier and Type | Method and Description
    --- | ---
    `TypeDeserializer` | TypeResolverBuilder.`buildTypeDeserializer(DeserializationConfig config, JavaType baseType, Collection<NamedType> subtypes)` Method for building type deserializer based on current configuration of this builder.
    `TypeSerializer` | 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 NamedType
    Modifier and Type | Field and Description
    --- | ---
    `protected LinkedHashSet<NamedType>` | StdSubtypeResolver.`_registeredSubtypes`

    Methods in com.fasterxml.jackson.databind.jsontype.impl that return types with arguments of type NamedType
    Modifier and Type | Method and Description
    --- | ---
    `Collection<NamedType>` | StdSubtypeResolver.`collectAndResolveSubtypes(AnnotatedClass type, MapperConfig<?> config, AnnotationIntrospector ai)`
    `Collection<NamedType>` | StdSubtypeResolver.`collectAndResolveSubtypes(AnnotatedMember property, MapperConfig<?> config, AnnotationIntrospector ai)` Deprecated. Since 2.1
    `Collection<NamedType>` | StdSubtypeResolver.`collectAndResolveSubtypes(AnnotatedMember property, MapperConfig<?> config, AnnotationIntrospector ai, JavaType baseType)`

    Methods in com.fasterxml.jackson.databind.jsontype.impl with parameters of type NamedType
    Modifier and Type | Method and Description
    --- | ---
    `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)
    `void` | StdSubtypeResolver.`registerSubtypes(NamedType... types)`

    Method parameters in com.fasterxml.jackson.databind.jsontype.impl with type arguments of type NamedType
    Modifier and Type | Method and Description
    --- | ---
    `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)
    `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)
    `TypeDeserializer` | StdTypeResolverBuilder.`buildTypeDeserializer(DeserializationConfig config, JavaType baseType, Collection<NamedType> subtypes)`
    `TypeSerializer` | StdTypeResolverBuilder.`buildTypeSerializer(SerializationConfig config, JavaType baseType, Collection<NamedType> subtypes)`
    `static TypeNameIdResolver` | TypeNameIdResolver.`construct(MapperConfig<?> config, JavaType baseType, Collection<NamedType> subtypes, boolean forSer, boolean forDeser)`
    `protected TypeIdResolver` | StdTypeResolverBuilder.`idResolver(MapperConfig<?> config, JavaType baseType, 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.

  - ### Uses of NamedType in com.fasterxml.jackson.databind.module

    Fields in com.fasterxml.jackson.databind.module with type parameters of type NamedType
    Modifier and Type | Field and Description
    --- | ---
    `protected LinkedHashSet<NamedType>` | SimpleModule.`_subtypes` Set of subtypes to register, if any.

    Methods in com.fasterxml.jackson.databind.module with parameters of type NamedType
    Modifier and Type | Method and Description
    --- | ---
    `SimpleModule` | SimpleModule.`registerSubtypes(NamedType... subtypes)` Method for adding set of subtypes (along with type name to use) to be registered with `ObjectMapper` this is an alternative to using annotations in super type to indicate subtypes.

Copyright © 2012-2013 FasterXML. All Rights Reserved.