public abstract class YamlImplementationCommentable extends Object implements YamlImplementation, org.simpleyaml.configuration.comments.Commentable
Modifier and Type | Field and Description |
---|---|
protected YamlConfigurationOptions |
options
Configuration options for loading and dumping Yaml.
|
protected YamlCommentMapper |
yamlCommentMapper
A comment mapper to add comments to sections or values
|
Constructor and Description |
---|
YamlImplementationCommentable() |
Modifier and Type | Method and Description |
---|---|
void |
configure(YamlConfigurationOptions options)
Apply the configuration options to this implementation.
|
String |
getComment(String path,
org.simpleyaml.configuration.comments.CommentType type) |
YamlCommentMapper |
getCommentMapper()
Get the comment mapper to get or set comments.
|
void |
setComment(String path,
String comment,
org.simpleyaml.configuration.comments.CommentType type) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected YamlCommentMapper yamlCommentMapper
protected YamlConfigurationOptions options
public void setComment(String path, String comment, org.simpleyaml.configuration.comments.CommentType type)
setComment
in interface org.simpleyaml.configuration.comments.Commentable
public String getComment(String path, org.simpleyaml.configuration.comments.CommentType type)
getComment
in interface org.simpleyaml.configuration.comments.Commentable
public YamlCommentMapper getCommentMapper()
public void configure(YamlConfigurationOptions options)
YamlImplementation
configure
in interface YamlImplementation
options
- yaml optionsCopyright © 2023. All rights reserved.