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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumToggleable read-side features for the XML object mapper. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the XML read feature map.booleanReturns whether the XML writer may use self-closing empty elements.booleanReturns whether the given XML read feature is enabled.booleanReturns whether namespace repairing is enabled.voidsetAutomaticEmptyElements(boolean automaticEmptyElements) Sets whether the XML writer may use self-closing empty elements.voidsetRepairingNamespaces(boolean repairingNamespaces) Sets whether namespace repairing is enabled.voidsetXmlReadFeatures(@Nullable Map<XmlSerdeConfiguration.XmlReadFeature, Boolean> xmlReadFeatures) Sets the XML read feature map.
-
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
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
Returns whether the given XML read feature is enabled.- Parameters:
feature- The XML read feature- Returns:
- Whether the feature is enabled
-