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. |
char |
pathSeparator()
Gets the char that will be used to separate
ConfigurationSection s |
ConfigurationOptions |
pathSeparator(char value)
Sets the char that will be used to separate
ConfigurationSection s |
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(java.lang.String)
will always
return the same value as ConfigurationSection.isSet(java.lang.String)
. The default value is
false.
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(java.lang.String)
will always
return the same value as ConfigurationSection.isSet(java.lang.String)
. The default value is
false.
value
- Whether or not defaults are directly copiedCopyright © 2016. All rights reserved.