Class ConfigurationOptions
- Direct Known Subclasses:
MemoryConfigurationOptions
Configuration
-
Constructor Summary
ModifierConstructorDescriptionprotected
ConfigurationOptions
(@NotNull Configuration configuration) -
Method Summary
Modifier and TypeMethodDescriptionReturns theConfiguration
that this object is responsible for.boolean
Checks if theConfiguration
should copy values from its defaultConfiguration
directly.copyDefaults
(boolean value) Sets if theConfiguration
should copy values from its defaultConfiguration
directly.char
Gets the char that will be used to separateConfigurationSection
spathSeparator
(char value) Sets the char that will be used to separateConfigurationSection
s
-
Constructor Details
-
ConfigurationOptions
-
-
Method Details
-
configuration
Returns theConfiguration
that this object is responsible for.- Returns:
- Parent configuration
-
pathSeparator
public char pathSeparator()Gets the char that will be used to separateConfigurationSection
sThis value does not affect how the
Configuration
is stored, only in how you access the data. The default value is '.'.- Returns:
- Path separator
-
pathSeparator
Sets the char that will be used to separateConfigurationSection
sThis value does not affect how the
Configuration
is stored, only in how you access the data. The default value is '.'.- Parameters:
value
- Path separator- Returns:
- This object, for chaining
-
copyDefaults
public boolean copyDefaults()Checks if theConfiguration
should copy values from its defaultConfiguration
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 asConfigurationSection.isSet(java.lang.String)
. The default value is false.- Returns:
- Whether or not defaults are directly copied
-
copyDefaults
Sets if theConfiguration
should copy values from its defaultConfiguration
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 asConfigurationSection.isSet(java.lang.String)
. The default value is false.- Parameters:
value
- Whether or not defaults are directly copied- Returns:
- This object, for chaining
-