public class ConfigurationOptions extends Object
Configuration
Modifier | Constructor and Description |
---|---|
protected |
ConfigurationOptions(Configuration configuration) |
Modifier and Type | Method and Description |
---|---|
Configuration |
configuration()
Returns the
Configuration that this object is responsible for. |
boolean |
copyDefaults()
Checks if the
Configuration should copy values from its default
Configuration directly. |
ConfigurationOptions |
copyDefaults(boolean value)
Sets if the
Configuration should copy values from its default
Configuration directly. |
boolean |
equals(Object o) |
int |
hashCode() |
int |
indent()
Gets how much spaces should be used to indent each line.
|
ConfigurationOptions |
indent(int value)
Sets how much spaces should be used to indent each line.
|
char |
pathSeparator()
Gets the char that will be used to separate
ConfigurationSection s
This value does not affect how the Configuration is stored,
only in how you access the data. |
ConfigurationOptions |
pathSeparator(char value)
Sets the char that will be used to separate
ConfigurationSection s
This value does not affect how the Configuration is stored,
only in how you access the data. |
protected ConfigurationOptions(Configuration configuration)
public Configuration configuration()
Configuration
that this object is responsible for.public char pathSeparator()
ConfigurationSection
s
This value does not affect how the Configuration
is stored,
only in how you access the data. The default value is '.'.
public ConfigurationOptions pathSeparator(char value)
ConfigurationSection
s
This value does not affect how the Configuration
is stored,
only in how you access the data. The default value is '.'
value
- Path separatorpublic boolean copyDefaults()
Configuration
should copy values from its default
Configuration
directly.
If this is true, all values in the default Configuration will be
directly copied, making it impossible to distinguish between values
that were set and values that are provided by default. As a result,
ConfigurationSection.contains(String)
will always
return the same value as ConfigurationSection.isSet(String)
. The default value is
true.
public ConfigurationOptions copyDefaults(boolean value)
Configuration
should copy values from its default
Configuration
directly.
If this is true, all values in the default Configuration will be
directly copied, making it impossible to distinguish between values
that were set and values that are provided by default. As a result,
ConfigurationSection.contains(String)
will always
return the same value as ConfigurationSection.isSet(String)
. The default value is
true.
value
- Whether or not defaults are directly copiedpublic int indent()
public ConfigurationOptions indent(int value)
value
- New indentCopyright © 2023. All rights reserved.