public class XmlBeanSerializer extends XmlBeanSerializerBase
BeanSerializer
for XML handling._attributeCount, _cdata, _textPropertyIndex, _xmlNames, KEY_XML_INFO
Modifier | Constructor and Description |
---|---|
|
XmlBeanSerializer(com.fasterxml.jackson.databind.ser.std.BeanSerializerBase src) |
protected |
XmlBeanSerializer(XmlBeanSerializerBase src,
com.fasterxml.jackson.databind.ser.BeanPropertyWriter[] properties,
com.fasterxml.jackson.databind.ser.BeanPropertyWriter[] filteredProperties) |
|
XmlBeanSerializer(XmlBeanSerializerBase src,
com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter) |
|
XmlBeanSerializer(XmlBeanSerializerBase src,
com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter,
Object filterId) |
|
XmlBeanSerializer(XmlBeanSerializerBase src,
Set<String> toIgnore,
Set<String> toInclude) |
Modifier and Type | Method and Description |
---|---|
protected com.fasterxml.jackson.databind.ser.std.BeanSerializerBase |
asArraySerializer()
Implementation has to check whether as-array serialization
is possible reliably; if (and only if) so, will construct
a
BeanAsArraySerializer , otherwise will return this
serializer as is. |
void |
serialize(Object bean,
com.fasterxml.jackson.core.JsonGenerator g,
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 unwrapper) |
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, isUnwrappingSerializer, replaceDelegatee
public XmlBeanSerializer(com.fasterxml.jackson.databind.ser.std.BeanSerializerBase src)
public XmlBeanSerializer(XmlBeanSerializerBase src, com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter, Object filterId)
public XmlBeanSerializer(XmlBeanSerializerBase src, com.fasterxml.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter)
public XmlBeanSerializer(XmlBeanSerializerBase src, Set<String> toIgnore, Set<String> toInclude)
protected XmlBeanSerializer(XmlBeanSerializerBase 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 unwrapper)
unwrappingSerializer
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()
BeanAsArraySerializer
, otherwise will return this
serializer as is.asArraySerializer
in class com.fasterxml.jackson.databind.ser.std.BeanSerializerBase
public void serialize(Object bean, com.fasterxml.jackson.core.JsonGenerator g, com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException
BeanPropertyWriter
instances.serialize
in class com.fasterxml.jackson.databind.ser.std.BeanSerializerBase
IOException
Copyright © 2022 FasterXML. All rights reserved.