Package org.snakeyaml.engine.v2.api
Class DumpSettings
java.lang.Object
org.snakeyaml.engine.v2.api.DumpSettings
Immutable configuration for serialisation. Description for all the fields can be found in the
builder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final AnchorGenerator
private final String
private final boolean
private final Map
<SettingKey, Object> private final FlowStyle
private final ScalarStyle
private final boolean
private final boolean
private final boolean
private final int
private final boolean
private final int
private final int
private final boolean
private final NonPrintableStyle
private final Schema
private final boolean
private final boolean
private final int
private final Optional
<SpecVersion> -
Constructor Summary
ConstructorsConstructorDescriptionDumpSettings
(boolean explicitStart, boolean explicitEnd, Optional<Tag> explicitRootTag, AnchorGenerator anchorGenerator, Optional<SpecVersion> yamlDirective, Map<String, String> tagDirective, FlowStyle defaultFlowStyle, ScalarStyle defaultScalarStyle, NonPrintableStyle nonPrintableStyle, Schema schema, boolean canonical, boolean multiLineFlow, boolean useUnicodeEncoding, int indent, int indicatorIndent, int width, String bestLineBreak, boolean splitLines, int maxSimpleKeyLength, Map<SettingKey, Object> customProperties, boolean indentWithIndicator, boolean dumpComments) -
Method Summary
Modifier and TypeMethodDescriptionstatic DumpSettingsBuilder
builder()
boolean
int
boolean
int
int
int
getWidth()
boolean
boolean
boolean
boolean
boolean
boolean
-
Field Details
-
explicitStart
private final boolean explicitStart -
explicitEnd
private final boolean explicitEnd -
nonPrintableStyle
-
explicitRootTag
-
anchorGenerator
-
yamlDirective
-
tagDirective
-
defaultFlowStyle
-
defaultScalarStyle
-
canonical
private final boolean canonical -
multiLineFlow
private final boolean multiLineFlow -
useUnicodeEncoding
private final boolean useUnicodeEncoding -
indent
private final int indent -
indicatorIndent
private final int indicatorIndent -
width
private final int width -
bestLineBreak
-
splitLines
private final boolean splitLines -
maxSimpleKeyLength
private final int maxSimpleKeyLength -
indentWithIndicator
private final boolean indentWithIndicator -
dumpComments
private final boolean dumpComments -
schema
-
customProperties
-
-
Constructor Details
-
DumpSettings
DumpSettings(boolean explicitStart, boolean explicitEnd, Optional<Tag> explicitRootTag, AnchorGenerator anchorGenerator, Optional<SpecVersion> yamlDirective, Map<String, String> tagDirective, FlowStyle defaultFlowStyle, ScalarStyle defaultScalarStyle, NonPrintableStyle nonPrintableStyle, Schema schema, boolean canonical, boolean multiLineFlow, boolean useUnicodeEncoding, int indent, int indicatorIndent, int width, String bestLineBreak, boolean splitLines, int maxSimpleKeyLength, Map<SettingKey, Object> customProperties, boolean indentWithIndicator, boolean dumpComments)
-
-
Method Details
-
builder
-
getDefaultFlowStyle
-
getDefaultScalarStyle
-
isExplicitStart
public boolean isExplicitStart() -
getAnchorGenerator
-
isExplicitEnd
public boolean isExplicitEnd() -
getExplicitRootTag
-
getYamlDirective
-
getTagDirective
-
isCanonical
public boolean isCanonical() -
isMultiLineFlow
public boolean isMultiLineFlow() -
isUseUnicodeEncoding
public boolean isUseUnicodeEncoding() -
getIndent
public int getIndent() -
getIndicatorIndent
public int getIndicatorIndent() -
getWidth
public int getWidth() -
getBestLineBreak
-
isSplitLines
public boolean isSplitLines() -
getMaxSimpleKeyLength
public int getMaxSimpleKeyLength() -
getNonPrintableStyle
-
getCustomProperty
-
getIndentWithIndicator
public boolean getIndentWithIndicator() -
getDumpComments
public boolean getDumpComments() -
getSchema
-