Class DumpSettings


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

      • explicitStart

        private final boolean explicitStart
      • explicitEnd

        private final boolean explicitEnd
      • explicitRootTag

        private final java.util.Optional<Tag> explicitRootTag
      • yamlDirective

        private final java.util.Optional<SpecVersion> yamlDirective
      • tagDirective

        private final java.util.Map<java.lang.String,​java.lang.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 java.lang.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 java.util.Map<SettingKey,​java.lang.Object> customProperties
    • Constructor Detail

      • DumpSettings

        DumpSettings​(boolean explicitStart,
                     boolean explicitEnd,
                     java.util.Optional<Tag> explicitRootTag,
                     AnchorGenerator anchorGenerator,
                     java.util.Optional<SpecVersion> yamlDirective,
                     java.util.Map<java.lang.String,​java.lang.String> tagDirective,
                     FlowStyle defaultFlowStyle,
                     ScalarStyle defaultScalarStyle,
                     NonPrintableStyle nonPrintableStyle,
                     Schema schema,
                     boolean canonical,
                     boolean multiLineFlow,
                     boolean useUnicodeEncoding,
                     int indent,
                     int indicatorIndent,
                     int width,
                     java.lang.String bestLineBreak,
                     boolean splitLines,
                     int maxSimpleKeyLength,
                     java.util.Map<SettingKey,​java.lang.Object> customProperties,
                     boolean indentWithIndicator,
                     boolean dumpComments)
    • Method Detail

      • getDefaultFlowStyle

        public FlowStyle getDefaultFlowStyle()
      • getDefaultScalarStyle

        public ScalarStyle getDefaultScalarStyle()
      • isExplicitStart

        public boolean isExplicitStart()
      • isExplicitEnd

        public boolean isExplicitEnd()
      • getExplicitRootTag

        public java.util.Optional<Tag> getExplicitRootTag()
      • getYamlDirective

        public java.util.Optional<SpecVersion> getYamlDirective()
      • getTagDirective

        public java.util.Map<java.lang.String,​java.lang.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 java.lang.String getBestLineBreak()
      • isSplitLines

        public boolean isSplitLines()
      • getMaxSimpleKeyLength

        public int getMaxSimpleKeyLength()
      • getCustomProperty

        public java.lang.Object getCustomProperty​(SettingKey key)
      • getIndentWithIndicator

        public boolean getIndentWithIndicator()
      • getDumpComments

        public boolean getDumpComments()
      • getSchema

        public Schema getSchema()