程序包 | 说明 |
---|---|
org.codehaus.jackson.jaxrs |
Jackson-based JAX-RS provider that can automatically
serialize and deserialize resources for
JSON content type (MediaType).
|
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. |
限定符和类型 | 方法和说明 |
---|---|
void |
MapperConfigurator.configure(DeserializationConfig.Feature f,
boolean state) |
JacksonJsonProvider |
JacksonJsonProvider.configure(DeserializationConfig.Feature f,
boolean state) |
JacksonJsonProvider |
JacksonJsonProvider.disable(DeserializationConfig.Feature f,
boolean state) |
JacksonJsonProvider |
JacksonJsonProvider.enable(DeserializationConfig.Feature f,
boolean state) |
限定符和类型 | 方法和说明 |
---|---|
static DeserializationConfig.Feature |
DeserializationConfig.Feature.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static DeserializationConfig.Feature[] |
DeserializationConfig.Feature.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
限定符和类型 | 方法和说明 |
---|---|
ObjectMapper |
ObjectMapper.configure(DeserializationConfig.Feature f,
boolean state)
Method for changing state of an on/off deserialization feature for
this object mapper.
|
ObjectMapper |
ObjectMapper.disable(DeserializationConfig.Feature... f)
Method for enabling specified
DeserializationConfig features. |
void |
DeserializationConfig.disable(DeserializationConfig.Feature f)
已过时。
Since 1.9, it is preferable to use
DeserializationConfig.without(org.codehaus.jackson.map.DeserializationConfig.Feature...) instead;
this method is deprecated as it modifies current instance instead of
creating a new one (as the goal is to make this class immutable) |
ObjectMapper |
ObjectMapper.enable(DeserializationConfig.Feature... f)
Method for enabling specified
DeserializationConfig features. |
void |
DeserializationConfig.enable(DeserializationConfig.Feature f)
已过时。
Since 1.9, it is preferable to use
DeserializationConfig.with(org.codehaus.jackson.map.DeserializationConfig.Feature...) instead;
this method is deprecated as it modifies current instance instead of
creating a new one (as the goal is to make this class immutable) |
boolean |
ObjectMapper.isEnabled(DeserializationConfig.Feature f)
Convenience method, equivalent to:
getDeserializationConfig().isEnabled(f);
|
boolean |
Module.SetupContext.isEnabled(DeserializationConfig.Feature f) |
boolean |
DeserializationContext.isEnabled(DeserializationConfig.Feature feat)
Convenience method for checking whether specified on/off
feature is enabled
|
boolean |
DeserializationConfig.isEnabled(DeserializationConfig.Feature f)
An overload for
MapperConfig.isEnabled(MapperConfig.ConfigFeature) ,
needed for backwards-compatibility. |
void |
DeserializationConfig.set(DeserializationConfig.Feature f,
boolean state)
已过时。
Since 1.9, it is preferable to use
DeserializationConfig.without(org.codehaus.jackson.map.DeserializationConfig.Feature...) and DeserializationConfig.with(org.codehaus.jackson.map.DeserializationConfig.Feature...) instead;
this method is deprecated as it modifies current instance instead of
creating a new one (as the goal is to make this class immutable) |
DeserializationConfig |
DeserializationConfig.with(DeserializationConfig.Feature... features)
Fluent factory method that will construct and return a new configuration
object instance with specified features enabled.
|
DeserializationConfig |
DeserializationConfig.without(DeserializationConfig.Feature... features)
Fluent factory method that will construct and return a new configuration
object instance with specified features disabled.
|