Uses of Class
org.snakeyaml.engine.v2.api.DumpSettingsBuilder
Packages that use DumpSettingsBuilder
-
Uses of DumpSettingsBuilder in org.snakeyaml.engine.v2.api
Methods in org.snakeyaml.engine.v2.api that return DumpSettingsBuilderModifier and TypeMethodDescriptionstatic DumpSettingsBuilder
DumpSettings.builder()
DumpSettingsBuilder.setAnchorGenerator
(AnchorGenerator anchorGenerator) Define anchor name generator (by default 'id' + number)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.setCanonical
(boolean canonical) Enforce canonical representationDumpSettingsBuilder.setCustomProperty
(SettingKey key, Object value) Custom property is the way to give some runtime parameters to be used during dumpingDumpSettingsBuilder.setDefaultFlowStyle
(FlowStyle defaultFlowStyle) Define flow styleDumpSettingsBuilder.setDefaultScalarStyle
(ScalarStyle defaultScalarStyle) Define default scalar styleDumpSettingsBuilder.setDumpComments
(boolean dumpComments) Set to true to add comments from Nodes toDumpSettingsBuilder.setExplicitEnd
(boolean explicitEnd) Add '...' in the end of the documentDumpSettingsBuilder.setExplicitRootTag
(Optional<Tag> explicitRootTag) Define rootTag
or let the tag to be detected automaticallyDumpSettingsBuilder.setExplicitStart
(boolean explicitStart) Add '---' in the beginning of the documentDumpSettingsBuilder.setIndent
(int indent) Define the amount of the spaces for the indent in the block flow style.DumpSettingsBuilder.setIndentWithIndicator
(boolean indentWithIndicator) Set to true to add the indent for sequences to the general indentDumpSettingsBuilder.setIndicatorIndent
(int indicatorIndent) It adds the specified indent for sequence indicator in the block flow.DumpSettingsBuilder.setMaxSimpleKeyLength
(int maxSimpleKeyLength) Define max key length to use simple key (without '?').DumpSettingsBuilder.setMultiLineFlow
(boolean multiLineFlow) Use pretty flow style when every value in the flow context gets a separate line.DumpSettingsBuilder.setNonPrintableStyle
(NonPrintableStyle nonPrintableStyle) When String object contains non-printable characters, they are escaped with \\u or \\x notation.Provide either recommended or custom schema instead of defaultJsonSchema
.DumpSettingsBuilder.setSplitLines
(boolean splitLines) Define whether to split long linesDumpSettingsBuilder.setTagDirective
(Map<String, String> tagDirective) Add TAG directiveDumpSettingsBuilder.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.setWidth
(int width) Set max width for literal scalars.DumpSettingsBuilder.setYamlDirective
(Optional<SpecVersion> yamlDirective) Add YAML directive