public class XmlBeanSerializer extends XmlBeanSerializerBase
BeanSerializer
for XML handling._attributeCount, _cdata, _textPropertyIndex, _xmlNames, KEY_XML_INFO
Constructor and Description |
---|
XmlBeanSerializer(com.fasterxml.jackson.databind.ser.std.BeanSerializerBase src) |
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) |
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) |
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, 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)
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 withIgnorals(Set<String> toIgnore)
withIgnorals
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 © 2019 FasterXML. All rights reserved.