static DumpSettingsBuilder |
DumpSettings.builder() |
|
DumpSettingsBuilder |
DumpSettingsBuilder.setAnchorGenerator(AnchorGenerator anchorGenerator) |
Define anchor name generator (by default 'id' + number)
|
DumpSettingsBuilder |
DumpSettingsBuilder.setBestLineBreak(String bestLineBreak) |
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.
|
DumpSettingsBuilder |
DumpSettingsBuilder.setCanonical(boolean canonical) |
Enforce canonical representation
|
DumpSettingsBuilder |
DumpSettingsBuilder.setCustomProperty(SettingKey key,
Object value) |
|
DumpSettingsBuilder |
DumpSettingsBuilder.setDefaultFlowStyle(FlowStyle defaultFlowStyle) |
Define flow style
|
DumpSettingsBuilder |
DumpSettingsBuilder.setDefaultScalarStyle(ScalarStyle defaultScalarStyle) |
Define default scalar style
|
DumpSettingsBuilder |
DumpSettingsBuilder.setExplicitEnd(boolean explicitEnd) |
Add '...' in the end of the document
|
DumpSettingsBuilder |
DumpSettingsBuilder.setExplicitRootTag(Optional<Tag> explicitRootTag) |
Define root Tag or let the tag to be detected automatically
|
DumpSettingsBuilder |
DumpSettingsBuilder.setExplicitStart(boolean explicitStart) |
Add '---' in the beginning of the document
|
DumpSettingsBuilder |
DumpSettingsBuilder.setIndent(int indent) |
Define the amount of the spaces for the indent in the block flow style.
|
DumpSettingsBuilder |
DumpSettingsBuilder.setIndentWithIndicator(boolean indentWithIndicator) |
Set to true to add the indent for sequences to the general indent
|
DumpSettingsBuilder |
DumpSettingsBuilder.setIndicatorIndent(int indicatorIndent) |
It adds the specified indent for sequence indicator in the block flow.
|
DumpSettingsBuilder |
DumpSettingsBuilder.setMaxSimpleKeyLength(int maxSimpleKeyLength) |
Define max key length to use simple key (without '?')
More info https://yaml.org/spec/1.2/spec.html#id2798057
|
DumpSettingsBuilder |
DumpSettingsBuilder.setMultiLineFlow(boolean multiLineFlow) |
Use pretty flow style when every value in the flow context gets a separate line.
|
DumpSettingsBuilder |
DumpSettingsBuilder.setNonPrintableStyle(NonPrintableStyle nonPrintableStyle) |
When String object contains non-printable characters, they are escaped with \\u or \\x notation.
|
DumpSettingsBuilder |
DumpSettingsBuilder.setScalarResolver(ScalarResolver scalarResolver) |
|
DumpSettingsBuilder |
DumpSettingsBuilder.setSplitLines(boolean splitLines) |
Define whether to split long lines
|
DumpSettingsBuilder |
DumpSettingsBuilder.setTagDirective(Map<String,String> tagDirective) |
Add TAG directive (http://yaml.org/spec/1.2/spec.html#id2782090)
|
DumpSettingsBuilder |
DumpSettingsBuilder.setUseUnicodeEncoding(boolean useUnicodeEncoding) |
Specify whether to emit non-ASCII printable Unicode characters
(emit Unicode char or escape sequence starting with '\\u')
The default value is true.
|
DumpSettingsBuilder |
DumpSettingsBuilder.setWidth(int width) |
Set max width for literal scalars.
|
DumpSettingsBuilder |
DumpSettingsBuilder.setYamlDirective(Optional<SpecVersion> yamlDirective) |
Add YAML directive (http://yaml.org/spec/1.2/spec.html#id2782090)
|