Uses of Interface
io.github.ttno1.configvalidation.ConfigWrapper
Packages that use ConfigWrapper
Package
Description
-
Uses of ConfigWrapper in io.github.ttno1.configvalidation
Subclasses with type arguments of type ConfigWrapper in io.github.ttno1.configvalidationModifier and TypeClassDescriptionclass
ConfigSpec<U>
A Configuration Specification that specifies various ConfigNodes that must be present in a configuration.
This class is used to validate a config with many nodes.
Specifies list of nodes and their corresponding locations (paths) in the configuration.
When a ConfigSpec is validated against a ConfigWrapper, each of its contained nodes are validated as well.Methods in io.github.ttno1.configvalidation that return ConfigWrapperMethods in io.github.ttno1.configvalidation that return types with arguments of type ConfigWrapperModifier and TypeMethodDescriptionstatic ConfigSpec
<ConfigWrapper> Cfg.newSpec()
static ConfigList
<ConfigWrapper, ConfigWrapper, List<ConfigWrapper>> Cfg.List.ofConfigSpec()
Creates a ConfigList for a list of config subsection values with no filters (the filters always pass).static ConfigList
<ConfigWrapper, ConfigWrapper, List<ConfigWrapper>> Cfg.List.ofConfigSpec()
Creates a ConfigList for a list of config subsection values with no filters (the filters always pass).static ConfigList
<ConfigWrapper, ConfigWrapper, List<ConfigWrapper>> Cfg.List.ofConfigSpec()
Creates a ConfigList for a list of config subsection values with no filters (the filters always pass).static <W,
X> ConfigList <ConfigWrapper, X, W> Cfg.List.ofConfigSpec
(ConfigFilter<List<X>, W> filter, ConfigSpec<X> configSpec) Creates a ConfigList for a list of config subsection values with the specified filter and with the specified ConfigSpec that is validated against every element.Methods in io.github.ttno1.configvalidation with parameters of type ConfigWrapperModifier and TypeMethodDescriptionConfigList.validate
(ConfigWrapper configWrapper, String path) ConfigNode.validate
(ConfigWrapper configWrapper, String path) Validates this node against the suppliedConfigWrapper
at the specified path.
Checks for existence of the node, valid data type, and filter passage.ConfigSpec.validate
(ConfigWrapper configWrapper) Convenience method that callsConfigNode.validate(ConfigWrapper, String)
with an empty string as the path argument.
Useful when thisConfigSpec
is at the root of the config.Method parameters in io.github.ttno1.configvalidation with type arguments of type ConfigWrapperModifier and TypeMethodDescriptionstatic <W> ConfigSpec
<W> Cfg.newSpec
(ConfigFilter<ConfigWrapper, W> filter) -
Uses of ConfigWrapper in io.github.ttno1.configvalidation.defaultwrappers
Classes in io.github.ttno1.configvalidation.defaultwrappers that implement ConfigWrapperModifier and TypeClassDescriptionclass
A ConfigWrapper that getsObject
values from some source for a given path.class
A ConfigWrapper that wraps an Apache Commons Config Configuration.class
A ConfigWrapper that gets its values from a map of strings to objects.
This class assumes that all config subsections are contained within the main map as sub-maps.class
A ConfigWrapper that wraps a map produced from any of the Yaml load() methods.
This class is identical to MapConfigWrapper.Methods in io.github.ttno1.configvalidation.defaultwrappers that return ConfigWrapperModifier and TypeMethodDescriptionAbstractConfigWrapper.getConfigSubsection
(String path) CommonsConfigWrapper.getConfigSubsection
(String path) MapConfigWrapper.getConfigSubsection
(String path)