程序包 | 说明 |
---|---|
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.module |
Package that contains classes and interfaces to help implement
custom extension
Module s
(which are registered using
ObjectMapper.registerModule(org.codehaus.jackson.map.Module) . |
org.codehaus.jackson.map.ser |
Contains implementation classes of serialization part of
data binding.
|
限定符和类型 | 类和说明 |
---|---|
static class |
Serializers.Base
Basic
Serializers implementation that implements all methods but provides
no serializers. |
static class |
Serializers.None
已过时。
As of 1.9, use
Serializers.Base instead |
限定符和类型 | 方法和说明 |
---|---|
abstract Iterable<Serializers> |
SerializerFactory.Config.keySerializers() |
abstract Iterable<Serializers> |
SerializerFactory.Config.serializers() |
限定符和类型 | 方法和说明 |
---|---|
void |
Module.SetupContext.addKeySerializers(Serializers s)
Method that module can use to register additional serializers to use for
handling Map key values (which are separate from value serializers because
they must write
JsonToken.FIELD_NAME instead of String value). |
void |
Module.SetupContext.addSerializers(Serializers s)
Method that module can use to register additional serializers to use for
handling types.
|
SerializerFactory |
SerializerFactory.withAdditionalKeySerializers(Serializers additional) |
abstract SerializerFactory.Config |
SerializerFactory.Config.withAdditionalKeySerializers(Serializers additional) |
SerializerFactory |
SerializerFactory.withAdditionalSerializers(Serializers additional)
Convenience method for creating a new factory instance with additional serializer
provider; equivalent to calling
withConfig(getConfig().withAdditionalSerializers(additional));
|
abstract SerializerFactory.Config |
SerializerFactory.Config.withAdditionalSerializers(Serializers additional)
Method for creating a new instance with additional serializer provider.
|
限定符和类型 | 类和说明 |
---|---|
class |
SimpleSerializers
Simple implementation
Serializers which allows registration of
serializers based on raw (type erased class). |
限定符和类型 | 字段和说明 |
---|---|
protected Serializers[] |
BeanSerializerFactory.ConfigImpl._additionalKeySerializers |
protected Serializers[] |
BeanSerializerFactory.ConfigImpl._additionalSerializers
List of providers for additional serializers, checked before considering default
basic or bean serialializers.
|
protected static Serializers[] |
BeanSerializerFactory.ConfigImpl.NO_SERIALIZERS
Constant for empty
Serializers array (which by definition
is stateless and reusable) |
限定符和类型 | 方法和说明 |
---|---|
protected Iterable<Serializers> |
BeanSerializerFactory.customSerializers() |
protected abstract Iterable<Serializers> |
BasicSerializerFactory.customSerializers() |
Iterable<Serializers> |
BeanSerializerFactory.ConfigImpl.keySerializers() |
Iterable<Serializers> |
BeanSerializerFactory.ConfigImpl.serializers() |
限定符和类型 | 方法和说明 |
---|---|
SerializerFactory.Config |
BeanSerializerFactory.ConfigImpl.withAdditionalKeySerializers(Serializers additional) |
SerializerFactory.Config |
BeanSerializerFactory.ConfigImpl.withAdditionalSerializers(Serializers additional) |
构造器和说明 |
---|
BeanSerializerFactory.ConfigImpl(Serializers[] allAdditionalSerializers,
Serializers[] allAdditionalKeySerializers,
BeanSerializerModifier[] modifiers) |
BeanSerializerFactory.ConfigImpl(Serializers[] allAdditionalSerializers,
Serializers[] allAdditionalKeySerializers,
BeanSerializerModifier[] modifiers) |