UnwrappingBeanSerializer required to extend
XmlBeanSerializerBase for XML-specific handling.
| 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 | UnwrappingXmlBeanSerializer(XmlBeanSerializerBase src, NameTransformer transformer)
Constructor used for creating unwrapping instance of a standard
|
| public | |
| public | UnwrappingXmlBeanSerializer(UnwrappingXmlBeanSerializer src, ObjectIdWriter objectIdWriter, Object filterId)
|
| protected | UnwrappingXmlBeanSerializer(UnwrappingXmlBeanSerializer src, Set<String> toIgnore, Set<String> toInclude)
|
| protected | UnwrappingXmlBeanSerializer(UnwrappingXmlBeanSerializer src, BeanPropertyWriter[] properties, BeanPropertyWriter[] filteredProperties)
|
| Modifier and Type | Method and Description |
|---|---|
| protected BeanSerializerBase | asArraySerializer()
Implements abstract tools. JSON Array output can not be done if unwrapping operation is requested; so implementation will simply return 'this'. |
| public boolean | isUnwrappingSerializer()
Overrides tools. Accessor for checking whether this serializer is an "unwrapping" serializer; this is necessary to know since it may also require caller to suppress writing of the leading property name. |
| public final void | serialize(Object bean, JsonGenerator g, SerializationContext ctxt)
Implements abstract tools. Main serialization method that will delegate actual output to configured
|
| public String | toString()
Overrides tools. Returns a string representation of the object. |
| public ValueSerializer | unwrappingSerializer(NameTransformer transformer)
Implements abstract tools. Lets force sub-classes to implement this, to avoid accidental missing of handling... |
| protected BeanSerializerBase | withByNameInclusion(Set<String> toIgnore, Set<String> toInclude)
Implements abstract tools. Mutant factory used for creating a new instance with additional set of properties to ignore or include (from properties this instance otherwise has) |
| public BeanSerializerBase | withFilterId(Object filterId)
Implements abstract tools. Mutant factory used for creating a new instance with different
filter id (used with |
| public BeanSerializerBase | withObjectIdWriter(ObjectIdWriter objectIdWriter)
Implements abstract tools. Mutant factory used for creating a new instance with different
|
| protected BeanSerializerBase | withProperties(BeanPropertyWriter[] properties, BeanPropertyWriter[] filteredProperties)
Implements abstract tools. Mutant factory used for creating a new instance with modified set of properties |
| _nameTransformer | back to summary |
|---|---|
| protected final NameTransformer _nameTransformer Transformer used to add prefix and/or suffix for properties of unwrapped POJO. | |
| UnwrappingXmlBeanSerializer | back to summary |
|---|---|
| public UnwrappingXmlBeanSerializer(XmlBeanSerializerBase src, NameTransformer transformer) Constructor used for creating unwrapping instance of a standard
| |
| UnwrappingXmlBeanSerializer | back to summary |
|---|---|
| public UnwrappingXmlBeanSerializer(UnwrappingXmlBeanSerializer src, ObjectIdWriter objectIdWriter) | |
| UnwrappingXmlBeanSerializer | back to summary |
|---|---|
| public UnwrappingXmlBeanSerializer(UnwrappingXmlBeanSerializer src, ObjectIdWriter objectIdWriter, Object filterId) | |
| UnwrappingXmlBeanSerializer | back to summary |
|---|---|
| protected UnwrappingXmlBeanSerializer(UnwrappingXmlBeanSerializer src, Set<String> toIgnore, Set<String> toInclude) | |
| UnwrappingXmlBeanSerializer | back to summary |
|---|---|
| protected UnwrappingXmlBeanSerializer(UnwrappingXmlBeanSerializer src, BeanPropertyWriter[] properties, BeanPropertyWriter[] filteredProperties) | |
| asArraySerializer | back to summary |
|---|---|
| protected BeanSerializerBase asArraySerializer() Implements abstract tools. JSON Array output can not be done if unwrapping operation is requested; so implementation will simply return 'this'.
| |
| isUnwrappingSerializer | back to summary |
|---|---|
| public boolean isUnwrappingSerializer() Overrides tools. Doc from tools. Accessor for checking whether this serializer is an "unwrapping" serializer; this is necessary to know since it may also require caller to suppress writing of the leading property name.
| |
| serialize | back to summary |
|---|---|
| public final void serialize(Object bean, JsonGenerator g, SerializationContext ctxt) throws JacksonException Implements abstract tools. Main serialization method that will delegate actual output to configured
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides tools. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| unwrappingSerializer | back to summary |
|---|---|
| public ValueSerializer Implements abstract tools. Doc from tools. Lets force sub-classes to implement this, to avoid accidental missing of handling...
| |
| withByNameInclusion | back to summary |
|---|---|
| protected BeanSerializerBase withByNameInclusion(Set<String> toIgnore, Set<String> toInclude) Implements abstract tools. Doc from tools. Mutant factory used for creating a new instance with additional set of properties to ignore or include (from properties this instance otherwise has)
| |
| withFilterId | back to summary |
|---|---|
| public BeanSerializerBase withFilterId(Object filterId) Implements abstract tools. Doc from tools. Mutant factory used for creating a new instance with different
filter id (used with
| |
| withObjectIdWriter | back to summary |
|---|---|
| public BeanSerializerBase withObjectIdWriter(ObjectIdWriter objectIdWriter) Implements abstract tools. Doc from tools. Mutant factory used for creating a new instance with different
| |
| withProperties | back to summary |
|---|---|
| protected BeanSerializerBase withProperties(BeanPropertyWriter[] properties, BeanPropertyWriter[] filteredProperties) Implements abstract tools. Doc from tools. Mutant factory used for creating a new instance with modified set of properties
| |