public interface YamlMapping extends YamlNode
| Modifier and Type | Method and Description |
|---|---|
default String |
indent(int indentation)
Indent this YamlMapping.
|
Set<YamlNode> |
keys()
Return the keys' set of this mapping.
Pay attention: the keys are ordered. |
String |
string(String key)
Get the String associated with the given key.
|
String |
string(YamlNode key)
Get the String associated with the given key.
|
YamlNode |
value(YamlNode key)
Get the YamlNode mapped to the specified key.
|
YamlMapping |
yamlMapping(String key)
Get the Yaml mapping associated with the given key.
|
YamlMapping |
yamlMapping(YamlNode key)
Get the Yaml mapping associated with the given key.
|
YamlSequence |
yamlSequence(String key)
Get the Yaml sequence associated with the given key.
|
YamlSequence |
yamlSequence(YamlNode key)
Get the Yaml sequence associated with the given key.
|
compareToYamlMapping yamlMapping(String key)
key - String keyYamlMapping yamlMapping(YamlNode key)
key - Yaml node (mapping or sequence) keyYamlSequence yamlSequence(String key)
key - String keyYamlSequence yamlSequence(YamlNode key)
key - Yaml node (mapping or sequence) keyString string(String key)
key - String keyString string(YamlNode key)
key - Yaml node (mapping or sequence) keyYamlNode value(YamlNode key)
key - YamlNode key. Could be a simple scalar,
a YamlMapping or a YamlSequence.Set<YamlNode> keys()
default String indent(int indentation)
indent in interface YamlNodeindentation - Indentation to start with. Usually, it's 0, since we
don't want to have spaces at the beginning. But in the case of nested
YamlNodes, this value may be greater than 0.Copyright © 2020. All rights reserved.