程序包 | 说明 |
---|---|
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. |
限定符和类型 | 字段和说明 |
---|---|
protected ObjectMapper.DefaultTyping |
ObjectMapper.DefaultTypeResolverBuilder._appliesFor
Definition of what types is this default typer valid for.
|
限定符和类型 | 方法和说明 |
---|---|
static ObjectMapper.DefaultTyping |
ObjectMapper.DefaultTyping.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ObjectMapper.DefaultTyping[] |
ObjectMapper.DefaultTyping.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
限定符和类型 | 方法和说明 |
---|---|
ObjectMapper |
ObjectMapper.enableDefaultTyping(ObjectMapper.DefaultTyping dti)
Convenience method that is equivalent to calling
enableObjectTyping(dti, JsonTypeInfo.As.WRAPPER_ARRAY);
|
ObjectMapper |
ObjectMapper.enableDefaultTyping(ObjectMapper.DefaultTyping applicability,
JsonTypeInfo.As includeAs)
Method for enabling automatic inclusion of type information, needed
for proper deserialization of polymorphic types (unless types
have been annotated with
JsonTypeInfo ). |
ObjectMapper |
ObjectMapper.enableDefaultTypingAsProperty(ObjectMapper.DefaultTyping applicability,
String propertyName)
Method for enabling automatic inclusion of type information -- needed
for proper deserialization of polymorphic types (unless types
have been annotated with
JsonTypeInfo ) --
using "As.PROPERTY" inclusion mechanism and specified property name
to use for inclusion (default being "@class" since default type information
always uses class name as type identifier) |
构造器和说明 |
---|
ObjectMapper.DefaultTypeResolverBuilder(ObjectMapper.DefaultTyping t) |