Dump Settings Builder
Builder pattern implementation for DumpSettings
Functions
Create immutable DumpSettings
Define anchor name generator (by default 'id' + number)
If the YAML is created for another platform (for instance on Windows to be consumed under Linux) than this setting is used to define the line ending. The platform line end is used by default.
Enforce canonical representation
Custom property is the way to give some runtime parameters to be used during dumping
Define flow style
Define default scalar style
Set to true to add comments from Nodes to
Add '...' in the end of the document
Define root Tag or let the tag to be detected automatically
Add '---' in the beginning of the document
Define the amount of the spaces for the indent in the block flow style. Default is 2.
Set to true to add the indent for sequences to the general indent
Adds the specified indent for sequence indicator in the block flow. Default is 0.
Define max key length to use simple key (without ?
). More info
Use pretty flow style when every value in the flow context gets a separate line.
When String object contains non-printable characters, they are escaped with \\u or \\x notation. Sometimes it is better to transform this data to binary (with the !!binary tag). String objects with printable data are non affected by this setting.
Provide either recommended or custom schema instead of default org.snakeyaml.engine.v2.schema.JsonSchema. These 3 are available org.snakeyaml.engine.v2.schema.FailsafeSchema, org.snakeyaml.engine.v2.schema.JsonSchema, org.snakeyaml.engine.v2.schema.CoreSchema.
Define whether to split long lines
Add TAG directive
Specify whether to emit non-ASCII printable Unicode characters (emit Unicode char or escape sequence starting with '\\u') The default value is true. When set to false then printable non-ASCII characters (Cyrillic, Chinese etc) will be not printed but escaped (to support ASCII terminals)
Set max width for literal scalars. When the scalar representation takes more then the preferred with the scalar will be split into a few lines. The default is 80.
Add YAML directive