程序包 | 说明 |
---|---|
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.jsontype |
Package that contains interfaces that define how to implement
functionality for dynamically resolving type during deserialization.
|
org.codehaus.jackson.map.jsontype.impl |
Package that contains standard implementations for
TypeResolverBuilder
and
TypeIdResolver . |
限定符和类型 | 方法和说明 |
---|---|
static JsonTypeInfo.As |
JsonTypeInfo.As.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static JsonTypeInfo.As[] |
JsonTypeInfo.As.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
限定符和类型 | 方法和说明 |
---|---|
abstract JsonTypeInfo.As |
TypeSerializer.getTypeInclusion()
Accessor for type information inclusion method
that serializer uses; indicates how type information
is embedded in resulting JSON.
|
abstract JsonTypeInfo.As |
TypeDeserializer.getTypeInclusion()
Accessor for type information inclusion method
that deserializer uses; indicates how type information
is (expected to be) embedded in JSON input.
|
限定符和类型 | 方法和说明 |
---|---|
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 ). |
限定符和类型 | 方法和说明 |
---|---|
T |
TypeResolverBuilder.inclusion(JsonTypeInfo.As includeAs)
Method for specifying mechanism to use for including type metadata
in JSON.
|
限定符和类型 | 字段和说明 |
---|---|
protected JsonTypeInfo.As |
StdTypeResolverBuilder._includeAs |
限定符和类型 | 方法和说明 |
---|---|
abstract JsonTypeInfo.As |
TypeSerializerBase.getTypeInclusion() |
abstract JsonTypeInfo.As |
TypeDeserializerBase.getTypeInclusion() |
JsonTypeInfo.As |
AsWrapperTypeSerializer.getTypeInclusion() |
JsonTypeInfo.As |
AsWrapperTypeDeserializer.getTypeInclusion() |
JsonTypeInfo.As |
AsPropertyTypeSerializer.getTypeInclusion() |
JsonTypeInfo.As |
AsPropertyTypeDeserializer.getTypeInclusion() |
JsonTypeInfo.As |
AsExternalTypeSerializer.getTypeInclusion() |
JsonTypeInfo.As |
AsExternalTypeDeserializer.getTypeInclusion() |
JsonTypeInfo.As |
AsArrayTypeSerializer.getTypeInclusion() |
JsonTypeInfo.As |
AsArrayTypeDeserializer.getTypeInclusion() |
限定符和类型 | 方法和说明 |
---|---|
StdTypeResolverBuilder |
StdTypeResolverBuilder.inclusion(JsonTypeInfo.As includeAs) |