Modifier and Type | Interface and Description |
---|---|
interface |
Configuration
Represents a source of configurable options and settings
|
Modifier and Type | Class and Description |
---|---|
class |
MemoryConfiguration
This is a
Configuration implementation that does not save or load
from any source, and stores all values in memory only. |
class |
MemorySection
A type of
ConfigurationSection that is stored in memory. |
Modifier and Type | Method and Description |
---|---|
ConfigurationSection |
MemorySection.createSection(String path) |
ConfigurationSection |
ConfigurationSection.createSection(String path)
Creates an empty
ConfigurationSection at the specified path. |
ConfigurationSection |
MemorySection.createSection(String path,
Map<?,?> map) |
ConfigurationSection |
ConfigurationSection.createSection(String path,
Map<?,?> map)
Creates a
ConfigurationSection at the specified path, with
specified values. |
ConfigurationSection |
MemorySection.getConfigurationSection(String path) |
ConfigurationSection |
ConfigurationSection.getConfigurationSection(String path)
Gets the requested ConfigurationSection by path.
|
ConfigurationSection |
MemorySection.getDefaultSection() |
ConfigurationSection |
ConfigurationSection.getDefaultSection()
|
ConfigurationSection |
MemoryConfiguration.getParent() |
ConfigurationSection |
MemorySection.getParent() |
ConfigurationSection |
ConfigurationSection.getParent()
Gets the parent
ConfigurationSection that directly contains
this ConfigurationSection . |
Modifier and Type | Method and Description |
---|---|
static String |
MemorySection.createPath(ConfigurationSection section,
String key)
Creates a full path to the given
ConfigurationSection from its
root Configuration . |
static String |
MemorySection.createPath(ConfigurationSection section,
String key,
ConfigurationSection relativeTo)
Creates a relative path to the given
ConfigurationSection from
the given relative section. |
protected void |
MemorySection.mapChildrenKeys(Set<String> output,
ConfigurationSection section,
boolean deep) |
protected void |
MemorySection.mapChildrenValues(Map<String,Object> output,
ConfigurationSection section,
boolean deep) |
Constructor and Description |
---|
MemorySection(ConfigurationSection parent,
String path)
Creates an empty MemorySection with the specified parent and path.
|
Modifier and Type | Class and Description |
---|---|
class |
FileConfiguration
This is a base class for all File based implementations of
Configuration |
class |
YamlConfiguration
An implementation of
Configuration which saves the configuration in Yaml. |
class |
YamlFile
An extension of
YamlConfiguration which saves all data in Yaml to a configuration file
with the added possibility to save and manage comments. |
Modifier and Type | Method and Description |
---|---|
void |
SimpleYamlImplementation.dump(Writer writer,
ConfigurationSection section) |
void |
SimpleYamlImplementation.load(Reader reader,
ConfigurationSection section) |
void |
SimpleYamlImplementation.load(SupplierIO.Reader readerSupplier,
ConfigurationSection section) |
Modifier and Type | Method and Description |
---|---|
default String |
YamlImplementation.dump(ConfigurationSection section)
Dump section values to a Yaml string.
|
void |
YamlImplementation.dump(Writer writer,
ConfigurationSection section)
Dump section values to Yaml.
|
void |
YamlImplementation.load(Reader reader,
ConfigurationSection section)
Load Yaml to a configuration section.
|
default void |
YamlImplementation.load(String contents,
ConfigurationSection section)
Load Yaml to a configuration section.
|
default void |
YamlImplementation.load(SupplierIO.Reader readerSupplier,
ConfigurationSection section)
Load Yaml to a configuration section.
|
Modifier and Type | Method and Description |
---|---|
void |
SnakeYamlImplementation.dump(Writer writer,
ConfigurationSection section) |
protected void |
SnakeYamlImplementation.dumpYaml(Writer writer,
ConfigurationSection section) |
protected boolean |
SnakeYamlImplementation.hasContent(Writer writer,
ConfigurationSection section) |
void |
SnakeYamlImplementation.load(Reader reader,
ConfigurationSection section) |
protected org.yaml.snakeyaml.nodes.MappingNode |
SnakeYamlImplementation.sectionToMapping(ConfigurationSection section,
KeyTree.Node node,
SnakeYamlCommentMapper yamlCommentMapper) |
protected void |
SnakeYamlImplementation.trackMapping(org.yaml.snakeyaml.nodes.MappingNode node,
ConfigurationSection section,
KeyTree.Node parent,
SnakeYamlCommentMapper yamlCommentMapper) |
Modifier and Type | Method and Description |
---|---|
static void |
SectionUtils.convertMapsToSections(Map<?,?> values,
ConfigurationSection section) |
Copyright © 2023. All rights reserved.