Package | Description |
---|---|
org.codehaus.jackson.map |
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
Object mapper will convert Json content to ant from
basic Java wrapper types (Integer, Boolean, Double),
Collection types (List, Map), Java Beans,
Strings and nulls. |
org.codehaus.jackson.map.introspect |
Functionality needed for Bean introspection, required for detecting
accessors and mutators for Beans, as well as locating and handling
method annotations.
|
org.codehaus.jackson.map.jsontype |
Package that contains interfaces that define how to implement
functionality for dynamically resolving type during deserialization.
|
org.codehaus.jackson.map.jsontype.impl |
Package that contains standard implementations for
TypeResolverBuilder
and
TypeIdResolver . |
org.codehaus.jackson.xc |
Package that contains XML Compatibility functionality for Jackson, such
as handlers for JAXB annotations
|
Modifier and Type | Method and Description |
---|---|
java.util.List<NamedType> |
AnnotationIntrospector.findSubtypes(Annotated a)
Method for locating annotation-specified subtypes related to annotated
entity (class, method, field).
|
java.util.List<NamedType> |
AnnotationIntrospector.Pair.findSubtypes(Annotated a) |
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).
|
Modifier and Type | Method and Description |
---|---|
TypeDeserializer |
ObjectMapper.DefaultTypeResolverBuilder.buildTypeDeserializer(DeserializationConfig config,
JavaType baseType,
java.util.Collection<NamedType> subtypes,
BeanProperty property) |
TypeSerializer |
ObjectMapper.DefaultTypeResolverBuilder.buildTypeSerializer(SerializationConfig config,
JavaType baseType,
java.util.Collection<NamedType> subtypes,
BeanProperty property) |
Modifier and Type | Method and Description |
---|---|
java.util.List<NamedType> |
JacksonAnnotationIntrospector.findSubtypes(Annotated a) |
Modifier and Type | Method and Description |
---|---|
abstract java.util.Collection<NamedType> |
SubtypeResolver.collectAndResolveSubtypes(AnnotatedClass basetype,
MapperConfig<?> config,
AnnotationIntrospector ai)
Method for finding out all reachable subtypes for given type.
|
abstract java.util.Collection<NamedType> |
SubtypeResolver.collectAndResolveSubtypes(AnnotatedMember property,
MapperConfig<?> config,
AnnotationIntrospector ai)
Method for finding out all reachable subtypes for a property specified
by given element (method or field)
|
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).
|
Modifier and Type | Method and Description |
---|---|
TypeDeserializer |
TypeResolverBuilder.buildTypeDeserializer(DeserializationConfig config,
JavaType baseType,
java.util.Collection<NamedType> subtypes,
BeanProperty property)
Method for building type deserializer based on current configuration
of this builder.
|
TypeSerializer |
TypeResolverBuilder.buildTypeSerializer(SerializationConfig config,
JavaType baseType,
java.util.Collection<NamedType> subtypes,
BeanProperty property)
Method for building type serializer based on current configuration
of this builder.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.LinkedHashSet<NamedType> |
StdSubtypeResolver._registeredSubtypes |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<NamedType> |
StdSubtypeResolver.collectAndResolveSubtypes(AnnotatedClass type,
MapperConfig<?> config,
AnnotationIntrospector ai) |
java.util.Collection<NamedType> |
StdSubtypeResolver.collectAndResolveSubtypes(AnnotatedMember property,
MapperConfig<?> config,
AnnotationIntrospector ai) |
Modifier and Type | Method and Description |
---|---|
protected void |
StdSubtypeResolver._collectAndResolve(AnnotatedClass annotatedType,
NamedType namedType,
MapperConfig<?> config,
AnnotationIntrospector ai,
java.util.HashMap<NamedType,NamedType> collectedSubtypes)
Method called to find subtypes for a specific type (class)
|
void |
StdSubtypeResolver.registerSubtypes(NamedType... types) |
Modifier and Type | Method and Description |
---|---|
protected void |
StdSubtypeResolver._collectAndResolve(AnnotatedClass annotatedType,
NamedType namedType,
MapperConfig<?> config,
AnnotationIntrospector ai,
java.util.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,
java.util.HashMap<NamedType,NamedType> collectedSubtypes)
Method called to find subtypes for a specific type (class)
|
TypeDeserializer |
StdTypeResolverBuilder.buildTypeDeserializer(DeserializationConfig config,
JavaType baseType,
java.util.Collection<NamedType> subtypes,
BeanProperty property) |
TypeSerializer |
StdTypeResolverBuilder.buildTypeSerializer(SerializationConfig config,
JavaType baseType,
java.util.Collection<NamedType> subtypes,
BeanProperty property) |
static TypeNameIdResolver |
TypeNameIdResolver.construct(MapperConfig<?> config,
JavaType baseType,
java.util.Collection<NamedType> subtypes,
boolean forSer,
boolean forDeser) |
protected TypeIdResolver |
StdTypeResolverBuilder.idResolver(MapperConfig<?> config,
JavaType baseType,
java.util.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.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<NamedType> |
JaxbAnnotationIntrospector.findSubtypes(Annotated a) |