程序包 | 说明 |
---|---|
org.codehaus.jackson.annotate |
Public core annotations, most of which are used to configure how
Data Mapping/Binding works.
|
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 JsonMethod |
JsonMethod.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static JsonMethod[] |
JsonMethod.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
限定符和类型 | 方法和说明 |
---|---|
ObjectMapper |
ObjectMapper.setVisibility(JsonMethod forMethod,
JsonAutoDetect.Visibility visibility)
Convenience method that allows changing configuration for
underlying
VisibilityChecker s, to change details of what kinds of
properties are auto-detected. |
SerializationConfig |
SerializationConfig.withVisibility(JsonMethod forMethod,
JsonAutoDetect.Visibility visibility) |
abstract T |
MapperConfig.withVisibility(JsonMethod forMethod,
JsonAutoDetect.Visibility visibility)
Method for constructing and returning a new instance with different
minimal visibility level for specified property type
NOTE: make sure to register new instance with
ObjectMapper
if directly calling this method. |
MapperConfig.Base |
MapperConfig.Base.withVisibility(JsonMethod forMethod,
JsonAutoDetect.Visibility visibility) |
DeserializationConfig |
DeserializationConfig.withVisibility(JsonMethod forMethod,
JsonAutoDetect.Visibility visibility) |
限定符和类型 | 方法和说明 |
---|---|
T |
VisibilityChecker.withVisibility(JsonMethod method,
JsonAutoDetect.Visibility v)
Builder method that will create and return an instance that has specified
JsonAutoDetect.Visibility value to use for specified property. |
VisibilityChecker.Std |
VisibilityChecker.Std.withVisibility(JsonMethod method,
JsonAutoDetect.Visibility v) |