public interface SnakeYamlNodeBuilder
| Modifier and Type | Method and Description |
|---|---|
@NotNull Stream<org.yaml.snakeyaml.comments.CommentLine> |
createCommentLines(@NotNull String comment)
Creates SnakeYAML
CommentLine objects to represent the given comment. |
@NotNull org.yaml.snakeyaml.nodes.Node |
createKeyNode(@NotNull String key)
Creates a SnakeYAML string node for a key value (e.g.
|
@NotNull org.yaml.snakeyaml.nodes.Node |
createYamlNode(@NotNull Object value,
@NotNull String path,
@NotNull ConfigurationData configurationData,
int numberOfNewLines)
Creates a SnakeYAML node representing the given value.
|
void |
transferComments(@NotNull org.yaml.snakeyaml.nodes.Node valueNode,
@NotNull org.yaml.snakeyaml.nodes.Node keyNode)
Transfers the comments from the value node to the key node.
|
@NotNull
@NotNull org.yaml.snakeyaml.nodes.Node createYamlNode(@NotNull
@NotNull Object value,
@NotNull
@NotNull String path,
@NotNull
@NotNull ConfigurationData configurationData,
int numberOfNewLines)
value - the value to create the node for (export value of a property)path - the path of the property whose value is exportedconfigurationData - configuration data (for the retrieval of comments)numberOfNewLines - number of new lines before the property, to add as new lines to the node@NotNull
@NotNull org.yaml.snakeyaml.nodes.Node createKeyNode(@NotNull
@NotNull String key)
key - the key to wrap into a node@NotNull @NotNull Stream<org.yaml.snakeyaml.comments.CommentLine> createCommentLines(@NotNull @NotNull String comment)
CommentLine objects to represent the given comment. If the comment is equal to the
new line character \n, one comment line representing a blank line is returned. Otherwise, a comment line
is created for each line (the text is split by \n).comment - the comment to represent as CommentLinevoid transferComments(@NotNull
@NotNull org.yaml.snakeyaml.nodes.Node valueNode,
@NotNull
@NotNull org.yaml.snakeyaml.nodes.Node keyNode)
valueNode - the value node to remove the comments fromkeyNode - the key node to set the comments toCopyright © 2016–2023 The AuthMe Team. All rights reserved.