public static class YAMLConfigurationLoader.Builder extends AbstractConfigurationLoader.Builder<YAMLConfigurationLoader.Builder>
defaultOptions, headerMode, sink, source| Modifier | Constructor and Description |
|---|---|
protected |
Builder() |
| Modifier and Type | Method and Description |
|---|---|
YAMLConfigurationLoader |
build() |
YAMLConfigurationLoader.Builder |
setFlowStyle(org.yaml.snakeyaml.DumperOptions.FlowStyle style)
Sets the flow style for this configuration
Flow: the compact, json-like representation.
Example:
{value: [list, of, elements], another: value}
Block: expanded, traditional YAMLExample:
value:
- list
- of
- elements
another: value
|
YAMLConfigurationLoader.Builder |
setIndent(int indent) |
getDefaultOptions, getHeaderMode, getSink, getSource, preservesHeader, setDefaultOptions, setFile, setHeaderMode, setPath, setPreservesHeader, setSink, setSource, setURLpublic YAMLConfigurationLoader.Builder setIndent(int indent)
public YAMLConfigurationLoader.Builder setFlowStyle(org.yaml.snakeyaml.DumperOptions.FlowStyle style)
{value: [list, of, elements], another: value}
Block: expanded, traditional YAML
value:
- list
- of
- elements
another: value
style - the appropritae flow style to usepublic YAMLConfigurationLoader build()
build in class AbstractConfigurationLoader.Builder<YAMLConfigurationLoader.Builder>Copyright © 2014–2017. All rights reserved.