- java.lang.Object
-
- io.github.mmm.base.config.ConfigMap
-
- io.github.mmm.marshall.MarshallingConfig
-
-
Field Summary
Fields Modifier and Type Field Description static MarshallingConfigDEFAULTSImmutable instance ofMarshallingConfigwith the default values.static ConfigOption<String>INDENTATIONConfigOptionfor the indentation used byStructuredWriterto format the output.static ConfigOption<Boolean>WRITE_NULL_VALUESConfigOptionto configure ifStructuredWriter.writeValueAsNull()should actually writenullvalues (if configured toBoolean.TRUE) or omitnullvalues (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> MarshallingConfigwith(ConfigOption<T> option, T value)
-
-
-
Field Detail
-
INDENTATION
public static final ConfigOption<String> INDENTATION
ConfigOptionfor the indentation used byStructuredWriterto format the output.
-
WRITE_NULL_VALUES
public static final ConfigOption<Boolean> WRITE_NULL_VALUES
ConfigOptionto configure ifStructuredWriter.writeValueAsNull()should actually writenullvalues (if configured toBoolean.TRUE) or omitnullvalues (if configured toBoolean.FALSE).
-
DEFAULTS
public static final MarshallingConfig DEFAULTS
Immutable instance ofMarshallingConfigwith the default values.
-
-
Method Detail
-
with
public <T> MarshallingConfig with(ConfigOption<T> option, T value)
- Type Parameters:
T- type of the value.- Parameters:
option- theConfigOptionto set.value- the value for the givenConfigOption.- Returns:
- a new
MarshallingConfigwith the givenConfigOptionset to the givenvalueor thisMarshallingConfigif the givenvalueis already configured.
-
-