public class ConfigurationOptions extends Object
Configuration.
Synchronized with the commit on 13-March-2019.
| Modifier | Constructor and Description |
|---|---|
protected |
ConfigurationOptions(@NotNull Configuration configuration)
Constructs a new set of
ConfigurationOptions. |
| Modifier and Type | Method and Description |
|---|---|
@NotNull Configuration |
configuration()
Deprecated.
This method exists for backwards compatibility. Please use
getConfiguration() instead. |
boolean |
copyDefaults()
Deprecated.
This method exists for backwards compatibility. Please use
getCopyDefaults() instead. |
@NotNull ConfigurationOptions |
copyDefaults(boolean copyDefaults)
Deprecated.
This method exists for backwards compatibility. Please use
setCopyDefaults(boolean)
instead. |
@NotNull Configuration |
getConfiguration()
Gets the
Configuration that this ConfigurationOptions
controls. |
boolean |
getCopyDefaults()
Checks if the
Configuration should copy values from its default
Configuration directly. |
char |
getPathSeparator()
Gets the
char that will be used to separate
ConfigurationSections. |
char |
pathSeparator()
Deprecated.
This method exists for backwards compatibility. Please use
getPathSeparator() instead. |
@NotNull ConfigurationOptions |
pathSeparator(char pathSeparator)
Deprecated.
This method exists for backwards compatibility. Please use
setPathSeparator(char) instead. |
@NotNull ConfigurationOptions |
setCopyDefaults(boolean copyDefaults)
Sets if the
Configuration should copy values from its default
Configuration directly. |
@NotNull ConfigurationOptions |
setPathSeparator(char pathSeparator)
Sets the
char that will be used to separate
ConfigurationSections. |
protected ConfigurationOptions(@NotNull
@NotNull Configuration configuration)
ConfigurationOptions.configuration - The Configuration to create the
ConfigurationOptions for.@NotNull public @NotNull Configuration getConfiguration()
Configuration that this ConfigurationOptions
controls.Configuration that this ConfigurationOptions
controls.@Deprecated @NotNull public @NotNull Configuration configuration()
getConfiguration() instead.
Please use getConfiguration() instead; it
provides the same functionality.
Configuration that this ConfigurationOptions
controls.getConfiguration()public final char getPathSeparator()
char that will be used to separate
ConfigurationSections.
This value does not affect how the Configuration is stored,
only in how you access the data.
The default value is ..
char used to separate
ConfigurationSections.@Deprecated public final char pathSeparator()
getPathSeparator() instead.
Please use getPathSeparator() instead; it
provides the same functionality.
char used to separate
ConfigurationSections.getPathSeparator()@NotNull public @NotNull ConfigurationOptions setPathSeparator(char pathSeparator)
char that will be used to separate
ConfigurationSections.
This value does not affect how the Configuration is stored,
only in how you access the data.
The default value is ..
pathSeparator - The char used to separate
ConfigurationSections.ConfigurationOptions, for chaining.@Deprecated @NotNull public @NotNull ConfigurationOptions pathSeparator(char pathSeparator)
setPathSeparator(char) instead.
Please use setPathSeparator(char) instead;
it provides the same functionality.
pathSeparator - The char used to separate
ConfigurationSections.ConfigurationOptions, for chaining.setPathSeparator(char)public final boolean getCopyDefaults()
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 false.
true if the default values should be copied,
false otherwise.@Deprecated public final boolean copyDefaults()
getCopyDefaults() instead.
Please use getCopyDefaults() instead; it
provides the same functionality.
true if the default values should be copied,
false otherwise.getCopyDefaults()@NotNull public @NotNull ConfigurationOptions setCopyDefaults(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 false.
copyDefaults - true if the default values should be copied,
false otherwise.ConfigurationOptions, for chaining.@Deprecated @NotNull public @NotNull ConfigurationOptions copyDefaults(boolean copyDefaults)
setCopyDefaults(boolean)
instead.
Please use setCopyDefaults(boolean) instead;
it provides the same functionality.
copyDefaults - true if the default values should be copied,
false otherwise.ConfigurationOptions, for chaining.setCopyDefaults(boolean)Copyright © 2022 BSPF Systems, LLC. All rights reserved.