Package net.dzikoysk.cdn.module.yaml
Class YamlLikeModule
java.lang.Object
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) booleanresolveArray(Stack<Section> sections, Piece piece) Element<?>resolveArrayValue(Element<?> element) Element<?>visitArrayValue(Element<?> element) voidvisitDescription(StringBuilder output, String indentation, String description) voidvisitSectionOpening(StringBuilder output, String indentation, Section section) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.dzikoysk.cdn.module.CdnModule
visitSectionEnding
-
Constructor Details
-
YamlLikeModule
public YamlLikeModule()
-
-
Method Details
-
convertToCdn
- Specified by:
convertToCdnin interfaceCdnModule
-
visitDescription
- Specified by:
visitDescriptionin interfaceCdnModule
-
visitSectionOpening
- Specified by:
visitSectionOpeningin interfaceCdnModule
-
visitArrayValue
- Specified by:
visitArrayValuein interfaceCdnModule
-
resolveArrayValue
- Specified by:
resolveArrayValuein interfaceCdnModule
-
resolveArray
- Specified by:
resolveArrayin interfaceCdnModule
-