|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bukkit.configuration.ConfigurationOptions
public class ConfigurationOptions
Various settings for controlling the input and output of a Configuration
Constructor Summary | |
---|---|
protected |
ConfigurationOptions(Configuration configuration)
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ConfigurationOptions(Configuration configuration)
Method Detail |
---|
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 separator
public 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 copied
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |