Class XmlBeanSerializerModifier

java.lang.Object
tools.jackson.databind.ser.ValueSerializerModifier
tools.jackson.dataformat.xml.ser.XmlBeanSerializerModifier
All Implemented Interfaces:
Serializable

public class XmlBeanSerializerModifier extends tools.jackson.databind.ser.ValueSerializerModifier implements Serializable
We need a ValueSerializerModifier to replace default BeanSerializer with XML-specific one; mostly to ensure that attribute properties are output before element properties.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<tools.jackson.databind.ser.BeanPropertyWriter>
    changeProperties(tools.jackson.databind.SerializationConfig config, tools.jackson.databind.BeanDescription.Supplier beanDescRef, List<tools.jackson.databind.ser.BeanPropertyWriter> beanProperties)
    First thing to do is to find annotations regarding XML serialization, and wrap collection serializers.
    tools.jackson.databind.ValueSerializer<?>
    modifySerializer(tools.jackson.databind.SerializationConfig config, tools.jackson.databind.BeanDescription.Supplier beanDescRefc, tools.jackson.databind.ValueSerializer<?> serializer)
     

    Methods inherited from class tools.jackson.databind.ser.ValueSerializerModifier

    modifyArraySerializer, modifyCollectionLikeSerializer, modifyCollectionSerializer, modifyEnumSerializer, modifyKeySerializer, modifyMapLikeSerializer, modifyMapSerializer, orderProperties, updateBuilder

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • XmlBeanSerializerModifier

      public XmlBeanSerializerModifier()
  • Method Details

    • changeProperties

      public List<tools.jackson.databind.ser.BeanPropertyWriter> changeProperties(tools.jackson.databind.SerializationConfig config, tools.jackson.databind.BeanDescription.Supplier beanDescRef, List<tools.jackson.databind.ser.BeanPropertyWriter> beanProperties)
      First thing to do is to find annotations regarding XML serialization, and wrap collection serializers.
      Overrides:
      changeProperties in class tools.jackson.databind.ser.ValueSerializerModifier
    • modifySerializer

      public tools.jackson.databind.ValueSerializer<?> modifySerializer(tools.jackson.databind.SerializationConfig config, tools.jackson.databind.BeanDescription.Supplier beanDescRefc, tools.jackson.databind.ValueSerializer<?> serializer)
      Overrides:
      modifySerializer in class tools.jackson.databind.ser.ValueSerializerModifier