Class JacksonConfigurationLoader.Builder
java.lang.Object
org.spongepowered.configurate.loader.AbstractConfigurationLoader.Builder<JacksonConfigurationLoader.Builder,JacksonConfigurationLoader>
 
org.spongepowered.configurate.jackson.JacksonConfigurationLoader.Builder
- Enclosing class:
- JacksonConfigurationLoader
public static final class JacksonConfigurationLoader.Builder
extends AbstractConfigurationLoader.Builder<JacksonConfigurationLoader.Builder,JacksonConfigurationLoader> 
Builds a 
JacksonConfigurationLoader.
 This builder supports the following options:
- Since:
- 4.0.0
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final net.kyori.option.Option<FieldValueSeparatorStyle>Set the field-value separator style to be used when emitting json.static final net.kyori.option.Option<Integer>Set the indentation to when emitting json.static final net.kyori.option.OptionSchemaA schema of options available to configure the Jackson loader.Fields inherited from class org.spongepowered.configurate.loader.AbstractConfigurationLoader.BuilderdefaultOptions, HEADER_MODE, headerMode, sink, source
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds the loader.Gets theJsonFactoryused to configure the implementation.Gets the field value separator style to be used by the built loader.Sets the field value separator style the resultant loader should use.intindent()Gets the level of indentation to be used by the resultant loader.indent(int indent) Sets the level of indentation the resultant loader should use.protected net.kyori.option.OptionSchemaGet the schema of available options that can be set on this loader.Methods inherited from class org.spongepowered.configurate.loader.AbstractConfigurationLoader.BuilderbuildAndLoadString, buildAndSaveString, defaultOptions, defaultOptions, defaultOptions, editOptions, file, headerMode, headerMode, optionState, optionState, optionStateBuilder, path, sink, sink, source, source, url
- 
Field Details- 
SCHEMAA schema of options available to configure the Jackson loader.- Since:
- 4.2.0
 
- 
INDENTSet the indentation to when emitting json.- Since:
- 4.2.0
- See Also:
 
- 
FIELD_VALUE_SEPARATORSet the field-value separator style to be used when emitting json.- Since:
- 4.2.0
- See Also:
 
 
- 
- 
Method Details- 
optionSchemaDescription copied from class:AbstractConfigurationLoader.BuilderGet the schema of available options that can be set on this loader.This schema should inherit from AbstractConfigurationLoader.Builder.UNSAFE_SCHEMA.- Overrides:
- optionSchemain class- AbstractConfigurationLoader.Builder<JacksonConfigurationLoader.Builder,- JacksonConfigurationLoader> 
- Returns:
- the option schema
 
- 
factoryBuilderGets theJsonFactoryused to configure the implementation.- Returns:
- the json factory
- Since:
- 4.0.0
 
- 
indentSets the level of indentation the resultant loader should use.- Parameters:
- indent- the indent level
- Returns:
- this builder (for chaining)
- Since:
- 4.0.0
 
- 
indentGets the level of indentation to be used by the resultant loader.- Returns:
- the indent level
- Since:
- 4.0.0
 
- 
fieldValueSeparatorStyleSets the field value separator style the resultant loader should use.- Parameters:
- style- the style
- Returns:
- this builder (for chaining)
- Since:
- 4.0.0
 
- 
fieldValueSeparatorStyleGets the field value separator style to be used by the built loader.- Returns:
- the style
- Since:
- 4.0.0
 
- 
buildDescription copied from class:AbstractConfigurationLoader.BuilderBuilds the loader.- Specified by:
- buildin class- AbstractConfigurationLoader.Builder<JacksonConfigurationLoader.Builder,- JacksonConfigurationLoader> 
- Returns:
- a new loader
 
 
-