Class YamlLikeModule
java.lang.Object
net.dzikoysk.cdn.module.standard.StandardModule
net.dzikoysk.cdn.module.yaml.YamlLikeModule
- All Implemented Interfaces:
CdnModule
Implementation of YAML-like format. Supported features:
- Indentation based formatting
- Colon operator after section names
- Dash operator before array entry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertToCdn(String source) voidrenderDescription(StringBuilder output, String indentation, String description) panda.std.Result<panda.std.Blank, Exception> renderEntry(StringBuilder output, String indentation, @Nullable Section parent, Entry element) voidrenderSectionEnding(StringBuilder output, String indentation, @Nullable Section parent, Section section) voidrenderSectionOpening(StringBuilder output, String indentation, Section section) booleanresolveArray(Stack<Section> sections, Piece piece) Element<?> resolveArrayValue(Element<?> element) Element<?> visitArrayValue(Element<?> element) Methods inherited from class net.dzikoysk.cdn.module.standard.StandardModule
renderPiece
-
Constructor Details
-
YamlLikeModule
public YamlLikeModule(boolean enforceQuotes)
-
-
Method Details
-
convertToCdn
-
renderDescription
- Specified by:
renderDescriptionin interfaceCdnModule- Overrides:
renderDescriptionin classStandardModule
-
renderSectionOpening
- Specified by:
renderSectionOpeningin interfaceCdnModule- Overrides:
renderSectionOpeningin classStandardModule
-
renderSectionEnding
public void renderSectionEnding(StringBuilder output, String indentation, @Nullable @Nullable Section parent, Section section) - Specified by:
renderSectionEndingin interfaceCdnModule- Overrides:
renderSectionEndingin classStandardModule
-
renderEntry
public panda.std.Result<panda.std.Blank,Exception> renderEntry(StringBuilder output, String indentation, @Nullable @Nullable Section parent, Entry element) - Specified by:
renderEntryin interfaceCdnModule- Overrides:
renderEntryin classStandardModule
-
visitArrayValue
-
resolveArrayValue
-
resolveArray
- Specified by:
resolveArrayin interfaceCdnModule- Overrides:
resolveArrayin classStandardModule
-