public class SnakeYamlNodeContainerImpl extends Object implements SnakeYamlNodeContainer
SnakeYamlNodeContainer.| Constructor and Description |
|---|
SnakeYamlNodeContainerImpl(@NotNull List<String> comments) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull org.yaml.snakeyaml.nodes.Node |
convertToNode(@NotNull SnakeYamlNodeBuilder nodeBuilder)
Converts this container and its sub-containers, recursively, to a SnakeYAML node that represents
all SnakeYAML nodes held by the containers.
|
protected org.yaml.snakeyaml.nodes.Node |
createRootNode(List<org.yaml.snakeyaml.nodes.NodeTuple> entryNodes) |
protected List<String> |
getComments() |
@NotNull SnakeYamlNodeContainer |
getOrCreateChildContainer(@NotNull String name,
@NotNull Supplier<List<String>> commentsSupplier)
Returns the existing container for the given name, or creates one and registers the comments as returned by the
supplier.
|
@NotNull org.yaml.snakeyaml.nodes.Node |
getRootValueNode()
Returns the SnakeYAML node at the root path (empty string).
|
protected Map<String,Object> |
getValues() |
void |
putNode(@NotNull String name,
@NotNull org.yaml.snakeyaml.nodes.Node node)
Saves the given node under the given name (= path element).
|
@NotNull public @NotNull SnakeYamlNodeContainer getOrCreateChildContainer(@NotNull @NotNull String name, @NotNull @NotNull Supplier<List<String>> commentsSupplier)
SnakeYamlNodeContainergetOrCreateChildContainer in interface SnakeYamlNodeContainername - the path name to getcommentsSupplier - supplier with comments to set if the container has to be created@NotNull public @NotNull org.yaml.snakeyaml.nodes.Node getRootValueNode()
SnakeYamlNodeContainergetRootValueNode in interface SnakeYamlNodeContainerpublic void putNode(@NotNull
@NotNull String name,
@NotNull
@NotNull org.yaml.snakeyaml.nodes.Node node)
SnakeYamlNodeContainerputNode in interface SnakeYamlNodeContainername - the name to save the value undernode - the node to save@NotNull
public @NotNull org.yaml.snakeyaml.nodes.Node convertToNode(@NotNull
@NotNull SnakeYamlNodeBuilder nodeBuilder)
SnakeYamlNodeContainerconvertToNode in interface SnakeYamlNodeContainernodeBuilder - node builder to create nodes withprotected org.yaml.snakeyaml.nodes.Node createRootNode(List<org.yaml.snakeyaml.nodes.NodeTuple> entryNodes)
Copyright © 2016–2023 The AuthMe Team. All rights reserved.