Package org.snakeyaml.engine.v2.api
Class LoadSettings
- java.lang.Object
-
- org.snakeyaml.engine.v2.api.LoadSettings
-
public final class LoadSettings extends java.lang.Object
Immutable configuration for loading. Description for all the fields can be found in the builder
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
allowDuplicateKeys
private boolean
allowRecursiveKeys
private java.lang.Integer
bufferSize
private int
codePointLimit
private java.util.Map<SettingKey,java.lang.Object>
customProperties
private java.util.function.IntFunction<java.util.List<java.lang.Object>>
defaultList
private java.util.function.IntFunction<java.util.Map<java.lang.Object,java.lang.Object>>
defaultMap
private java.util.function.IntFunction<java.util.Set<java.lang.Object>>
defaultSet
private java.util.Optional<EnvConfig>
envConfig
private java.lang.String
label
private int
maxAliasesForCollections
private boolean
parseComments
private Schema
schema
private java.util.Map<Tag,ConstructNode>
tagConstructors
private boolean
useMarks
private java.util.function.UnaryOperator<SpecVersion>
versionFunction
-
Constructor Summary
Constructors Constructor Description LoadSettings(java.lang.String label, java.util.Map<Tag,ConstructNode> tagConstructors, java.util.function.IntFunction<java.util.List<java.lang.Object>> defaultList, java.util.function.IntFunction<java.util.Set<java.lang.Object>> defaultSet, java.util.function.IntFunction<java.util.Map<java.lang.Object,java.lang.Object>> defaultMap, java.util.function.UnaryOperator<SpecVersion> versionFunction, java.lang.Integer bufferSize, boolean allowDuplicateKeys, boolean allowRecursiveKeys, int maxAliasesForCollections, boolean useMarks, java.util.Map<SettingKey,java.lang.Object> customProperties, java.util.Optional<EnvConfig> envConfig, boolean parseComments, int codePointLimit, Schema schema)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LoadSettingsBuilder
builder()
Create the builderboolean
getAllowDuplicateKeys()
boolean
getAllowRecursiveKeys()
java.lang.Integer
getBufferSize()
int
getCodePointLimit()
java.lang.Object
getCustomProperty(SettingKey key)
java.util.function.IntFunction<java.util.List<java.lang.Object>>
getDefaultList()
java.util.function.IntFunction<java.util.Map<java.lang.Object,java.lang.Object>>
getDefaultMap()
java.util.function.IntFunction<java.util.Set<java.lang.Object>>
getDefaultSet()
java.util.Optional<EnvConfig>
getEnvConfig()
java.lang.String
getLabel()
int
getMaxAliasesForCollections()
boolean
getParseComments()
Schema
getSchema()
java.util.Map<Tag,ConstructNode>
getTagConstructors()
boolean
getUseMarks()
java.util.function.Function<SpecVersion,SpecVersion>
getVersionFunction()
-
-
-
Field Detail
-
label
private final java.lang.String label
-
tagConstructors
private final java.util.Map<Tag,ConstructNode> tagConstructors
-
defaultList
private final java.util.function.IntFunction<java.util.List<java.lang.Object>> defaultList
-
defaultSet
private final java.util.function.IntFunction<java.util.Set<java.lang.Object>> defaultSet
-
defaultMap
private final java.util.function.IntFunction<java.util.Map<java.lang.Object,java.lang.Object>> defaultMap
-
versionFunction
private final java.util.function.UnaryOperator<SpecVersion> versionFunction
-
bufferSize
private final java.lang.Integer bufferSize
-
allowDuplicateKeys
private final boolean allowDuplicateKeys
-
allowRecursiveKeys
private final boolean allowRecursiveKeys
-
parseComments
private final boolean parseComments
-
maxAliasesForCollections
private final int maxAliasesForCollections
-
useMarks
private final boolean useMarks
-
envConfig
private final java.util.Optional<EnvConfig> envConfig
-
codePointLimit
private final int codePointLimit
-
schema
private final Schema schema
-
customProperties
private final java.util.Map<SettingKey,java.lang.Object> customProperties
-
-
Constructor Detail
-
LoadSettings
LoadSettings(java.lang.String label, java.util.Map<Tag,ConstructNode> tagConstructors, java.util.function.IntFunction<java.util.List<java.lang.Object>> defaultList, java.util.function.IntFunction<java.util.Set<java.lang.Object>> defaultSet, java.util.function.IntFunction<java.util.Map<java.lang.Object,java.lang.Object>> defaultMap, java.util.function.UnaryOperator<SpecVersion> versionFunction, java.lang.Integer bufferSize, boolean allowDuplicateKeys, boolean allowRecursiveKeys, int maxAliasesForCollections, boolean useMarks, java.util.Map<SettingKey,java.lang.Object> customProperties, java.util.Optional<EnvConfig> envConfig, boolean parseComments, int codePointLimit, Schema schema)
-
-
Method Detail
-
builder
public static LoadSettingsBuilder builder()
Create the builder- Returns:
- the builder to fill the configuration options
-
getLabel
public java.lang.String getLabel()
-
getTagConstructors
public java.util.Map<Tag,ConstructNode> getTagConstructors()
-
getDefaultList
public java.util.function.IntFunction<java.util.List<java.lang.Object>> getDefaultList()
-
getDefaultSet
public java.util.function.IntFunction<java.util.Set<java.lang.Object>> getDefaultSet()
-
getDefaultMap
public java.util.function.IntFunction<java.util.Map<java.lang.Object,java.lang.Object>> getDefaultMap()
-
getBufferSize
public java.lang.Integer getBufferSize()
-
getAllowDuplicateKeys
public boolean getAllowDuplicateKeys()
-
getAllowRecursiveKeys
public boolean getAllowRecursiveKeys()
-
getUseMarks
public boolean getUseMarks()
-
getVersionFunction
public java.util.function.Function<SpecVersion,SpecVersion> getVersionFunction()
-
getCustomProperty
public java.lang.Object getCustomProperty(SettingKey key)
-
getMaxAliasesForCollections
public int getMaxAliasesForCollections()
-
getEnvConfig
public java.util.Optional<EnvConfig> getEnvConfig()
-
getParseComments
public boolean getParseComments()
-
getCodePointLimit
public int getCodePointLimit()
-
getSchema
public Schema getSchema()
-
-