Class JacksonXmlConfiguration


  • @ConfigurationProperties("jackson.xml")
    public class JacksonXmlConfiguration
    extends java.lang.Object
    Configuration for the Jackson XML parser and generator.
    Since:
    2.0.1
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator.Feature,​java.lang.Boolean> getGeneratorSettings()  
      java.util.Map<com.fasterxml.jackson.dataformat.xml.deser.FromXmlParser.Feature,​java.lang.Boolean> getParserSettings()  
      boolean isDefaultUseWrapper()  
      void setDefaultUseWrapper​(boolean state)
      Define if a wrapper will be used for indexed (List, array) properties or not by default.
      void setGenerator​(java.util.Map<com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator.Feature,​java.lang.Boolean> generator)
      Sets the generator features to use.
      void setParser​(java.util.Map<com.fasterxml.jackson.dataformat.xml.deser.FromXmlParser.Feature,​java.lang.Boolean> parser)
      Sets the parser features to use.
      • Methods inherited from class java.lang.Object

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

      • JacksonXmlConfiguration

        public JacksonXmlConfiguration()
    • Method Detail

      • getParserSettings

        public java.util.Map<com.fasterxml.jackson.dataformat.xml.deser.FromXmlParser.Feature,​java.lang.Boolean> getParserSettings()
        Returns:
        Settings for the parser
      • setParser

        public void setParser​(java.util.Map<com.fasterxml.jackson.dataformat.xml.deser.FromXmlParser.Feature,​java.lang.Boolean> parser)
        Sets the parser features to use.
        Parameters:
        parser - The parser features
      • getGeneratorSettings

        public java.util.Map<com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator.Feature,​java.lang.Boolean> getGeneratorSettings()
        Returns:
        Settings for the generator
      • setGenerator

        public void setGenerator​(java.util.Map<com.fasterxml.jackson.dataformat.xml.ser.ToXmlGenerator.Feature,​java.lang.Boolean> generator)
        Sets the generator features to use.
        Parameters:
        generator - The generator features
      • isDefaultUseWrapper

        public boolean isDefaultUseWrapper()
        Returns:
        True if default wrapper is used
      • setDefaultUseWrapper

        public void setDefaultUseWrapper​(boolean state)
        Define if a wrapper will be used for indexed (List, array) properties or not by default.
        Parameters:
        state - True if wrapping is used by default