Note
in Jackson 2.x this was named ToXmlGenerator.Feature.
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final int | |
| public static final XmlWriteFeature | AUTO_DETECT_XSI_TYPE
Feature that enables automatic conversion of logical property
name |
| public static final XmlWriteFeature | UNWRAP_ROOT_OBJECT_NODE
Feature that determines writing of root values of type |
| public static final XmlWriteFeature | WRITE_NULLS_AS_XSI_NIL
Feature that controls whether serialization of Java |
| public static final XmlWriteFeature | WRITE_STANDALONE_YES_TO_XML_DECLARATION
Feature that controls whether XML declaration should include the standalone attribute when generator is initialized (true) or not (false). |
| public static final XmlWriteFeature | WRITE_XML_1_1
Feature that controls whether output should be done as XML 1.1; if so,
certain aspects may differ from default (1.0) processing: for example,
XML declaration will be automatically added (regardless of setting
|
| public static final XmlWriteFeature | WRITE_XML_DECLARATION
Feature that controls whether XML declaration should be written before when generator is initialized (true) or not (false) |
| public static final XmlWriteFeature | WRITE_XML_SCHEMA_CONFORMING_FLOATS
Feature that determines how floating-point infinity values are serialized. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static int | collectDefaults()
Method that calculates bit set (flags) of all features that are enabled by default. |
| public boolean | enabledByDefault()
Implements tools. Accessor for checking whether this feature is enabled by default. |
| public boolean | enabledIn(int flags)
Implements tools. Convenience method for checking whether feature is enabled in given bitmask. |
| public int | getMask()
Implements tools. Returns bit mask for this feature instance; must be a single bit,
that is of form |
| public static XmlWriteFeature | |
| public static XmlWriteFeature[] |
| _defaultState | back to summary |
|---|---|
| private final boolean _defaultState | |
| _mask | back to summary |
|---|---|
| private final int _mask | |
| AUTO_DETECT_XSI_TYPE | back to summary |
|---|---|
| public static final XmlWriteFeature AUTO_DETECT_XSI_TYPE Feature that enables automatic conversion of logical property
name
Default setting is | |
| UNWRAP_ROOT_OBJECT_NODE | back to summary |
|---|---|
| public static final XmlWriteFeature UNWRAP_ROOT_OBJECT_NODE Feature that determines writing of root values of type
Default setting is | |
| WRITE_NULLS_AS_XSI_NIL | back to summary |
|---|---|
| public static final XmlWriteFeature WRITE_NULLS_AS_XSI_NIL Feature that controls whether serialization of Java
Default setting is | |
| WRITE_STANDALONE_YES_TO_XML_DECLARATION | back to summary |
|---|---|
| public static final XmlWriteFeature WRITE_STANDALONE_YES_TO_XML_DECLARATION Feature that controls whether XML declaration should include the standalone attribute
when generator is initialized (true) or not (false). Only honored when
| |
| WRITE_XML_1_1 | back to summary |
|---|---|
| public static final XmlWriteFeature WRITE_XML_1_1 Feature that controls whether output should be done as XML 1.1; if so,
certain aspects may differ from default (1.0) processing: for example,
XML declaration will be automatically added (regardless of setting
| |
| WRITE_XML_DECLARATION | back to summary |
|---|---|
| public static final XmlWriteFeature WRITE_XML_DECLARATION Feature that controls whether XML declaration should be written before when generator is initialized (true) or not (false) | |
| WRITE_XML_SCHEMA_CONFORMING_FLOATS | back to summary |
|---|---|
| public static final XmlWriteFeature WRITE_XML_SCHEMA_CONFORMING_FLOATS Feature that determines how floating-point infinity values are serialized.
By default,
With this feature enabled, these values are instead serialized as
When deserializing, Jackson always understands both representations,
so there is no corresponding
Default setting is | |
| XmlWriteFeature | back to summary |
|---|---|
| private XmlWriteFeature(boolean defaultState) | |
| collectDefaults | back to summary |
|---|---|
| public static int collectDefaults() Method that calculates bit set (flags) of all features that are enabled by default. | |
| enabledByDefault | back to summary |
|---|---|
| public boolean enabledByDefault() Implements tools. Doc from tools. Accessor for checking whether this feature is enabled by default.
| |
| enabledIn | back to summary |
|---|---|
| public boolean enabledIn(int flags) Implements tools. Doc from tools. Convenience method for checking whether feature is enabled in given bitmask.
| |
| getMask | back to summary |
|---|---|
| public int getMask() Implements tools. Doc from tools. Returns bit mask for this feature instance; must be a single bit,
that is of form
| |
| valueOf | back to summary |
|---|---|
| public static XmlWriteFeature valueOf(String name) | |
| values | back to summary |
|---|---|
| public static XmlWriteFeature[] values() | |