- java.lang.Object
-
- io.github.mmm.base.config.ConfigMap
-
- io.github.mmm.marshall.MarshallingConfig
-
-
Field Summary
Fields Modifier and Type Field Description static MarshallingConfig
DEFAULTS
Immutable instance ofMarshallingConfig
with the default values.static ConfigOption<String>
INDENTATION
ConfigOption
for the indentation used byStructuredWriter
to format the output.static ConfigOption<Boolean>
WRITE_NULL_VALUES
ConfigOption
to configure ifStructuredWriter.writeValueAsNull()
should actually writenull
values (if configured toBoolean.TRUE
) or omitnull
values (if configured toBoolean.FALSE
).
-
Constructor Summary
Constructors Constructor Description MarshallingConfig()
The constructor.MarshallingConfig(Map<String,Object> map)
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> MarshallingConfig
with(ConfigOption<T> option, T value)
-
-
-
Field Detail
-
INDENTATION
public static final ConfigOption<String> INDENTATION
ConfigOption
for the indentation used byStructuredWriter
to format the output.
-
WRITE_NULL_VALUES
public static final ConfigOption<Boolean> WRITE_NULL_VALUES
ConfigOption
to configure ifStructuredWriter.writeValueAsNull()
should actually writenull
values (if configured toBoolean.TRUE
) or omitnull
values (if configured toBoolean.FALSE
).
-
DEFAULTS
public static final MarshallingConfig DEFAULTS
Immutable instance ofMarshallingConfig
with the default values.
-
-
Method Detail
-
with
public <T> MarshallingConfig with(ConfigOption<T> option, T value)
- Type Parameters:
T
- type of the value.- Parameters:
option
- theConfigOption
to set.value
- the value for the givenConfigOption
.- Returns:
- a new
MarshallingConfig
with the givenConfigOption
set to the givenvalue
or thisMarshallingConfig
if the givenvalue
is already configured.
-
-