| Package | Description |
|---|---|
| net.pterodactylus.util.config |
API for handling application configurations.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AttributeNotFoundException
Exception that will be thrown when a non-existing attribute is requested.
|
class |
ValueFormatException
Exception that signals a conversion error if a specified format for a value
is requested.
|
| Modifier and Type | Method and Description |
|---|---|
Boolean |
ExtendedConfigurationBackend.getBooleanValue(String attribute)
Returns the value of the given attribute from the backend.
|
Double |
ExtendedConfigurationBackend.getDoubleValue(String attribute)
Returns the value of the given attribute from the backend.
|
Integer |
ExtendedConfigurationBackend.getIntegerValue(String attribute)
Returns the value of the given attribute from the backend.
|
Long |
ExtendedConfigurationBackend.getLongValue(String attribute)
Returns the value of the given attribute from the backend.
|
Integer |
IntegerValue.getValue()
Returns the wrapped value.
|
T |
Value.getValue()
Returns the wrapped value.
|
String |
StringValue.getValue()
Returns the wrapped value.
|
Boolean |
BooleanValue.getValue()
Returns the wrapped value.
|
Double |
DoubleValue.getValue()
Returns the wrapped value.
|
T |
ReadOnlyValue.getValue()
Returns the wrapped value.
|
Long |
LongValue.getValue()
Returns the wrapped value.
|
String |
CachingConfigurationBackend.getValue(String attribute)
Returns the value of the given attribute from the backend.
|
String |
XMLConfigurationBackend.getValue(String attribute)
Returns the value of the given attribute from the backend.
|
String |
ConfigurationBackend.getValue(String attribute)
Returns the value of the given attribute from the backend.
|
String |
MapConfigurationBackend.getValue(String attribute)
Returns the value of the given attribute from the backend.
|
Value<T> |
Parser.parse(String attribute)
Parses an abstract object from a
Configuration. |
void |
CachingConfigurationBackend.putValue(String attribute,
String value)
Sets the value of the given attribute within the backend.
|
void |
XMLConfigurationBackend.putValue(String attribute,
String value)
Sets the value of the given attribute within the backend.
|
void |
ConfigurationBackend.putValue(String attribute,
String value)
Sets the value of the given attribute within the backend.
|
void |
MapConfigurationBackend.putValue(String attribute,
String value)
Sets the value of the given attribute within the backend.
|
void |
CachingConfigurationBackend.save()
Saves the configuration.
|
void |
XMLConfigurationBackend.save()
Saves the configuration.
|
void |
ConfigurationBackend.save()
Saves the configuration.
|
void |
Configuration.save()
Saves the configuration.
|
void |
MapConfigurationBackend.save()
Saves the configuration.
|
void |
MapConfigurationBackend.saveValues()
Saves the configuration to the configuration file, if it is not
null. |
void |
ExtendedConfigurationBackend.setBooleanValue(String attribute,
Boolean value)
Sets the value of the given attribute within the backend.
|
void |
ExtendedConfigurationBackend.setDoubleValue(String attribute,
Double value)
Sets the value of the given attribute within the backend.
|
void |
ExtendedConfigurationBackend.setIntegerValue(String attribute,
Integer value)
Sets the value of the given attribute within the backend.
|
void |
ExtendedConfigurationBackend.setLongValue(String attribute,
Long value)
Sets the value of the given attribute within the backend.
|
void |
BooleanValue.setValue(Boolean newValue)
Sets a new wrapped value.
|
void |
DoubleValue.setValue(Double newValue)
Sets a new wrapped value.
|
void |
IntegerValue.setValue(Integer newValue)
Sets a new wrapped value.
|
void |
LongValue.setValue(Long newValue)
Sets a new wrapped value.
|
void |
StringValue.setValue(String newValue)
Sets a new wrapped value.
|
void |
Value.setValue(T newValue)
Sets a new wrapped value.
|
void |
ReadOnlyValue.setValue(T newValue)
Sets a new wrapped value.
|
| Constructor and Description |
|---|
MapConfigurationBackend(File configurationFile)
Creates a new configuration backend that loads and stores its
configuration in the given file.
|
MapConfigurationBackend(File configurationFile,
boolean ignoreMissing)
Creates a new configuration backend from the given file.
|
MapConfigurationBackend(File configurationFile,
boolean ignoreMissing,
Map<String,String> values)
Creates a new configuration backend from the given file that also
contains the given values.
|
MapConfigurationBackend(File configurationFile,
Map<String,String> values)
Creates a new configuration backend from the given file that also
contains the given values.
|
XMLConfigurationBackend(File configurationFile)
Creates a new backend backed by the given file.
|
XMLConfigurationBackend(File configurationFile,
boolean create)
Creates a new backend backed by the given file.
|
Copyright © 2026. All rights reserved.