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 | Field and Description |
|---|---|
| protected final NameTransformer | _nameTransformer
Transformer used to add prefix and/or suffix for properties of unwrapped POJO. |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| protected | UnwrappingBeanPropertyWriter(UnwrappingBeanPropertyWriter base, NameTransformer transformer, SerializedString name)
|
| Modifier and Type | Method and Description |
|---|---|
| protected void | _depositSchemaProperty(ObjectNode propertiesNode, JsonNode schemaNode)
Overrides com.
|
| protected JsonSerializer | _findAndAddDynamic(PropertySerializerMap map, Class<?> type, SerializerProvider provider)
Overrides com.
|
| protected UnwrappingBeanPropertyWriter | _new(NameTransformer transformer, SerializedString newName)
Overridable factory method used by sub-classes |
| public void | assignSerializer(JsonSerializer<Object> ser)
Overrides com. Method called to assign value serializer for property |
| public void | depositSchemaProperty(final JsonObjectFormatVisitor
Visitor to used as the callback handler visitor, SerializerProvider provider)Overrides com. Implements com. Traversal method used for things like JSON Schema generation, or POJO introspection. |
| public boolean | isUnwrapping()
Overrides com. Accessor that will return true if this bean property has to support "unwrapping"; ability to replace POJO structural wrapping with optional name prefix and/or suffix (or in some cases, just removal of wrapper name). |
| public UnwrappingBeanPropertyWriter | rename(NameTransformer transformer)
Overrides com.
|
| public void | serializeAsField(Object bean, JsonGenerator gen, SerializerProvider prov)
Overrides com. Method called to access property that this bean stands for, from within given bean, and to serialize it as a JSON Object field using appropriate serializer. |
| _nameTransformer | back to summary |
|---|---|
| protected final NameTransformer _nameTransformer Transformer used to add prefix and/or suffix for properties of unwrapped POJO. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| UnwrappingBeanPropertyWriter | back to summary |
|---|---|
| public UnwrappingBeanPropertyWriter(BeanPropertyWriter base, NameTransformer unwrapper) | |
| UnwrappingBeanPropertyWriter | back to summary |
|---|---|
| protected UnwrappingBeanPropertyWriter(UnwrappingBeanPropertyWriter base, NameTransformer transformer, SerializedString name) | |
| _depositSchemaProperty | back to summary |
|---|---|
| protected void _depositSchemaProperty(ObjectNode propertiesNode, JsonNode schemaNode) Overrides com.
| |
| _findAndAddDynamic | back to summary |
|---|---|
| protected JsonSerializer Overrides com.
| |
| _new | back to summary |
|---|---|
| protected UnwrappingBeanPropertyWriter _new(NameTransformer transformer, SerializedString newName) Overridable factory method used by sub-classes
| |
| assignSerializer | back to summary |
|---|---|
| public void assignSerializer(JsonSerializer<Object> ser) Overrides com. Doc from com. Method called to assign value serializer for property
| |
| depositSchemaProperty | back to summary |
|---|---|
| public void depositSchemaProperty(final JsonObjectFormatVisitor visitor, SerializerProvider provider) throws JsonMappingException Overrides com. Implements com. Doc from com. Traversal method used for things like JSON Schema generation, or POJO introspection.
| |
| isUnwrapping | back to summary |
|---|---|
| public boolean isUnwrapping() Overrides com. Doc from com. Accessor that will return true if this bean property has to support "unwrapping"; ability to replace POJO structural wrapping with optional name prefix and/or suffix (or in some cases, just removal of wrapper name). Default implementation simply returns false.
| |
| rename | back to summary |
|---|---|
| public UnwrappingBeanPropertyWriter rename(NameTransformer transformer) Overrides com.
| |
| serializeAsField | back to summary |
|---|---|
| public void serializeAsField(Object bean, JsonGenerator gen, SerializerProvider prov) throws Exception Overrides com. Doc from com. Method called to access property that this bean stands for, from within given bean, and to serialize it as a JSON Object field using appropriate serializer.
| |