Interface YamlImporter
public interface YamlImporter
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidcollectFinalNodes(String moduleName, org.snakeyaml.nodes.Node node, String nodePath, Map<String, String> finalNodes) Final nodes areMappingNodethat prevents other parents from copying any of their mapping node's entries to the final child config, only leaving this specific module to copy its entries.static voidcollectInfo(YamlContainer container, Map<String, org.snakeyaml.common.Anchor> anchors, Map<String, String> finalNodes, YamlImporter importer, org.kingdoms.utils.config.adapters.YamlImportDeclaration details) org.kingdoms.utils.config.adapters.YamlModulegetDeclaration(org.kingdoms.utils.config.adapters.YamlImportDeclaration details) static voidimportTo(YamlContainer container, Map<String, String> finalNodes, YamlImporter importer, org.kingdoms.utils.config.adapters.YamlImportDeclaration details)
-
Method Details
-
getDeclaration
org.kingdoms.utils.config.adapters.YamlModule getDeclaration(org.kingdoms.utils.config.adapters.YamlImportDeclaration details) -
collectInfo
static void collectInfo(YamlContainer container, Map<String, org.snakeyaml.common.Anchor> anchors, Map<String, String> finalNodes, YamlImporter importer, org.kingdoms.utils.config.adapters.YamlImportDeclaration details) -
collectFinalNodes
static void collectFinalNodes(String moduleName, org.snakeyaml.nodes.Node node, String nodePath, Map<String, String> finalNodes) Final nodes areMappingNodethat prevents other parents from copying any of their mapping node's entries to the final child config, only leaving this specific module to copy its entries.The innermost module (closest parent to the final config) will get the final lock if multiple modules mark a node as final.
-
importTo
static void importTo(YamlContainer container, Map<String, String> finalNodes, YamlImporter importer, org.kingdoms.utils.config.adapters.YamlImportDeclaration details)
-