Module tools.jackson.dataformat.xml
Package tools.jackson.dataformat.xml.ser
Class UnwrappingXmlBeanSerializer
java.lang.Object
tools.jackson.databind.ValueSerializer<T>
tools.jackson.databind.ser.std.StdSerializer<Object>
tools.jackson.databind.ser.bean.BeanSerializerBase
tools.jackson.dataformat.xml.ser.XmlBeanSerializerBase
tools.jackson.dataformat.xml.ser.UnwrappingXmlBeanSerializer
- All Implemented Interfaces:
tools.jackson.databind.jsonFormatVisitors.JsonFormatVisitable
Copy of
UnwrappingBeanSerializer required to extend
XmlBeanSerializerBase for XML-specific handling.-
Nested Class Summary
Nested classes/interfaces inherited from class tools.jackson.databind.ValueSerializer
tools.jackson.databind.ValueSerializer.None -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final tools.jackson.databind.util.NameTransformerTransformer used to add prefix and/or suffix for properties of unwrapped POJO.Fields inherited from class tools.jackson.dataformat.xml.ser.XmlBeanSerializerBase
_attributeCount, _cdata, _textPropertyIndex, _xmlNames, KEY_XML_INFOFields inherited from class tools.jackson.databind.ser.bean.BeanSerializerBase
_beanType, _filteredProps, _objectIdWriter, _propertyFilterId, _props, _serializationShape, _typeId, NAME_FOR_OBJECT_REF, NO_PROPSFields inherited from class tools.jackson.databind.ser.std.StdSerializer
_handledType -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUnwrappingXmlBeanSerializer(UnwrappingXmlBeanSerializer src, Set<String> toIgnore, Set<String> toInclude) protectedUnwrappingXmlBeanSerializer(UnwrappingXmlBeanSerializer src, tools.jackson.databind.ser.BeanPropertyWriter[] properties, tools.jackson.databind.ser.BeanPropertyWriter[] filteredProperties) UnwrappingXmlBeanSerializer(UnwrappingXmlBeanSerializer src, tools.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter) UnwrappingXmlBeanSerializer(UnwrappingXmlBeanSerializer src, tools.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter, Object filterId) UnwrappingXmlBeanSerializer(XmlBeanSerializerBase src, tools.jackson.databind.util.NameTransformer transformer) Constructor used for creating unwrapping instance of a standardBeanSerializer -
Method Summary
Modifier and TypeMethodDescriptionprotected tools.jackson.databind.ser.bean.BeanSerializerBaseJSON Array output can not be done if unwrapping operation is requested; so implementation will simply return 'this'.booleanfinal voidserialize(Object bean, tools.jackson.core.JsonGenerator g, tools.jackson.databind.SerializationContext ctxt) Main serialization method that will delegate actual output to configuredBeanPropertyWriterinstances.toString()tools.jackson.databind.ValueSerializer<Object>unwrappingSerializer(tools.jackson.databind.util.NameTransformer transformer) protected tools.jackson.databind.ser.bean.BeanSerializerBasewithByNameInclusion(Set<String> toIgnore, Set<String> toInclude) tools.jackson.databind.ser.bean.BeanSerializerBasewithFilterId(Object filterId) tools.jackson.databind.ser.bean.BeanSerializerBasewithObjectIdWriter(tools.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter) protected tools.jackson.databind.ser.bean.BeanSerializerBasewithProperties(tools.jackson.databind.ser.BeanPropertyWriter[] properties, tools.jackson.databind.ser.BeanPropertyWriter[] filteredProperties) Methods inherited from class tools.jackson.dataformat.xml.ser.XmlBeanSerializerBase
_isAttribute, _isCData, _orderAttributesFirst, _serializeObjectId, _serializeProperties, _serializePropertiesFiltered, serializeWithTypeMethods inherited from class tools.jackson.databind.ser.bean.BeanSerializerBase
_serializePropertiesMaybeView, _serializePropertiesNoView, _serializeWithObjectId, _serializeWithObjectId, _typeIdDef, acceptJsonFormatVisitor, canCreateArraySerializer, createContextual, findConvertingSerializer, getFilterId, hasViewProperties, properties, propertyCount, resolve, usesObjectIdMethods inherited from class tools.jackson.databind.ser.std.StdSerializer
_neitherNull, _nonEmpty, _wrapIOFailure, acceptJsonFormatVisitorForBinary, createSchemaNode, createSchemaNode, findAnnotatedContentSerializer, findContextualConvertingSerializer, findFormatFeature, findFormatOverrides, findIncludeOverrides, findPropertyFilter, handledType, isDefaultSerializer, visitArrayFormat, visitArrayFormat, visitFloatFormat, visitIntFormat, visitIntFormat, visitStringFormat, visitStringFormat, wrapAndThrow, wrapAndThrowMethods inherited from class tools.jackson.databind.ValueSerializer
getDelegatee, isEmpty, replaceDelegatee, withFormatOverrides, withIgnoredProperties
-
Field Details
-
_nameTransformer
protected final tools.jackson.databind.util.NameTransformer _nameTransformerTransformer used to add prefix and/or suffix for properties of unwrapped POJO.
-
-
Constructor Details
-
UnwrappingXmlBeanSerializer
public UnwrappingXmlBeanSerializer(XmlBeanSerializerBase src, tools.jackson.databind.util.NameTransformer transformer) Constructor used for creating unwrapping instance of a standardBeanSerializer -
UnwrappingXmlBeanSerializer
public UnwrappingXmlBeanSerializer(UnwrappingXmlBeanSerializer src, tools.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter) -
UnwrappingXmlBeanSerializer
public UnwrappingXmlBeanSerializer(UnwrappingXmlBeanSerializer src, tools.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter, Object filterId) -
UnwrappingXmlBeanSerializer
protected UnwrappingXmlBeanSerializer(UnwrappingXmlBeanSerializer src, Set<String> toIgnore, Set<String> toInclude) -
UnwrappingXmlBeanSerializer
protected UnwrappingXmlBeanSerializer(UnwrappingXmlBeanSerializer src, tools.jackson.databind.ser.BeanPropertyWriter[] properties, tools.jackson.databind.ser.BeanPropertyWriter[] filteredProperties)
-
-
Method Details
-
unwrappingSerializer
public tools.jackson.databind.ValueSerializer<Object> unwrappingSerializer(tools.jackson.databind.util.NameTransformer transformer) - Specified by:
unwrappingSerializerin classtools.jackson.databind.ser.bean.BeanSerializerBase
-
isUnwrappingSerializer
public boolean isUnwrappingSerializer()- Overrides:
isUnwrappingSerializerin classtools.jackson.databind.ValueSerializer<Object>
-
withObjectIdWriter
public tools.jackson.databind.ser.bean.BeanSerializerBase withObjectIdWriter(tools.jackson.databind.ser.impl.ObjectIdWriter objectIdWriter) - Specified by:
withObjectIdWriterin classtools.jackson.databind.ser.bean.BeanSerializerBase
-
withFilterId
- Specified by:
withFilterIdin classtools.jackson.databind.ser.bean.BeanSerializerBase
-
withByNameInclusion
protected tools.jackson.databind.ser.bean.BeanSerializerBase withByNameInclusion(Set<String> toIgnore, Set<String> toInclude) - Specified by:
withByNameInclusionin classtools.jackson.databind.ser.bean.BeanSerializerBase
-
withProperties
protected tools.jackson.databind.ser.bean.BeanSerializerBase withProperties(tools.jackson.databind.ser.BeanPropertyWriter[] properties, tools.jackson.databind.ser.BeanPropertyWriter[] filteredProperties) - Specified by:
withPropertiesin classtools.jackson.databind.ser.bean.BeanSerializerBase
-
asArraySerializer
protected tools.jackson.databind.ser.bean.BeanSerializerBase asArraySerializer()JSON Array output can not be done if unwrapping operation is requested; so implementation will simply return 'this'.- Specified by:
asArraySerializerin classtools.jackson.databind.ser.bean.BeanSerializerBase
-
serialize
public final void serialize(Object bean, tools.jackson.core.JsonGenerator g, tools.jackson.databind.SerializationContext ctxt) throws tools.jackson.core.JacksonException Main serialization method that will delegate actual output to configuredBeanPropertyWriterinstances.- Specified by:
serializein classtools.jackson.databind.ser.bean.BeanSerializerBase- Throws:
tools.jackson.core.JacksonException
-
toString
- Overrides:
toStringin classtools.jackson.databind.ser.bean.BeanSerializerBase
-