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 aHoconConfigurationLoader
.
-
-
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
All Methods Instance Methods Concrete Methods 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 Detail
-
Builder
protected Builder()
-
-
Method Detail
-
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
public @NonNull ConfigRenderOptions getRenderOptions()
Gets theConfigRenderOptions
to be used by the resultant loader.- Returns:
- The render options
-
setParseOptions
public @NonNull HoconConfigurationLoader.Builder setParseOptions(ConfigParseOptions options)
Sets theConfigParseOptions
the resultant loader should use.- Parameters:
options
- The parse options- Returns:
- This builder (for chaining)
-
getParseOptions
public @NonNull ConfigParseOptions getParseOptions()
Gets theConfigRenderOptions
to be used by the resultant loader.- Returns:
- The render options
-
build
public @NonNull HoconConfigurationLoader build()
Description copied from class:AbstractConfigurationLoader.Builder
Builds the loader.- Specified by:
build
in classAbstractConfigurationLoader.Builder<HoconConfigurationLoader.Builder>
- Returns:
- The loader
-
-