public class ConfigurationOptions extends Object
Synchronized with the commit on 13-March-2019.
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_COPY_DEFAULTS |
static char |
DEFAULT_PATH_SEPARATOR |
| Modifier | Constructor and Description |
|---|---|
protected |
ConfigurationOptions(@NotNull Configuration configuration)
Constructs a set of configuration options.
|
| Modifier and Type | Method and Description |
|---|---|
@NotNull Configuration |
getConfiguration()
Gets the configuration that these options 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 configuration
sections. |
@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 configuration
sections. |
public static final char DEFAULT_PATH_SEPARATOR
public static final boolean DEFAULT_COPY_DEFAULTS
protected ConfigurationOptions(@NotNull
@NotNull Configuration configuration)
configuration - The configuration to create the options for.@NotNull public @NotNull Configuration getConfiguration()
public final char getPathSeparator()
char that will be used to separate configuration
sections.
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 configuration sections.@NotNull public @NotNull ConfigurationOptions setPathSeparator(char pathSeparator)
char that will be used to separate configuration
sections.
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 configuration
sections.public final boolean getCopyDefaults()
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.@NotNull public @NotNull ConfigurationOptions setCopyDefaults(boolean copyDefaults)
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.Copyright © 2024 BSPF Systems, LLC. All rights reserved.