程序包 | 说明 |
---|---|
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.deser |
Contains implementation classes of deserialization part of
data binding.
|
org.codehaus.jackson.map.deser.impl |
Contains those implementation classes of deserialization part of
data binding that are not considered part of public or semi-public
interfaces.
|
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.
|
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 . |
org.codehaus.jackson.map.ser |
Contains implementation classes of serialization part of
data binding.
|
org.codehaus.jackson.xc |
Package that contains XML Compatibility functionality for Jackson, such
as handlers for JAXB annotations
|
限定符和类型 | 字段和说明 |
---|---|
protected AnnotatedMember |
BeanProperty.Std._member
Physical entity (field, method or constructor argument) that
is used to access value of property (or in case of constructor
property, just placeholder)
|
限定符和类型 | 方法和说明 |
---|---|
abstract AnnotatedMember |
BeanPropertyDefinition.getAccessor()
Method used to find accessor (getter, field to access) to use for accessing
value of the property.
|
AnnotatedMember |
BeanProperty.getMember()
Method for accessing primary physical entity that represents the property;
annotated field, method or constructor property.
|
AnnotatedMember |
BeanProperty.Std.getMember() |
abstract AnnotatedMember |
BeanPropertyDefinition.getMutator()
Method used to find mutator (constructor parameter, setter, field) to use for
changing value of the property.
|
限定符和类型 | 方法和说明 |
---|---|
abstract Map<Object,AnnotatedMember> |
BeanDescription.findInjectables() |
限定符和类型 | 方法和说明 |
---|---|
Object |
AnnotationIntrospector.findInjectableValueId(AnnotatedMember m)
Method called to find out whether given member expectes a value
to be injected, and if so, what is the identifier of the value
to use during injection.
|
Object |
AnnotationIntrospector.Pair.findInjectableValueId(AnnotatedMember m) |
TypeResolverBuilder<?> |
AnnotationIntrospector.findPropertyContentTypeResolver(MapperConfig<?> config,
AnnotatedMember am,
JavaType containerType)
Method for checking if given structured property entity (field or method that
has nominal value of Map, Collection or array type) has annotations
that indicate that specific type resolver is to be used for handling type
information of contained values.
|
TypeResolverBuilder<?> |
AnnotationIntrospector.Pair.findPropertyContentTypeResolver(MapperConfig<?> config,
AnnotatedMember am,
JavaType baseType) |
TypeResolverBuilder<?> |
AnnotationIntrospector.findPropertyTypeResolver(MapperConfig<?> config,
AnnotatedMember am,
JavaType baseType)
Method for checking if given property entity (field or method) has annotations
that indicate that specific type resolver is to be used for handling instances.
|
TypeResolverBuilder<?> |
AnnotationIntrospector.Pair.findPropertyTypeResolver(MapperConfig<?> config,
AnnotatedMember am,
JavaType baseType) |
AnnotationIntrospector.ReferenceProperty |
AnnotationIntrospector.findReferenceType(AnnotatedMember member)
Note: defined as non-abstract to reduce fragility between
versions.
|
AnnotationIntrospector.ReferenceProperty |
AnnotationIntrospector.Pair.findReferenceType(AnnotatedMember member) |
boolean |
AnnotationIntrospector.hasIgnoreMarker(AnnotatedMember m)
Method called to check whether given property is marked to
be ignored; but NOT to determine if it should necessarily
be ignored, since that may depend on other factors.
|
boolean |
AnnotationIntrospector.Pair.hasIgnoreMarker(AnnotatedMember m) |
Boolean |
AnnotationIntrospector.shouldUnwrapProperty(AnnotatedMember member)
Method called to check whether given property is marked to be "unwrapped"
when being serialized (and appropriately handled in reverse direction,
i.e. expect unwrapped representation during deserialization)
|
Boolean |
AnnotationIntrospector.Pair.shouldUnwrapProperty(AnnotatedMember member) |
构造器和说明 |
---|
BeanProperty.Std(String name,
JavaType type,
Annotations contextAnnotations,
AnnotatedMember member) |
限定符和类型 | 方法和说明 |
---|---|
abstract AnnotatedMember |
SettableBeanProperty.getMember() |
AnnotatedMember |
SettableBeanProperty.MethodProperty.getMember() |
AnnotatedMember |
SettableBeanProperty.SetterlessProperty.getMember() |
AnnotatedMember |
SettableBeanProperty.FieldProperty.getMember() |
AnnotatedMember |
SettableBeanProperty.ManagedReferenceProperty.getMember() |
AnnotatedMember |
SettableBeanProperty.InnerClassProperty.getMember() |
限定符和类型 | 方法和说明 |
---|---|
void |
BeanDeserializerBuilder.addInjectable(String propertyName,
JavaType propertyType,
Annotations contextAnnotations,
AnnotatedMember member,
Object valueId) |
TypeDeserializer |
BasicDeserializerFactory.findPropertyContentTypeDeserializer(DeserializationConfig config,
JavaType containerType,
AnnotatedMember propertyEntity,
BeanProperty property)
Method called to find and create a type information deserializer for values of
given container (list, array, map) property, if one is needed.
|
TypeDeserializer |
BasicDeserializerFactory.findPropertyTypeDeserializer(DeserializationConfig config,
JavaType baseType,
AnnotatedMember annotated,
BeanProperty property)
Method called to create a type information deserializer for values of
given non-container property, if one is needed.
|
protected JavaType |
BasicDeserializerFactory.resolveType(DeserializationConfig config,
BasicBeanDescription beanDesc,
JavaType type,
AnnotatedMember member,
BeanProperty property)
Helper method used to resolve method return types and field
types.
|
限定符和类型 | 方法和说明 |
---|---|
AnnotatedMember |
CreatorProperty.getMember() |
构造器和说明 |
---|
ValueInjector(String propertyName,
JavaType type,
Annotations contextAnnotations,
AnnotatedMember mutator,
Object valueId) |
限定符和类型 | 类和说明 |
---|---|
class |
AnnotatedConstructor |
class |
AnnotatedField
Object that represents non-static (and usually non-transient/volatile)
fields of a class.
|
class |
AnnotatedMethod |
class |
AnnotatedParameter
Object that represents method parameters, mostly so that associated
annotations can be processed conveniently.
|
class |
AnnotatedWithParams
Intermediate base class that encapsulates features that
constructors and methods share.
|
限定符和类型 | 字段和说明 |
---|---|
protected LinkedHashMap<Object,AnnotatedMember> |
POJOPropertiesCollector._injectables
Lazily collected list of members that were annotated to
indicate that they represent mutators for deserializer
value injection.
|
protected Map<Object,AnnotatedMember> |
BasicBeanDescription._injectables |
限定符和类型 | 方法和说明 |
---|---|
AnnotatedMember |
POJOPropertyBuilder.getAccessor() |
AnnotatedMember |
POJOPropertyBuilder.getMutator() |
限定符和类型 | 方法和说明 |
---|---|
Map<String,AnnotatedMember> |
BasicBeanDescription.findBackReferenceProperties()
Method for locating all back-reference properties (setters, fields) bean has
|
Map<Object,AnnotatedMember> |
BasicBeanDescription.findInjectables() |
Map<Object,AnnotatedMember> |
POJOPropertiesCollector.getInjectables() |
限定符和类型 | 方法和说明 |
---|---|
protected void |
POJOPropertiesCollector._doAddInjectable(Object id,
AnnotatedMember m) |
Object |
JacksonAnnotationIntrospector.findInjectableValueId(AnnotatedMember m) |
TypeResolverBuilder<?> |
JacksonAnnotationIntrospector.findPropertyContentTypeResolver(MapperConfig<?> config,
AnnotatedMember am,
JavaType containerType)
Since 1.7, it is possible to use
JsonTypeInfo from a property too. |
TypeResolverBuilder<?> |
JacksonAnnotationIntrospector.findPropertyTypeResolver(MapperConfig<?> config,
AnnotatedMember am,
JavaType baseType)
Since 1.7, it is possible to use
JsonTypeInfo from a property too. |
AnnotationIntrospector.ReferenceProperty |
JacksonAnnotationIntrospector.findReferenceType(AnnotatedMember member) |
boolean |
NopAnnotationIntrospector.hasIgnoreMarker(AnnotatedMember member) |
boolean |
JacksonAnnotationIntrospector.hasIgnoreMarker(AnnotatedMember m) |
boolean |
VisibilityChecker.isCreatorVisible(AnnotatedMember m) |
boolean |
VisibilityChecker.Std.isCreatorVisible(AnnotatedMember m) |
Boolean |
JacksonAnnotationIntrospector.shouldUnwrapProperty(AnnotatedMember member) |
限定符和类型 | 方法和说明 |
---|---|
abstract Collection<NamedType> |
SubtypeResolver.collectAndResolveSubtypes(AnnotatedMember property,
MapperConfig<?> config,
AnnotationIntrospector ai)
Method for finding out all reachable subtypes for a property specified
by given element (method or field)
|
限定符和类型 | 方法和说明 |
---|---|
Collection<NamedType> |
StdSubtypeResolver.collectAndResolveSubtypes(AnnotatedMember property,
MapperConfig<?> config,
AnnotationIntrospector ai) |
限定符和类型 | 字段和说明 |
---|---|
protected AnnotatedMember |
BeanPropertyWriter._member
Member (field, method) that represents property and allows access
to associated annotations.
|
限定符和类型 | 方法和说明 |
---|---|
AnnotatedMember |
BeanPropertyWriter.getMember() |
限定符和类型 | 方法和说明 |
---|---|
protected BeanPropertyWriter |
BeanSerializerFactory._constructWriter(SerializationConfig config,
TypeBindings typeContext,
PropertyBuilder pb,
boolean staticTyping,
String name,
AnnotatedMember accessor)
Secondary helper method for constructing
BeanPropertyWriter for
given member (field or method). |
protected BeanPropertyWriter |
PropertyBuilder.buildWriter(String name,
JavaType declaredType,
JsonSerializer<Object> ser,
TypeSerializer typeSer,
TypeSerializer contentTypeSer,
AnnotatedMember am,
boolean defaultUseStaticTyping) |
TypeSerializer |
BeanSerializerFactory.findPropertyContentTypeSerializer(JavaType containerType,
SerializationConfig config,
AnnotatedMember accessor,
BeanProperty property)
Method called to create a type information serializer for values of given
container property
if one is needed.
|
TypeSerializer |
BeanSerializerFactory.findPropertyTypeSerializer(JavaType baseType,
SerializationConfig config,
AnnotatedMember accessor,
BeanProperty property)
Method called to create a type information serializer for values of given
non-container property
if one is needed.
|
构造器和说明 |
---|
BeanPropertyWriter(AnnotatedMember member,
Annotations contextAnnotations,
SerializedString name,
JavaType declaredType,
JsonSerializer<Object> ser,
TypeSerializer typeSer,
JavaType serType,
Method m,
Field f,
boolean suppressNulls,
Object suppressableValue) |
BeanPropertyWriter(AnnotatedMember member,
Annotations contextAnnotations,
String name,
JavaType declaredType,
JsonSerializer<Object> ser,
TypeSerializer typeSer,
JavaType serType,
Method m,
Field f,
boolean suppressNulls,
Object suppressableValue) |
限定符和类型 | 方法和说明 |
---|---|
protected TypeResolverBuilder<?> |
JaxbAnnotationIntrospector._typeResolverFromXmlElements(AnnotatedMember am) |
TypeResolverBuilder<?> |
JaxbAnnotationIntrospector.findPropertyContentTypeResolver(MapperConfig<?> config,
AnnotatedMember am,
JavaType containerType) |
TypeResolverBuilder<?> |
JaxbAnnotationIntrospector.findPropertyTypeResolver(MapperConfig<?> config,
AnnotatedMember am,
JavaType baseType) |
boolean |
JaxbAnnotationIntrospector.hasIgnoreMarker(AnnotatedMember m) |