程序包 | 说明 |
---|---|
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.
|
限定符和类型 | 类和说明 |
---|---|
static class |
PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy
A
PropertyNamingStrategy that translates typical camel case Java
property names to lower case JSON element names, separated by
underscores. |
static class |
PropertyNamingStrategy.PropertyNamingStrategyBase |
限定符和类型 | 字段和说明 |
---|---|
protected PropertyNamingStrategy |
MapperConfig.Base._propertyNamingStrategy
Custom property naming strategy in use, if any.
|
static PropertyNamingStrategy |
PropertyNamingStrategy.CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES
See
PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy for details. |
限定符和类型 | 方法和说明 |
---|---|
PropertyNamingStrategy |
MapperConfig.getPropertyNamingStrategy() |
PropertyNamingStrategy |
MapperConfig.Base.getPropertyNamingStrategy() |
限定符和类型 | 方法和说明 |
---|---|
ObjectMapper |
ObjectMapper.setPropertyNamingStrategy(PropertyNamingStrategy s)
Method for setting custom property naming strategy to use.
|
SerializationConfig |
SerializationConfig.withPropertyNamingStrategy(PropertyNamingStrategy pns) |
abstract T |
MapperConfig.withPropertyNamingStrategy(PropertyNamingStrategy strategy)
Method for constructing and returning a new instance with different
PropertyNamingStrategy
to use. |
MapperConfig.Base |
MapperConfig.Base.withPropertyNamingStrategy(PropertyNamingStrategy pns) |
DeserializationConfig |
DeserializationConfig.withPropertyNamingStrategy(PropertyNamingStrategy pns) |
限定符和类型 | 方法和说明 |
---|---|
protected void |
POJOPropertiesCollector._renameUsing(PropertyNamingStrategy naming) |