Package ninja.leaping.configurate.hocon
Class HoconConfigurationLoader.Builder
java.lang.Object
ninja.leaping.configurate.loader.AbstractConfigurationLoader.Builder<HoconConfigurationLoader.Builder>
ninja.leaping.configurate.hocon.HoconConfigurationLoader.Builder
- Enclosing class:
- HoconConfigurationLoader
public static class HoconConfigurationLoader.Builder extends AbstractConfigurationLoader.Builder<HoconConfigurationLoader.Builder>
Builds a
HoconConfigurationLoader
.-
Field Summary
Fields inherited from class ninja.leaping.configurate.loader.AbstractConfigurationLoader.Builder
defaultOptions, headerMode, sink, source
-
Constructor Summary
Constructors Modifier Constructor Description protected
Builder()
-
Method Summary
Modifier and Type Method Description @NonNull HoconConfigurationLoader
build()
Builds the loader.@NonNull ConfigParseOptions
getParseOptions()
Gets theConfigRenderOptions
to be used by the resultant loader.@NonNull ConfigRenderOptions
getRenderOptions()
Gets theConfigRenderOptions
to be used by the resultant loader.@NonNull HoconConfigurationLoader.Builder
setParseOptions(ConfigParseOptions options)
Sets theConfigParseOptions
the resultant loader should use.@NonNull HoconConfigurationLoader.Builder
setRenderOptions(@NonNull ConfigRenderOptions options)
Sets theConfigRenderOptions
the resultant loader should use.Methods inherited from class ninja.leaping.configurate.loader.AbstractConfigurationLoader.Builder
getDefaultOptions, getHeaderMode, getSink, getSource, preservesHeader, setDefaultOptions, setDefaultOptions, setFile, setHeaderMode, setPath, setPreservesHeader, setSink, setSource, setURL
-
Constructor Details
-
Builder
protected Builder()
-
-
Method Details
-
setRenderOptions
public @NonNull HoconConfigurationLoader.Builder setRenderOptions(@NonNull ConfigRenderOptions options)Sets theConfigRenderOptions
the resultant loader should use.- Parameters:
options
- The render options- Returns:
- This builder (for chaining)
-
getRenderOptions
Gets theConfigRenderOptions
to be used by the resultant loader.- Returns:
- The render options
-
setParseOptions
Sets theConfigParseOptions
the resultant loader should use.- Parameters:
options
- The parse options- Returns:
- This builder (for chaining)
-
getParseOptions
Gets theConfigRenderOptions
to be used by the resultant loader.- Returns:
- The render options
-
build
Description copied from class:AbstractConfigurationLoader.Builder
Builds the loader.- Specified by:
build
in classAbstractConfigurationLoader.Builder<HoconConfigurationLoader.Builder>
- Returns:
- The loader
-