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. |
| 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 tools.
|
| protected ValueSerializer | _findAndAddDynamic(PropertySerializerMap map, Class<?> type, SerializationContext provider)
Overrides tools.
|
| protected UnwrappingBeanPropertyWriter | _new(NameTransformer transformer, SerializedString newName)
Overridable factory method used by sub-classes |
| public void | assignSerializer(ValueSerializer<Object> ser)
Overrides tools. Method called to assign value serializer for property |
| public void | depositSchemaProperty(final JsonObjectFormatVisitor visitor, SerializationContext provider)
Overrides tools. Implements tools. Traversal method used for things like JSON Schema generation, or POJO introspection. |
| public boolean | isUnwrapping()
Overrides tools. 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 | |
| public void | serializeAsProperty(Object bean, JsonGenerator gen, SerializationContext prov)
Overrides tools. 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. | |
| 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 tools.
| |
| _findAndAddDynamic | back to summary |
|---|---|
| protected ValueSerializer Overrides tools.
| |
| _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(ValueSerializer<Object> ser) Overrides tools. Doc from tools. Method called to assign value serializer for property
| |
| depositSchemaProperty | back to summary |
|---|---|
| public void depositSchemaProperty(final JsonObjectFormatVisitor visitor, SerializationContext provider) Overrides tools. Implements tools. Doc from tools. Traversal method used for things like JSON Schema generation, or POJO introspection.
| |
| isUnwrapping | back to summary |
|---|---|
| public boolean isUnwrapping() Overrides tools. Doc from tools. 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 tools.
| |
| serializeAsProperty | back to summary |
|---|---|
| public void serializeAsProperty(Object bean, JsonGenerator gen, SerializationContext prov) throws Exception Overrides tools. Doc from tools. 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.
| |