Package | Description |
---|---|
org.simpleyaml.configuration.comments.format | |
org.simpleyaml.configuration.file |
Modifier and Type | Method and Description |
---|---|
static YamlCommentFormat |
YamlCommentFormat.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static YamlCommentFormat[] |
YamlCommentFormat.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
YamlFileWrapper |
YamlFileWrapper.comment(String comment,
YamlCommentFormat yamlCommentFormat)
Set a block comment to the section or value selected by path.
|
YamlFileWrapper |
YamlFileWrapper.commentSide(String comment,
YamlCommentFormat yamlCommentFormat)
Set a side comment to the section or value selected by path.
|
String |
YamlFile.getComment(String path,
org.simpleyaml.configuration.comments.CommentType type,
YamlCommentFormat yamlCommentFormat)
Retrieve the comment of the section or value selected by path.
|
String |
YamlFile.getComment(String path,
YamlCommentFormat yamlCommentFormat)
Retrieve the block comment of the section or value selected by path.
|
void |
YamlFile.setComment(String path,
String comment,
org.simpleyaml.configuration.comments.CommentType type,
YamlCommentFormat yamlCommentFormat)
Set a comment to the section or value selected by path.
|
void |
YamlFile.setComment(String path,
String comment,
YamlCommentFormat yamlCommentFormat)
Set a block comment to the section or value selected by path.
|
void |
YamlFile.setCommentFormat(YamlCommentFormat yamlCommentFormat)
Change the comment formatter to one of the defaults provided by
YamlCommentFormat . |
Copyright © 2023. All rights reserved.