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 | Description |
---|---|---|
protected BeanPropertyWriter[] |
BeanSerializerBuilder._filteredProperties |
Optional array of filtered property writers; if null, no
view-based filtering is performed.
|
Modifier and Type | Field | Description |
---|---|---|
protected java.util.List<BeanPropertyWriter> |
BeanSerializerBuilder._properties |
Bean properties, in order of serialization
|
Modifier and Type | Method | Description |
---|---|---|
protected BeanPropertyWriter |
BeanSerializerFactory._constructWriter(SerializationConfig config,
TypeBindings typeContext,
PropertyBuilder pb,
boolean staticTyping,
java.lang.String name,
AnnotatedMember accessor) |
Secondary helper method for constructing
BeanPropertyWriter for
given member (field or method). |
protected BeanPropertyWriter |
PropertyBuilder.buildWriter(java.lang.String name,
JavaType declaredType,
JsonSerializer<java.lang.Object> ser,
TypeSerializer typeSer,
TypeSerializer contentTypeSer,
AnnotatedMember am,
boolean defaultUseStaticTyping) |
|
protected BeanPropertyWriter |
BeanSerializerFactory.constructFilteredBeanWriter(BeanPropertyWriter writer,
java.lang.Class<?>[] inViews) |
Method called to construct a filtered writer, for given view
definitions.
|
static BeanPropertyWriter |
FilteredBeanPropertyWriter.constructViewBased(BeanPropertyWriter base,
java.lang.Class<?>[] viewsToIncludeIn) |
|
BeanPropertyWriter[] |
BeanSerializerBuilder.getFilteredProperties() |
|
BeanPropertyWriter |
BeanPropertyWriter.unwrappingWriter() |
Method called create an instance that handles details of unwrapping
contained value.
|
BeanPropertyWriter |
BeanPropertyWriter.withSerializer(JsonSerializer<java.lang.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 | Description |
---|---|---|
java.util.List<BeanPropertyWriter> |
BeanSerializerModifier.changeProperties(SerializationConfig config,
BasicBeanDescription beanDesc,
java.util.List<BeanPropertyWriter> beanProperties) |
Method called by
BeanSerializerFactory with tentative set
of discovered properties. |
protected java.util.List<BeanPropertyWriter> |
BeanSerializerFactory.filterBeanProperties(SerializationConfig config,
BasicBeanDescription beanDesc,
java.util.List<BeanPropertyWriter> props) |
Overridable method that can filter out properties.
|
protected java.util.List<BeanPropertyWriter> |
BeanSerializerFactory.findBeanProperties(SerializationConfig config,
BasicBeanDescription beanDesc) |
Method used to collect all actual serializable properties.
|
java.util.List<BeanPropertyWriter> |
BeanSerializerBuilder.getProperties() |
|
java.util.List<BeanPropertyWriter> |
BeanSerializerModifier.orderProperties(SerializationConfig config,
BasicBeanDescription beanDesc,
java.util.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 java.util.List<BeanPropertyWriter> |
BeanSerializerFactory.sortBeanProperties(SerializationConfig config,
BasicBeanDescription beanDesc,
java.util.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 | Description |
---|---|---|
protected BeanPropertyWriter |
BeanSerializerFactory.constructFilteredBeanWriter(BeanPropertyWriter writer,
java.lang.Class<?>[] inViews) |
Method called to construct a filtered writer, for given view
definitions.
|
static BeanPropertyWriter |
FilteredBeanPropertyWriter.constructViewBased(BeanPropertyWriter base,
java.lang.Class<?>[] viewsToIncludeIn) |
|
void |
BeanPropertyFilter.serializeAsField(java.lang.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 | Description |
---|---|---|
java.util.List<BeanPropertyWriter> |
BeanSerializerModifier.changeProperties(SerializationConfig config,
BasicBeanDescription beanDesc,
java.util.List<BeanPropertyWriter> beanProperties) |
Method called by
BeanSerializerFactory with tentative set
of discovered properties. |
protected java.util.List<BeanPropertyWriter> |
BeanSerializerFactory.filterBeanProperties(SerializationConfig config,
BasicBeanDescription beanDesc,
java.util.List<BeanPropertyWriter> props) |
Overridable method that can filter out properties.
|
java.util.List<BeanPropertyWriter> |
BeanSerializerModifier.orderProperties(SerializationConfig config,
BasicBeanDescription beanDesc,
java.util.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(java.util.List<BeanPropertyWriter> properties) |
|
protected java.util.List<BeanPropertyWriter> |
BeanSerializerFactory.sortBeanProperties(SerializationConfig config,
BasicBeanDescription beanDesc,
java.util.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 | Description |
---|---|
BeanPropertyWriter(BeanPropertyWriter base) |
"Copy constructor" to be used by filtering sub-classes
|
BeanPropertyWriter(BeanPropertyWriter base,
JsonSerializer<java.lang.Object> ser) |
"Copy constructor" to be used by filtering sub-classes
|
BeanSerializer(java.lang.Class<?> rawType,
BeanPropertyWriter[] properties,
BeanPropertyWriter[] filteredProperties,
AnyGetterWriter anyGetterWriter,
java.lang.Object filterId) |
|
BeanSerializer(JavaType type,
BeanPropertyWriter[] properties,
BeanPropertyWriter[] filteredProperties,
AnyGetterWriter anyGetterWriter,
java.lang.Object filterId) |
Modifier and Type | Class | 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 | Description |
---|---|---|
BeanPropertyWriter |
UnwrappingBeanPropertyWriter.withSerializer(JsonSerializer<java.lang.Object> ser) |
Modifier and Type | Method | Description |
---|---|---|
void |
SimpleBeanPropertyFilter.FilterExceptFilter.serializeAsField(java.lang.Object bean,
JsonGenerator jgen,
SerializerProvider provider,
BeanPropertyWriter writer) |
|
void |
SimpleBeanPropertyFilter.SerializeExceptFilter.serializeAsField(java.lang.Object bean,
JsonGenerator jgen,
SerializerProvider provider,
BeanPropertyWriter writer) |
Constructor | Description |
---|---|
UnwrappingBeanPropertyWriter(BeanPropertyWriter base) |
|
UnwrappingBeanPropertyWriter(BeanPropertyWriter base,
JsonSerializer<java.lang.Object> ser) |
Modifier and Type | Field | 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 | Description |
---|---|
BeanSerializerBase(java.lang.Class<?> rawType,
BeanPropertyWriter[] properties,
BeanPropertyWriter[] filteredProperties,
AnyGetterWriter anyGetterWriter,
java.lang.Object filterId) |
|
BeanSerializerBase(JavaType type,
BeanPropertyWriter[] properties,
BeanPropertyWriter[] filteredProperties,
AnyGetterWriter anyGetterWriter,
java.lang.Object filterId) |