| Package | Description |
|---|---|
| org.snakeyaml.engine.v2.api |
| Modifier and Type | Method and Description |
|---|---|
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.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)
Define
ScalarResolver or use JSON resolver by default |
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)
Define whether Unicode char or escape sequence starting with '\\u'
|
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#id2781553)
|
Copyright © 2018–2019. All rights reserved.