程序包 | 说明 |
---|---|
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 JsonAutoDetect.Visibility |
JsonAutoDetect.Visibility.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static JsonAutoDetect.Visibility[] |
JsonAutoDetect.Visibility.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) |
限定符和类型 | 字段和说明 |
---|---|
protected JsonAutoDetect.Visibility |
VisibilityChecker.Std._creatorMinLevel |
protected JsonAutoDetect.Visibility |
VisibilityChecker.Std._fieldMinLevel |
protected JsonAutoDetect.Visibility |
VisibilityChecker.Std._getterMinLevel |
protected JsonAutoDetect.Visibility |
VisibilityChecker.Std._isGetterMinLevel |
protected JsonAutoDetect.Visibility |
VisibilityChecker.Std._setterMinLevel |
限定符和类型 | 方法和说明 |
---|---|
T |
VisibilityChecker.with(JsonAutoDetect.Visibility v)
Builder method that will create and return an instance that has specified
JsonAutoDetect.Visibility value to use for all property elements. |
VisibilityChecker.Std |
VisibilityChecker.Std.with(JsonAutoDetect.Visibility v) |
T |
VisibilityChecker.withCreatorVisibility(JsonAutoDetect.Visibility v)
Builder method that will return a checker instance that has
specified minimum visibility level for creator methods
(constructors, factory methods)
|
VisibilityChecker.Std |
VisibilityChecker.Std.withCreatorVisibility(JsonAutoDetect.Visibility v) |
T |
VisibilityChecker.withFieldVisibility(JsonAutoDetect.Visibility v)
Builder method that will return a checker instance that has
specified minimum visibility level for fields.
|
VisibilityChecker.Std |
VisibilityChecker.Std.withFieldVisibility(JsonAutoDetect.Visibility v) |
T |
VisibilityChecker.withGetterVisibility(JsonAutoDetect.Visibility v)
Builder method that will return a checker instance that has
specified minimum visibility level for regular ("getXxx") getters.
|
VisibilityChecker.Std |
VisibilityChecker.Std.withGetterVisibility(JsonAutoDetect.Visibility v) |
T |
VisibilityChecker.withIsGetterVisibility(JsonAutoDetect.Visibility v)
Builder method that will return a checker instance that has
specified minimum visibility level for "is-getters" ("isXxx").
|
VisibilityChecker.Std |
VisibilityChecker.Std.withIsGetterVisibility(JsonAutoDetect.Visibility v) |
T |
VisibilityChecker.withSetterVisibility(JsonAutoDetect.Visibility v)
Builder method that will return a checker instance that has
specified minimum visibility level for setters.
|
VisibilityChecker.Std |
VisibilityChecker.Std.withSetterVisibility(JsonAutoDetect.Visibility v) |
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) |
构造器和说明 |
---|
VisibilityChecker.Std(JsonAutoDetect.Visibility v)
Costructor that will assign given visibility value for all
properties.
|
VisibilityChecker.Std(JsonAutoDetect.Visibility getter,
JsonAutoDetect.Visibility isGetter,
JsonAutoDetect.Visibility setter,
JsonAutoDetect.Visibility creator,
JsonAutoDetect.Visibility field)
Constructor that allows directly specifying minimum visibility levels to use
|