public class YamlConfigurationOptions
extends org.simpleyaml.configuration.file.FileConfigurationOptions
YamlConfiguration| Modifier and Type | Class and Description |
|---|---|
static class |
YamlConfigurationOptions.QuoteStyleDefaults
Options to configure the default
QuoteStyle for each type. |
| Modifier | Constructor and Description |
|---|---|
protected |
YamlConfigurationOptions(YamlConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
YamlConfigurationOptions |
charset(Charset charset) |
YamlCommentFormatter |
commentFormatter()
Gets the comment formatter used to format comments.
|
YamlConfigurationOptions |
commentFormatter(YamlCommentFormatter commentFormatter)
Sets the comment formatter to be used to format comments.
|
YamlConfiguration |
configuration() |
YamlConfigurationOptions |
copyDefaults(boolean value) |
YamlConfigurationOptions |
copyHeader(boolean value) |
boolean |
equals(Object o) |
int |
hashCode() |
YamlConfigurationOptions |
header(String header) |
YamlHeaderFormatter |
headerFormatter() |
YamlConfigurationOptions |
headerFormatter(org.simpleyaml.configuration.comments.format.CommentFormatter headerFormatter) |
YamlConfigurationOptions |
indent(int value)
Sets how much spaces should be used to indent each line.
|
int |
indentList()
Gets how much spaces should be used to indent each list element, in addition to the line indent.
|
YamlConfigurationOptions |
indentList(int value)
Sets how much spaces should be used to indent each list element, in addition to the line indent.
|
YamlConfigurationOptions |
pathSeparator(char value) |
YamlConfigurationOptions.QuoteStyleDefaults |
quoteStyleDefaults()
Get the quote style default options.
|
boolean |
useComments()
Indicates if parsing comments is enabled.
|
YamlConfigurationOptions |
useComments(boolean useComments)
Sets if parsing comments is needed.
|
charset, copyHeader, header, isUnicodeprotected YamlConfigurationOptions(YamlConfiguration configuration)
public YamlConfiguration configuration()
configuration in class org.simpleyaml.configuration.file.FileConfigurationOptionspublic YamlConfigurationOptions copyDefaults(boolean value)
copyDefaults in class org.simpleyaml.configuration.file.FileConfigurationOptionspublic YamlConfigurationOptions pathSeparator(char value)
pathSeparator in class org.simpleyaml.configuration.file.FileConfigurationOptionspublic YamlConfigurationOptions charset(Charset charset)
charset in class org.simpleyaml.configuration.file.FileConfigurationOptionspublic YamlConfigurationOptions header(String header)
header in class org.simpleyaml.configuration.file.FileConfigurationOptionspublic YamlConfigurationOptions copyHeader(boolean value)
copyHeader in class org.simpleyaml.configuration.file.FileConfigurationOptionspublic YamlConfigurationOptions headerFormatter(org.simpleyaml.configuration.comments.format.CommentFormatter headerFormatter)
headerFormatter in class org.simpleyaml.configuration.file.FileConfigurationOptionspublic YamlHeaderFormatter headerFormatter()
headerFormatter in class org.simpleyaml.configuration.file.FileConfigurationOptionspublic YamlConfigurationOptions indent(int value)
The minimum value this may be is 2, and the maximum is 9.
indent in class org.simpleyaml.configuration.ConfigurationOptionsvalue - New indentpublic int indentList()
public YamlConfigurationOptions indentList(int value)
The minimum value this may be is 0, and the maximum is the same as the ConfigurationOptions.indent().
value - New list indentationpublic YamlCommentFormatter commentFormatter()
YamlCommentFormat.DEFAULT, which comment prefix is "# ", i.e. a # followed by a space.public YamlConfigurationOptions commentFormatter(YamlCommentFormatter commentFormatter)
commentFormatter - the comment formatter to usepublic YamlConfigurationOptions useComments(boolean useComments)
If you don't use comments in your configuration file keep this disabled to improve parsing performance.
Default is false. WithYamlFile it is updated automatically when you load a file with comments or set new comments programmatically.useComments - if parsing comments is neededpublic boolean useComments()
If you don't use comments in your configuration file keep this disabled to improve parsing performance.
Default is false. WithYamlFile it is updated automatically when you load a file with comments or set new comments programmatically.useComments(boolean)public YamlConfigurationOptions.QuoteStyleDefaults quoteStyleDefaults()
QuoteStyle.PLAIN,
QuoteStyle.SINGLE,
QuoteStyle.DOUBLEpublic boolean equals(Object o)
equals in class org.simpleyaml.configuration.file.FileConfigurationOptionspublic int hashCode()
hashCode in class org.simpleyaml.configuration.file.FileConfigurationOptionsCopyright © 2023. All rights reserved.