Class DumpSettings

java.lang.Object
org.snakeyaml.engine.v2.api.DumpSettings

public final class DumpSettings extends Object
Immutable configuration for serialisation. Description for all the fields can be found in the builder
  • Field Details

    • explicitStart

      private final boolean explicitStart
    • explicitEnd

      private final boolean explicitEnd
    • nonPrintableStyle

      private final NonPrintableStyle nonPrintableStyle
    • explicitRootTag

      private final Optional<Tag> explicitRootTag
    • anchorGenerator

      private final AnchorGenerator anchorGenerator
    • yamlDirective

      private final Optional<SpecVersion> yamlDirective
    • tagDirective

      private final Map<String,String> tagDirective
    • defaultFlowStyle

      private final FlowStyle defaultFlowStyle
    • defaultScalarStyle

      private final ScalarStyle 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

      private final String bestLineBreak
    • splitLines

      private final boolean splitLines
    • maxSimpleKeyLength

      private final int maxSimpleKeyLength
    • indentWithIndicator

      private final boolean indentWithIndicator
    • dumpComments

      private final boolean dumpComments
    • schema

      private final Schema schema
    • customProperties

      private final Map<SettingKey,Object> customProperties
  • Constructor Details

  • Method Details

    • builder

      public static DumpSettingsBuilder builder()
    • getDefaultFlowStyle

      public FlowStyle getDefaultFlowStyle()
    • getDefaultScalarStyle

      public ScalarStyle getDefaultScalarStyle()
    • isExplicitStart

      public boolean isExplicitStart()
    • getAnchorGenerator

      public AnchorGenerator getAnchorGenerator()
    • isExplicitEnd

      public boolean isExplicitEnd()
    • getExplicitRootTag

      public Optional<Tag> getExplicitRootTag()
    • getYamlDirective

      public Optional<SpecVersion> getYamlDirective()
    • getTagDirective

      public Map<String,String> 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

      public String getBestLineBreak()
    • isSplitLines

      public boolean isSplitLines()
    • getMaxSimpleKeyLength

      public int getMaxSimpleKeyLength()
    • getNonPrintableStyle

      public NonPrintableStyle getNonPrintableStyle()
    • getCustomProperty

      public Object getCustomProperty(SettingKey key)
    • getIndentWithIndicator

      public boolean getIndentWithIndicator()
    • getDumpComments

      public boolean getDumpComments()
    • getSchema

      public Schema getSchema()