public class UnwrappingXmlBeanSerializer extends XmlBeanSerializerBase
UnwrappingBeanSerializer
required to extend
XmlBeanSerializerBase
for XML-specific handling.Modifier and Type | Field and Description |
---|---|
protected com.fasterxml.jackson.databind.util.NameTransformer |
_nameTransformer
Transformer used to add prefix and/or suffix for properties of unwrapped
POJO.
|
_attributeCount, _cdata, _textPropertyIndex, _xmlNames, KEY_XML_INFO
Modifier | Constructor and Description |
---|---|
protected |
UnwrappingXmlBeanSerializer(UnwrappingXmlBeanSerializer src,
com.fasterxml.jackson.databind.ser.BeanPropertyWriter[] properties,
com.fasterxml.jackson.databind.ser.BeanPropertyWriter[] filteredProperties) |
|
UnwrappingXmlBeanSerializer(UnwrappingXmlBeanSerializer src,
com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter) |
|
UnwrappingXmlBeanSerializer(UnwrappingXmlBeanSerializer src,
com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter,
Object filterId) |
protected |
UnwrappingXmlBeanSerializer(UnwrappingXmlBeanSerializer src,
Set<String> toIgnore,
Set<String> toInclude) |
|
UnwrappingXmlBeanSerializer(XmlBeanSerializerBase src,
com.fasterxml.jackson.databind.util.NameTransformer transformer)
Constructor used for creating unwrapping instance of a standard
BeanSerializer |
Modifier and Type | Method and Description |
---|---|
protected com.fasterxml.jackson.databind.ser.std.BeanSerializerBase |
asArraySerializer()
JSON Array output can not be done if unwrapping operation is requested;
so implementation will simply return 'this'.
|
boolean |
isUnwrappingSerializer() |
void |
serialize(Object bean,
com.fasterxml.jackson.core.JsonGenerator jgen,
com.fasterxml.jackson.databind.SerializerProvider provider)
Main serialization method that will delegate actual output to configured
BeanPropertyWriter instances. |
String |
toString() |
com.fasterxml.jackson.databind.JsonSerializer<Object> |
unwrappingSerializer(com.fasterxml.jackson.databind.util.NameTransformer transformer) |
protected com.fasterxml.jackson.databind.ser.std.BeanSerializerBase |
withByNameInclusion(Set<String> toIgnore,
Set<String> toInclude) |
com.fasterxml.jackson.databind.ser.std.BeanSerializerBase |
withFilterId(Object filterId) |
com.fasterxml.jackson.databind.ser.std.BeanSerializerBase |
withObjectIdWriter(com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter) |
protected com.fasterxml.jackson.databind.ser.std.BeanSerializerBase |
withProperties(com.fasterxml.jackson.databind.ser.BeanPropertyWriter[] properties,
com.fasterxml.jackson.databind.ser.BeanPropertyWriter[] filteredProperties) |
_isAttribute, _isCData, _orderAttributesFirst, _serializeObjectId, serializeFields, serializeFieldsFiltered, serializeWithType
_customTypeId, _serializeWithObjectId, _serializeWithObjectId, _typeIdDef, acceptJsonFormatVisitor, createContextual, findConvertingSerializer, getSchema, properties, resolve, usesObjectId, withIgnorals, withIgnorals
_neitherNull, _nonEmpty, createSchemaNode, createSchemaNode, findAnnotatedContentSerializer, findContextualConvertingSerializer, findConvertingContentSerializer, findFormatFeature, findFormatOverrides, findIncludeOverrides, findPropertyFilter, getSchema, handledType, isDefaultSerializer, visitArrayFormat, visitArrayFormat, visitFloatFormat, visitIntFormat, visitIntFormat, visitStringFormat, visitStringFormat, wrapAndThrow, wrapAndThrow
getDelegatee, isEmpty, isEmpty, replaceDelegatee
protected final com.fasterxml.jackson.databind.util.NameTransformer _nameTransformer
public UnwrappingXmlBeanSerializer(XmlBeanSerializerBase src, com.fasterxml.jackson.databind.util.NameTransformer transformer)
BeanSerializer
public UnwrappingXmlBeanSerializer(UnwrappingXmlBeanSerializer src, com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter)
public UnwrappingXmlBeanSerializer(UnwrappingXmlBeanSerializer src, com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter, Object filterId)
protected UnwrappingXmlBeanSerializer(UnwrappingXmlBeanSerializer src, Set<String> toIgnore, Set<String> toInclude)
protected UnwrappingXmlBeanSerializer(UnwrappingXmlBeanSerializer src, com.fasterxml.jackson.databind.ser.BeanPropertyWriter[] properties, com.fasterxml.jackson.databind.ser.BeanPropertyWriter[] filteredProperties)
public com.fasterxml.jackson.databind.JsonSerializer<Object> unwrappingSerializer(com.fasterxml.jackson.databind.util.NameTransformer transformer)
unwrappingSerializer
in class com.fasterxml.jackson.databind.JsonSerializer<Object>
public boolean isUnwrappingSerializer()
isUnwrappingSerializer
in class com.fasterxml.jackson.databind.JsonSerializer<Object>
public com.fasterxml.jackson.databind.ser.std.BeanSerializerBase withObjectIdWriter(com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter)
withObjectIdWriter
in class com.fasterxml.jackson.databind.ser.std.BeanSerializerBase
public com.fasterxml.jackson.databind.ser.std.BeanSerializerBase withFilterId(Object filterId)
withFilterId
in class com.fasterxml.jackson.databind.ser.std.BeanSerializerBase
protected com.fasterxml.jackson.databind.ser.std.BeanSerializerBase withByNameInclusion(Set<String> toIgnore, Set<String> toInclude)
withByNameInclusion
in class com.fasterxml.jackson.databind.ser.std.BeanSerializerBase
protected com.fasterxml.jackson.databind.ser.std.BeanSerializerBase withProperties(com.fasterxml.jackson.databind.ser.BeanPropertyWriter[] properties, com.fasterxml.jackson.databind.ser.BeanPropertyWriter[] filteredProperties)
withProperties
in class com.fasterxml.jackson.databind.ser.std.BeanSerializerBase
protected com.fasterxml.jackson.databind.ser.std.BeanSerializerBase asArraySerializer()
asArraySerializer
in class com.fasterxml.jackson.databind.ser.std.BeanSerializerBase
public final void serialize(Object bean, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException, com.fasterxml.jackson.core.JsonGenerationException
BeanPropertyWriter
instances.serialize
in class com.fasterxml.jackson.databind.ser.std.BeanSerializerBase
IOException
com.fasterxml.jackson.core.JsonGenerationException
Copyright © 2022 FasterXML. All rights reserved.