Top Description Fields Constructors Methods
org.snakeyaml.engine.v2.api

public final Class LoadSettings

extends Object
Class Inheritance
Imports
java.util.List, .Map, .Optional, .Set, java.util.function.Function, .IntFunction, .UnaryOperator, org.snakeyaml.engine.v2.common.SpecVersion, org.snakeyaml.engine.v2.env.EnvConfig, org.snakeyaml.engine.v2.nodes.Tag, org.snakeyaml.engine.v2.schema.Schema

Immutable configuration for loading. Description for all the fields can be found in the builder

Field Summary

Modifier and TypeField and Description
private final boolean
private final boolean
private final Integer
private final int
private final Map<SettingKey, Object>
private final IntFunction<List<Object>>
private final IntFunction<Map<Object, Object>>
private final IntFunction<Set<Object>>
private final Optional<EnvConfig>
private final String
private final int
private final boolean
private final Schema
private final Map<Tag, ConstructNode>
private final boolean
private final UnaryOperator<SpecVersion>

Constructor Summary

AccessConstructor and Description
pack-priv
LoadSettings(String label, Map<Tag, ConstructNode> tagConstructors, IntFunction<List<Object>> defaultList, IntFunction<Set<Object>> defaultSet, IntFunction<Map<Object, Object>> defaultMap, UnaryOperator<SpecVersion> versionFunction, Integer bufferSize, boolean allowDuplicateKeys, boolean allowRecursiveKeys, int maxAliasesForCollections, boolean useMarks, Map<SettingKey, Object> customProperties, Optional<EnvConfig> envConfig, boolean parseComments, int codePointLimit, Schema schema)

Method Summary

Modifier and TypeMethod and Description
public static LoadSettingsBuilder

Returns:

the builder to fill the configuration options
builder
()

Create the builder

public boolean
public boolean
public Integer
public int
public Object
public IntFunction<List<Object>>
public IntFunction<Map<Object, Object>>
public IntFunction<Set<Object>>
public Optional<EnvConfig>
public String
public int
public boolean
public Schema
public Map<Tag, ConstructNode>
public boolean
public Function<SpecVersion, SpecVersion>
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

allowDuplicateKeysback to summary
private final boolean allowDuplicateKeys
allowRecursiveKeysback to summary
private final boolean allowRecursiveKeys
bufferSizeback to summary
private final Integer bufferSize
codePointLimitback to summary
private final int codePointLimit
customPropertiesback to summary
private final Map<SettingKey, Object> customProperties
defaultListback to summary
private final IntFunction<List<Object>> defaultList
defaultMapback to summary
private final IntFunction<Map<Object, Object>> defaultMap
defaultSetback to summary
private final IntFunction<Set<Object>> defaultSet
envConfigback to summary
private final Optional<EnvConfig> envConfig
labelback to summary
private final String label
maxAliasesForCollectionsback to summary
private final int maxAliasesForCollections
parseCommentsback to summary
private final boolean parseComments
schemaback to summary
private final Schema schema
tagConstructorsback to summary
private final Map<Tag, ConstructNode> tagConstructors
useMarksback to summary
private final boolean useMarks
versionFunctionback to summary
private final UnaryOperator<SpecVersion> versionFunction

Constructor Detail

LoadSettingsback to summary
pack-priv LoadSettings(String label, Map<Tag, ConstructNode> tagConstructors, IntFunction<List<Object>> defaultList, IntFunction<Set<Object>> defaultSet, IntFunction<Map<Object, Object>> defaultMap, UnaryOperator<SpecVersion> versionFunction, Integer bufferSize, boolean allowDuplicateKeys, boolean allowRecursiveKeys, int maxAliasesForCollections, boolean useMarks, Map<SettingKey, Object> customProperties, Optional<EnvConfig> envConfig, boolean parseComments, int codePointLimit, Schema schema)

Method Detail

builderback to summary
public static LoadSettingsBuilder builder()

Create the builder

Returns:LoadSettingsBuilder

the builder to fill the configuration options

getAllowDuplicateKeysback to summary
public boolean getAllowDuplicateKeys()
getAllowRecursiveKeysback to summary
public boolean getAllowRecursiveKeys()
getBufferSizeback to summary
public Integer getBufferSize()
getCodePointLimitback to summary
public int getCodePointLimit()
getCustomPropertyback to summary
public Object getCustomProperty(SettingKey key)
getDefaultListback to summary
public IntFunction<List<Object>> getDefaultList()
getDefaultMapback to summary
public IntFunction<Map<Object, Object>> getDefaultMap()
getDefaultSetback to summary
public IntFunction<Set<Object>> getDefaultSet()
getEnvConfigback to summary
public Optional<EnvConfig> getEnvConfig()
getLabelback to summary
public String getLabel()
getMaxAliasesForCollectionsback to summary
public int getMaxAliasesForCollections()
getParseCommentsback to summary
public boolean getParseComments()
getSchemaback to summary
public Schema getSchema()
getTagConstructorsback to summary
public Map<Tag, ConstructNode> getTagConstructors()
getUseMarksback to summary
public boolean getUseMarks()
getVersionFunctionback to summary
public Function<SpecVersion, SpecVersion> getVersionFunction()