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 |
|---|---|
|
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) |
|
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) |
com.fasterxml.jackson.databind.ser.std.BeanSerializerBase |
withFilterId(Object filterId) |
protected com.fasterxml.jackson.databind.ser.std.BeanSerializerBase |
withIgnorals(Set<String> toIgnore) |
com.fasterxml.jackson.databind.ser.std.BeanSerializerBase |
withObjectIdWriter(com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter) |
_isAttribute, _isCData, _orderAttributesFirst, _serializeObjectId, serializeFields, serializeFieldsFiltered, serializeWithType_customTypeId, _serializeWithObjectId, _serializeWithObjectId, _typeIdDef, acceptJsonFormatVisitor, createContextual, findConvertingSerializer, getSchema, properties, resolve, usesObjectId, withIgnorals_neitherNull, _nonEmpty, createSchemaNode, createSchemaNode, findAnnotatedContentSerializer, findContextualConvertingSerializer, findConvertingContentSerializer, findFormatFeature, findFormatOverrides, findIncludeOverrides, findPropertyFilter, getSchema, handledType, isDefaultSerializer, visitArrayFormat, visitArrayFormat, visitFloatFormat, visitIntFormat, visitIntFormat, visitStringFormat, visitStringFormat, wrapAndThrow, wrapAndThrowgetDelegatee, isEmpty, isEmpty, replaceDelegateeprotected final com.fasterxml.jackson.databind.util.NameTransformer _nameTransformer
public UnwrappingXmlBeanSerializer(XmlBeanSerializerBase src, com.fasterxml.jackson.databind.util.NameTransformer transformer)
BeanSerializerpublic 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)
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.BeanSerializerBasepublic com.fasterxml.jackson.databind.ser.std.BeanSerializerBase withFilterId(Object filterId)
withFilterId in class com.fasterxml.jackson.databind.ser.std.BeanSerializerBaseprotected com.fasterxml.jackson.databind.ser.std.BeanSerializerBase withIgnorals(Set<String> toIgnore)
withIgnorals in class com.fasterxml.jackson.databind.ser.std.BeanSerializerBaseprotected com.fasterxml.jackson.databind.ser.std.BeanSerializerBase asArraySerializer()
asArraySerializer in class com.fasterxml.jackson.databind.ser.std.BeanSerializerBasepublic 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.BeanSerializerBaseIOExceptioncom.fasterxml.jackson.core.JsonGenerationExceptionCopyright © 2019 FasterXML. All rights reserved.