Class YamlConfiguration
- java.lang.Object
-
- net.alpenblock.bungeeperms.config.MemorySection
-
- net.alpenblock.bungeeperms.config.MemoryConfiguration
-
- net.alpenblock.bungeeperms.config.FileConfiguration
-
- net.alpenblock.bungeeperms.config.YamlConfiguration
-
- All Implemented Interfaces:
Configuration
,ConfigurationSection
public class YamlConfiguration extends FileConfiguration
An implementation ofConfiguration
which saves all files in Yaml. Note that this implementation is not synchronized.
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
BLANK_CONFIG
protected static java.lang.String
COMMENT_PREFIX
-
Fields inherited from class net.alpenblock.bungeeperms.config.MemoryConfiguration
defaults, options
-
Fields inherited from class net.alpenblock.bungeeperms.config.MemorySection
map
-
-
Constructor Summary
Constructors Constructor Description YamlConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
buildHeader()
protected void
convertMapsToSections(java.util.Map<?,?> input, ConfigurationSection section)
static YamlConfiguration
loadConfiguration(java.io.File file)
static YamlConfiguration
loadConfiguration(java.io.InputStream stream)
void
loadFromString(java.lang.String contents)
YamlConfigurationOptions
options()
protected java.lang.String
parseHeader(java.lang.String input)
java.lang.String
saveToString()
-
Methods inherited from class net.alpenblock.bungeeperms.config.FileConfiguration
load, load, load, save, save
-
Methods inherited from class net.alpenblock.bungeeperms.config.MemoryConfiguration
addDefault, addDefaults, addDefaults, getDefaults, getParent, setDefaults
-
Methods inherited from class net.alpenblock.bungeeperms.config.MemorySection
contains, createPath, createPath, createSection, createSection, get, get, getBoolean, getBoolean, getBooleanList, getByteList, getCharacterList, getConfigurationSection, getCurrentPath, getDefault, getDefaultSection, getDouble, getDouble, getDoubleList, getFloatList, getInt, getInt, getIntegerList, getKeys, getList, getList, getLong, getLong, getLongList, getMapList, getName, getRoot, getShortList, getString, getString, getStringList, getValues, isBoolean, isConfigurationSection, isDouble, isInt, isList, isLong, isPrimitiveWrapper, isSet, isString, mapChildrenKeys, mapChildrenValues, set, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.alpenblock.bungeeperms.config.ConfigurationSection
contains, createSection, createSection, get, get, getBoolean, getBoolean, getBooleanList, getByteList, getCharacterList, getConfigurationSection, getCurrentPath, getDefaultSection, getDouble, getDouble, getDoubleList, getFloatList, getInt, getInt, getIntegerList, getKeys, getList, getList, getLong, getLong, getLongList, getMapList, getName, getRoot, getShortList, getString, getString, getStringList, getValues, isBoolean, isConfigurationSection, isDouble, isInt, isList, isLong, isSet, isString, set
-
-
-
-
Field Detail
-
COMMENT_PREFIX
protected static final java.lang.String COMMENT_PREFIX
- See Also:
- Constant Field Values
-
BLANK_CONFIG
protected static final java.lang.String BLANK_CONFIG
- See Also:
- Constant Field Values
-
-
Method Detail
-
saveToString
public java.lang.String saveToString()
- Specified by:
saveToString
in classFileConfiguration
-
loadFromString
public void loadFromString(java.lang.String contents) throws InvalidConfigurationException
- Specified by:
loadFromString
in classFileConfiguration
- Throws:
InvalidConfigurationException
-
convertMapsToSections
protected void convertMapsToSections(java.util.Map<?,?> input, ConfigurationSection section)
-
parseHeader
protected java.lang.String parseHeader(java.lang.String input)
-
buildHeader
protected java.lang.String buildHeader()
- Specified by:
buildHeader
in classFileConfiguration
-
options
public YamlConfigurationOptions options()
- Specified by:
options
in interfaceConfiguration
- Overrides:
options
in classFileConfiguration
-
loadConfiguration
public static YamlConfiguration loadConfiguration(java.io.File file)
-
loadConfiguration
public static YamlConfiguration loadConfiguration(java.io.InputStream stream)
-
-