Class YamlConfigurationStandalone
java.lang.Object
com.kamikazejam.kamicommon.yaml.AbstractMemorySection<T>
com.kamikazejam.kamicommon.yaml.base.MemorySectionMethods<MemorySectionStandalone>
com.kamikazejam.kamicommon.yaml.standalone.MemorySectionStandalone
com.kamikazejam.kamicommon.yaml.standalone.YamlConfigurationStandalone
- All Implemented Interfaces:
AbstractYamlConfiguration
,ConfigurationMethods<ConfigurationSectionStandalone>
,ConfigurationSectionStandalone
public class YamlConfigurationStandalone
extends MemorySectionStandalone
implements AbstractYamlConfiguration
-
Constructor Summary
ConstructorsConstructorDescriptionYamlConfigurationStandalone
(org.yaml.snakeyaml.nodes.MappingNode node, File configFile) -
Method Summary
Methods inherited from class com.kamikazejam.kamicommon.yaml.standalone.MemorySectionStandalone
getConfigurationSection, getConfigurationSequence, getCurrentPath
Methods inherited from class com.kamikazejam.kamicommon.yaml.base.MemorySectionMethods
addDefault, contains, get, get, getBigDecimal, getBigDecimal, getBoolean, getBoolean, getByte, getByte, getByteList, getByteList, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getIntegerList, getIntegerList, getKeys, getList, getList, getLong, getLong, getShort, getShort, getString, getString, getStringList, getStringList, isBoolean, isByte, isConfigurationSection, isDouble, isEmpty, isFloat, isInt, isList, isLong, isNumber, isSet, isShort, isString, putBoolean, putByte, putDouble, putFloat, putInt, putInteger, putLong, putShort, putString, save, save, setBoolean, setByte, setDouble, setFloat, setInt, setInteger, setLong, setShort, setString
Methods inherited from class com.kamikazejam.kamicommon.yaml.AbstractMemorySection
contains, getKeyNode, getKeys, getNode, getNodeTuple, getNodeValue, getObject, internalPut, isPrimitiveWrapper, parseBigDecimal, put, set, setChanged
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.kamikazejam.kamicommon.yaml.AbstractYamlConfiguration
contains, getKeyNode, getKeys, getNodeTuple, internalPut, isChanged, setChanged
Methods inherited from interface com.kamikazejam.kamicommon.yaml.base.ConfigurationMethods
addDefault, contains, get, get, getBigDecimal, getBigDecimal, getBoolean, getBoolean, getByte, getByte, getByteList, getByteList, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getIntegerList, getIntegerList, getKeys, getList, getList, getLong, getLong, getShort, getShort, getString, getString, getStringList, getStringList, isBoolean, isByte, isChanged, isConfigurationSection, isDouble, isEmpty, isFloat, isInt, isList, isLong, isNumber, isSet, isShort, isString, put, putBoolean, putByte, putDouble, putFloat, putInt, putInteger, putLong, putShort, putString, set, setBoolean, setByte, setChanged, setDouble, setFloat, setInt, setInteger, setLong, setShort, setString
-
Constructor Details
-
YamlConfigurationStandalone
-
-
Method Details
-
save
public boolean save()Saves the config to the file- Specified by:
save
in interfaceAbstractYamlConfiguration
- Returns:
- true IFF the config was saved successfully (can be skipped if the config is not changed)
-
save
public boolean save(boolean force) Saves the config to the file- Specified by:
save
in interfaceAbstractYamlConfiguration
- Parameters:
force
- If the config should be saved even if no changes were made- Returns:
- IFF the config was saved (can be skipped if no changes were made and force is false)
-