程序包 | 说明 |
---|---|
org.codehaus.jackson.map.ser |
Contains implementation classes of serialization part of
data binding.
|
org.codehaus.jackson.map.ser.impl |
Contains implementation classes of serialization part of
data binding.
|
org.codehaus.jackson.map.ser.std |
限定符和类型 | 字段和说明 |
---|---|
protected BeanPropertyWriter[] |
BeanSerializerBuilder._filteredProperties
Optional array of filtered property writers; if null, no
view-based filtering is performed.
|
限定符和类型 | 字段和说明 |
---|---|
protected List<BeanPropertyWriter> |
BeanSerializerBuilder._properties
Bean properties, in order of serialization
|
限定符和类型 | 方法和说明 |
---|---|
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) |
protected BeanPropertyWriter |
BeanSerializerFactory.constructFilteredBeanWriter(BeanPropertyWriter writer,
Class<?>[] inViews)
Method called to construct a filtered writer, for given view
definitions.
|
static BeanPropertyWriter |
FilteredBeanPropertyWriter.constructViewBased(BeanPropertyWriter base,
Class<?>[] viewsToIncludeIn) |
BeanPropertyWriter[] |
BeanSerializerBuilder.getFilteredProperties() |
BeanPropertyWriter |
BeanPropertyWriter.unwrappingWriter()
Method called create an instance that handles details of unwrapping
contained value.
|
BeanPropertyWriter |
BeanPropertyWriter.withSerializer(JsonSerializer<Object> ser)
Method that will construct and return a new writer that has
same properties as this writer, but uses specified serializer
instead of currently configured one (if any).
|
限定符和类型 | 方法和说明 |
---|---|
List<BeanPropertyWriter> |
BeanSerializerModifier.changeProperties(SerializationConfig config,
BasicBeanDescription beanDesc,
List<BeanPropertyWriter> beanProperties)
Method called by
BeanSerializerFactory with tentative set
of discovered properties. |
protected List<BeanPropertyWriter> |
BeanSerializerFactory.filterBeanProperties(SerializationConfig config,
BasicBeanDescription beanDesc,
List<BeanPropertyWriter> props)
Overridable method that can filter out properties.
|
protected List<BeanPropertyWriter> |
BeanSerializerFactory.findBeanProperties(SerializationConfig config,
BasicBeanDescription beanDesc)
Method used to collect all actual serializable properties.
|
List<BeanPropertyWriter> |
BeanSerializerBuilder.getProperties() |
List<BeanPropertyWriter> |
BeanSerializerModifier.orderProperties(SerializationConfig config,
BasicBeanDescription beanDesc,
List<BeanPropertyWriter> beanProperties)
Method called by
BeanSerializerFactory with set of properties
to serialize, in default ordering (based on defaults as well as
possible type annotations). |
protected List<BeanPropertyWriter> |
BeanSerializerFactory.sortBeanProperties(SerializationConfig config,
BasicBeanDescription beanDesc,
List<BeanPropertyWriter> props)
已过时。
Since 1.9 this method does nothing, so there is no
benefit from overriding it; it will be removed from 2.0.
|
限定符和类型 | 方法和说明 |
---|---|
protected BeanPropertyWriter |
BeanSerializerFactory.constructFilteredBeanWriter(BeanPropertyWriter writer,
Class<?>[] inViews)
Method called to construct a filtered writer, for given view
definitions.
|
static BeanPropertyWriter |
FilteredBeanPropertyWriter.constructViewBased(BeanPropertyWriter base,
Class<?>[] viewsToIncludeIn) |
void |
BeanPropertyFilter.serializeAsField(Object bean,
JsonGenerator jgen,
SerializerProvider prov,
BeanPropertyWriter writer)
Method called by
BeanSerializer to let filter decide what to do with
given bean property value: the usual choices are to either filter out (i.e. |
void |
BeanSerializerBuilder.setFilteredProperties(BeanPropertyWriter[] properties) |
限定符和类型 | 方法和说明 |
---|---|
List<BeanPropertyWriter> |
BeanSerializerModifier.changeProperties(SerializationConfig config,
BasicBeanDescription beanDesc,
List<BeanPropertyWriter> beanProperties)
Method called by
BeanSerializerFactory with tentative set
of discovered properties. |
protected List<BeanPropertyWriter> |
BeanSerializerFactory.filterBeanProperties(SerializationConfig config,
BasicBeanDescription beanDesc,
List<BeanPropertyWriter> props)
Overridable method that can filter out properties.
|
List<BeanPropertyWriter> |
BeanSerializerModifier.orderProperties(SerializationConfig config,
BasicBeanDescription beanDesc,
List<BeanPropertyWriter> beanProperties)
Method called by
BeanSerializerFactory with set of properties
to serialize, in default ordering (based on defaults as well as
possible type annotations). |
void |
BeanSerializerBuilder.setProperties(List<BeanPropertyWriter> properties) |
protected List<BeanPropertyWriter> |
BeanSerializerFactory.sortBeanProperties(SerializationConfig config,
BasicBeanDescription beanDesc,
List<BeanPropertyWriter> props)
已过时。
Since 1.9 this method does nothing, so there is no
benefit from overriding it; it will be removed from 2.0.
|
构造器和说明 |
---|
BeanPropertyWriter(BeanPropertyWriter base)
"Copy constructor" to be used by filtering sub-classes
|
BeanPropertyWriter(BeanPropertyWriter base,
JsonSerializer<Object> ser)
"Copy constructor" to be used by filtering sub-classes
|
BeanSerializer(Class<?> rawType,
BeanPropertyWriter[] properties,
BeanPropertyWriter[] filteredProperties,
AnyGetterWriter anyGetterWriter,
Object filterId) |
BeanSerializer(Class<?> rawType,
BeanPropertyWriter[] properties,
BeanPropertyWriter[] filteredProperties,
AnyGetterWriter anyGetterWriter,
Object filterId) |
BeanSerializer(JavaType type,
BeanPropertyWriter[] properties,
BeanPropertyWriter[] filteredProperties,
AnyGetterWriter anyGetterWriter,
Object filterId) |
BeanSerializer(JavaType type,
BeanPropertyWriter[] properties,
BeanPropertyWriter[] filteredProperties,
AnyGetterWriter anyGetterWriter,
Object filterId) |
限定符和类型 | 类和说明 |
---|---|
class |
UnwrappingBeanPropertyWriter
Variant of
BeanPropertyWriter which will handle unwrapping
of JSON Object (including of properties of Object within surrounding
JSON object, and not as sub-object). |
限定符和类型 | 方法和说明 |
---|---|
BeanPropertyWriter |
UnwrappingBeanPropertyWriter.withSerializer(JsonSerializer<Object> ser) |
限定符和类型 | 方法和说明 |
---|---|
void |
SimpleBeanPropertyFilter.FilterExceptFilter.serializeAsField(Object bean,
JsonGenerator jgen,
SerializerProvider provider,
BeanPropertyWriter writer) |
void |
SimpleBeanPropertyFilter.SerializeExceptFilter.serializeAsField(Object bean,
JsonGenerator jgen,
SerializerProvider provider,
BeanPropertyWriter writer) |
构造器和说明 |
---|
UnwrappingBeanPropertyWriter(BeanPropertyWriter base) |
UnwrappingBeanPropertyWriter(BeanPropertyWriter base,
JsonSerializer<Object> ser) |
限定符和类型 | 字段和说明 |
---|---|
protected BeanPropertyWriter[] |
BeanSerializerBase._filteredProps
Optional filters used to suppress output of properties that
are only to be included in certain views
|
protected BeanPropertyWriter[] |
BeanSerializerBase._props
Writers used for outputting actual property values
|
protected static BeanPropertyWriter[] |
BeanSerializerBase.NO_PROPS |
构造器和说明 |
---|
BeanSerializerBase(Class<?> rawType,
BeanPropertyWriter[] properties,
BeanPropertyWriter[] filteredProperties,
AnyGetterWriter anyGetterWriter,
Object filterId) |
BeanSerializerBase(Class<?> rawType,
BeanPropertyWriter[] properties,
BeanPropertyWriter[] filteredProperties,
AnyGetterWriter anyGetterWriter,
Object filterId) |
BeanSerializerBase(JavaType type,
BeanPropertyWriter[] properties,
BeanPropertyWriter[] filteredProperties,
AnyGetterWriter anyGetterWriter,
Object filterId) |
BeanSerializerBase(JavaType type,
BeanPropertyWriter[] properties,
BeanPropertyWriter[] filteredProperties,
AnyGetterWriter anyGetterWriter,
Object filterId) |