Class YamlResource
java.lang.Object
org.kingdoms.utils.config.adapters.YamlAbstractContainer
org.kingdoms.utils.config.adapters.YamlWithDefaults
org.kingdoms.utils.config.adapters.YamlResource
- All Implemented Interfaces:
YamlContainer
-
Field Summary
FieldsFields inherited from class org.kingdoms.utils.config.adapters.YamlWithDefaults
defaults, validatorFields inherited from class org.kingdoms.utils.config.adapters.YamlAbstractContainer
config, file, importDeclarations, importer, reloadHandle, resolveAliases -
Constructor Summary
ConstructorsConstructorDescriptionYamlResource(File file) YamlResource(File file, String resourcePath) YamlResource(org.bukkit.plugin.Plugin plugin, File file, String resourcePath) -
Method Summary
Modifier and TypeMethodDescriptionprotected InputStreamprotected Stringprotected InputStreamload()setImporter(YamlImporter importer) 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.YamlWithDefaults
createEmptyConfigIfNull, createFile, defaultExists, getDefaults, getValidator, inputStreamOf, isDefault, loadDefaults, loadSchema, reload, saveDefaultConfig, setSchema, update, validateMethods inherited from class org.kingdoms.utils.config.adapters.YamlAbstractContainer
accessor, getConfig, getFile, getImportDeclarations, getImporter, reloadHandle, reloadHandle, saveConfig, setImportDeclarations, setResolveAliasesMethods 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
isLoaded
-
Field Details
-
plugin
protected final org.bukkit.plugin.Plugin plugin -
resourcePath
-
-
Constructor Details
-
YamlResource
-
YamlResource
-
YamlResource
-
-
Method Details
-
simpleName
Description copied from interface:YamlContainerA simpler and less verbose name thanObject.toString()usually the file name or path of the config.- Specified by:
simpleNamein interfaceYamlContainer- Overrides:
simpleNamein classYamlWithDefaults
-
getResourcePath
-
getDefaultsInputStream
- Specified by:
getDefaultsInputStreamin classYamlWithDefaults
-
setImporter
- Specified by:
setImporterin interfaceYamlContainer- Overrides:
setImporterin classYamlAbstractContainer
-
importDeclarations
-
getDefaultsPath
- Specified by:
getDefaultsPathin classYamlWithDefaults
-
load
- Specified by:
loadin interfaceYamlContainer- Overrides:
loadin classYamlWithDefaults
-
getSchemaInputStream
- Specified by:
getSchemaInputStreamin classYamlWithDefaults
-
toString
-