Class YamlFile
java.lang.Object
org.kingdoms.utils.config.adapters.YamlAbstractContainer
org.kingdoms.utils.config.adapters.YamlFile
- All Implemented Interfaces:
YamlContainer
-
Field Summary
Fields inherited from class org.kingdoms.utils.config.adapters.YamlAbstractContainer
config, file, importDeclarations, importer, reloadHandle, resolveAliases -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionload()voidreload()Reloads the YAML from the local file (YamlContainer.getFile()) if it exists.setImportDeclarations(boolean importDeclarations) setImporter(YamlImporter importer) setResolveAliases(boolean resolveAliases) A simpler and less verbose name thanObject.toString()usually the file name or path of the config.toString()Methods inherited from class org.kingdoms.utils.config.adapters.YamlAbstractContainer
accessor, getConfig, getFile, getImportDeclarations, getImporter, reloadHandle, reloadHandle, saveConfigMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.kingdoms.utils.config.adapters.YamlContainer
createFile, importDeclarations, isLoaded
-
Constructor Details
-
YamlFile
-
-
Method Details
-
simpleName
Description copied from interface:YamlContainerA simpler and less verbose name thanObject.toString()usually the file name or path of the config. -
setResolveAliases
- Specified by:
setResolveAliasesin interfaceYamlContainer- Overrides:
setResolveAliasesin classYamlAbstractContainer
-
setImportDeclarations
- Specified by:
setImportDeclarationsin interfaceYamlContainer- Overrides:
setImportDeclarationsin classYamlAbstractContainer
-
setImporter
- Specified by:
setImporterin interfaceYamlContainer- Overrides:
setImporterin classYamlAbstractContainer
-
load
-
reload
public void reload()Description copied from interface:YamlContainerReloads the YAML from the local file (YamlContainer.getFile()) if it exists.- See Also:
-
toString
-