Class XmlSerdeConfiguration

java.lang.Object
io.micronaut.serde.xml.XmlSerdeConfiguration

@Internal @ConfigurationProperties("micronaut.serde.format.xml") public final class XmlSerdeConfiguration extends Object
XML-specific configuration.
Since:
3.2
Author:
Mousrij Hamza
  • Constructor Details

    • XmlSerdeConfiguration

      public XmlSerdeConfiguration()
  • Method Details

    • isRepairingNamespaces

      public boolean isRepairingNamespaces()
      Returns whether namespace repairing is enabled.
      Returns:
      Whether namespace repairing is enabled for XML output
    • setRepairingNamespaces

      public void setRepairingNamespaces(boolean repairingNamespaces)
      Sets whether namespace repairing is enabled.
      Parameters:
      repairingNamespaces - Whether namespace repairing is enabled for XML output
    • isAutomaticEmptyElements

      public boolean isAutomaticEmptyElements()
      Returns whether the XML writer may use self-closing empty elements.
      Returns:
      Whether the XML writer may use self-closing empty elements
    • setAutomaticEmptyElements

      public void setAutomaticEmptyElements(boolean automaticEmptyElements)
      Sets whether the XML writer may use self-closing empty elements.
      Parameters:
      automaticEmptyElements - Whether the XML writer may use self-closing empty elements
    • getXmlReadFeatures

      public Map<XmlSerdeConfiguration.XmlReadFeature, Boolean> getXmlReadFeatures()
      Returns the XML read feature map.
      Returns:
      The XML read feature map
    • setXmlReadFeatures

      public void setXmlReadFeatures(@Nullable Map<XmlSerdeConfiguration.XmlReadFeature, Boolean> xmlReadFeatures)
      Sets the XML read feature map.
      Parameters:
      xmlReadFeatures - The XML read feature map
    • isReadFeatureEnabled

      public boolean isReadFeatureEnabled(XmlSerdeConfiguration.XmlReadFeature feature)
      Returns whether the given XML read feature is enabled.
      Parameters:
      feature - The XML read feature
      Returns:
      Whether the feature is enabled