Interface YamlContainer
- All Known Implementing Classes:
YamlAbstractContainer,YamlFile,YamlFiledDefaults,YamlHierarchyDefaults,YamlResource,YamlWithDefaults
public interface YamlContainer
-
Method Summary
Modifier and TypeMethodDescriptionaccessor()default void@Nullable FilegetFile()booleandefault @NotNull YamlContainerdefault booleanisLoaded()load()static @NotNull org.snakeyaml.nodes.MappingNodeparse(YamlParseContext context) static @NotNull org.snakeyaml.nodes.NodeparseNode(YamlParseContext context) static org.snakeyaml.validation.NodeValidatorparseValidator(InputStream is, String label) static org.snakeyaml.validation.NodeValidatorparseValidator(String label, String resourcePath) voidreload()Reloads the YAML from the local file (getFile()) if it exists.voidDoesn't reload the YAML nodes themselves, but triggers additional reloading mechanics that are needed whenreload()is called.voidsetImportDeclarations(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.
-
Method Details
-
getConfig
ConfigSection getConfig() -
accessor
ConfigAccessor accessor() -
saveConfig
void saveConfig() -
setResolveAliases
-
setImportDeclarations
-
getImportDeclarations
boolean getImportDeclarations() -
isLoaded
default boolean isLoaded() -
getFile
-
simpleName
String simpleName()A simpler and less verbose name thanObject.toString()usually the file name or path of the config. -
createFile
default void createFile() -
setImporter
-
getImporter
YamlImporter getImporter() -
importDeclarations
-
parse
-
parseNode
-
parseValidator
-
parseValidator
-
load
YamlContainer load() -
reload
void reload()Reloads the YAML from the local file (getFile()) if it exists.- See Also:
-
reloadHandle
void reloadHandle()Doesn't reload the YAML nodes themselves, but triggers additional reloading mechanics that are needed whenreload()is called. Mostly used forConfigWatcheror other manual reloading mechanics like/k reload.
-