Class YamlHandlerStandalone
java.lang.Object
com.kamikazejam.kamicommon.yaml.AbstractYamlHandler<YamlConfigurationStandalone>
com.kamikazejam.kamicommon.yaml.standalone.YamlHandlerStandalone
-
Field Summary
Fields inherited from class com.kamikazejam.kamicommon.yaml.AbstractYamlHandler
abstractConfig, config, defaultsStream, source -
Constructor Summary
ConstructorsConstructorDescriptionYamlHandlerStandalone(@NotNull AbstractConfig<?> abstractConfig, @NotNull LoggerService logger, @NotNull ConfigSource source, @Nullable Supplier<InputStream> defaultsStream) -
Method Summary
Modifier and TypeMethodDescriptionvoid@NotNull YamlConfigurationStandalonenewConfig(@NotNull org.yaml.snakeyaml.nodes.MappingNode node, @NotNull ConfigSource source) @NotNull MemorySectionMethods<?>newMemorySection(@NotNull org.yaml.snakeyaml.nodes.MappingNode node) voidMethods inherited from class com.kamikazejam.kamicommon.yaml.AbstractYamlHandler
createNewMappingNode, loadConfig, save
-
Constructor Details
-
YamlHandlerStandalone
public YamlHandlerStandalone(@NotNull @NotNull AbstractConfig<?> abstractConfig, @NotNull @NotNull LoggerService logger, @NotNull @NotNull ConfigSource source, @Nullable @Nullable Supplier<InputStream> defaultsStream) - Parameters:
abstractConfig- The parent config instance who holds this handler.logger- The logger service for warnings and errors.source- The source of the configuration file (yaml content).defaultsStream- An optional stream (of a YAML config) to read default values from, can be null.
-
-
Method Details
-
error
- Specified by:
errorin classAbstractYamlHandler<YamlConfigurationStandalone>
-
warn
- Specified by:
warnin classAbstractYamlHandler<YamlConfigurationStandalone>
-
newConfig
@NotNull public @NotNull YamlConfigurationStandalone newConfig(@NotNull @NotNull org.yaml.snakeyaml.nodes.MappingNode node, @NotNull @NotNull ConfigSource source) - Specified by:
newConfigin classAbstractYamlHandler<YamlConfigurationStandalone>
-
newMemorySection
@NotNull public @NotNull MemorySectionMethods<?> newMemorySection(@NotNull @NotNull org.yaml.snakeyaml.nodes.MappingNode node) - Specified by:
newMemorySectionin classAbstractYamlHandler<YamlConfigurationStandalone>
-