Package | Description |
---|---|
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 |
Modifier and Type | Field and Description |
---|---|
protected BeanPropertyWriter[] |
BeanSerializerBuilder._filteredProperties
Optional array of filtered property writers; if null, no
view-based filtering is performed.
|
Modifier and Type | Field and Description |
---|---|
protected List<BeanPropertyWriter> |
BeanSerializerBuilder._properties
Bean properties, in order of serialization
|
Modifier and Type | Method and Description |
---|---|
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).
|
Modifier and Type | Method and Description |
---|---|
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)
Deprecated.
Since 1.9 this method does nothing, so there is no
benefit from overriding it; it will be removed from 2.0.
|
Modifier and Type | Method and Description |
---|---|
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) |
Modifier and Type | Method and Description |
---|---|
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)
Deprecated.
Since 1.9 this method does nothing, so there is no
benefit from overriding it; it will be removed from 2.0.
|
Constructor and Description |
---|
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) |
Modifier and Type | Class and Description |
---|---|
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). |
Modifier and Type | Method and Description |
---|---|
BeanPropertyWriter |
UnwrappingBeanPropertyWriter.withSerializer(JsonSerializer<Object> ser) |
Modifier and Type | Method and Description |
---|---|
void |
SimpleBeanPropertyFilter.FilterExceptFilter.serializeAsField(Object bean,
JsonGenerator jgen,
SerializerProvider provider,
BeanPropertyWriter writer) |
void |
SimpleBeanPropertyFilter.SerializeExceptFilter.serializeAsField(Object bean,
JsonGenerator jgen,
SerializerProvider provider,
BeanPropertyWriter writer) |
Constructor and Description |
---|
UnwrappingBeanPropertyWriter(BeanPropertyWriter base) |
UnwrappingBeanPropertyWriter(BeanPropertyWriter base,
JsonSerializer<Object> ser) |
Modifier and Type | Field and Description |
---|---|
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 |
Constructor and Description |
---|
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) |