| Modifier and Type | Interface and Description |
|---|---|
interface |
YamlMapping
A Yaml mapping.
|
interface |
YamlSequence
A Yaml sequence.
|
| Modifier and Type | Class and Description |
|---|---|
class |
StrictYamlMapping
Decorator for a
YamlMapping which throws
YamlNodenotFoundException, instead of returning null,
if a given key doesn't exist in the mapping, or if it points
to a different type of node than the demanded one.It is based on the fail-fast and null-is-bad idea see here: http://www.yegor256.com/2014/05/13/why-null-is-bad.html |
class |
StrictYamlSequence
Decorator for a
YamlSequence which throws YamlNodeNotFoundException
if any of the methods of the decorated YamlSequence returns null
(if the given index points to a YamlNode that is not a YamlMapping,
for instance). |
| Modifier and Type | Method and Description |
|---|---|
YamlNode |
YamlMapping.value(YamlNode key)
Get the YamlNode mapped to the specified key.
|
YamlNode |
StrictYamlMapping.value(YamlNode key) |
| Modifier and Type | Method and Description |
|---|---|
default Collection<YamlNode> |
YamlNode.children()
Deprecated.
Please use method values() instead. It does
exactly the same thing, it's just a change for a more suitable
name. This method will be removed in one of the future releases.
|
Iterator<YamlNode> |
StrictYamlSequence.iterator() |
Iterator<YamlNode> |
YamlSequence.iterator()
Returns this YamlSequence's children Iterator.
It is equivalent to YamlSequence.values().iterator(). |
Set<YamlNode> |
YamlMapping.keys()
Return the keys' set of this mapping.
Pay attention: the keys are ordered. |
Set<YamlNode> |
StrictYamlMapping.keys() |
Collection<YamlNode> |
StrictYamlSequence.values() |
Collection<YamlNode> |
YamlNode.values()
Fetch the values.
|
Collection<YamlNode> |
StrictYamlMapping.values() |
| Modifier and Type | Method and Description |
|---|---|
YamlMappingBuilder |
YamlMappingBuilder.add(String key,
YamlNode value)
Add a pair to the mapping.
|
YamlSequenceBuilder |
YamlSequenceBuilder.add(YamlNode node)
Add a value to the sequence.
|
YamlMappingBuilder |
YamlMappingBuilder.add(YamlNode key,
String value)
Add a pair to the mapping.
|
YamlMappingBuilder |
YamlMappingBuilder.add(YamlNode key,
YamlNode value)
Add a pair to the mapping.
|
String |
YamlMapping.string(YamlNode key)
Get the String associated with the given key.
|
String |
StrictYamlMapping.string(YamlNode key) |
YamlNode |
YamlMapping.value(YamlNode key)
Get the YamlNode mapped to the specified key.
|
YamlNode |
StrictYamlMapping.value(YamlNode key) |
YamlMapping |
YamlMapping.yamlMapping(YamlNode key)
Get the Yaml mapping associated with the given key.
|
YamlMapping |
StrictYamlMapping.yamlMapping(YamlNode key) |
YamlSequence |
YamlMapping.yamlSequence(YamlNode key)
Get the Yaml sequence associated with the given key.
|
YamlSequence |
StrictYamlMapping.yamlSequence(YamlNode key) |
Copyright © 2020. All rights reserved.