Package com.amihaiemil.eoyaml
Interface YamlDump
-
public interface YamlDumpIn YAML, "dumping" means representing the state of an Object as YAML.- Since:
- 4.3.3
- Version:
- $Id: 31e32467ccd9f865ee17cbc4342df72a114f938e $
- Author:
- Mihai Andronache (amihaiemil@gmail.com)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description YamlNodedump()Dump an Object, represent it as YAML.default YamlMappingdumpMapping()Convenience method, equivalent to calling the dump(...) method and casting the YamlNode to YamlMapping.default ScalardumpScalar()Convenience method, equivalent to calling the dump(...) method and casting the YamlNode to Scalar.default YamlSequencedumpSequence()Convenience method, equivalent to calling the dump(...) method and casting the YamlNode to YamlSequence.
-
-
-
Method Detail
-
dump
YamlNode dump()
Dump an Object, represent it as YAML. Generally, if the Object is a Collection or on Array, the resulting YamlNode will be a YamlSequence.
If the Object is a Map or other kind of Object, the resulting YamlNode will be a YamlSequence.
If the Object is a String, LocalDate, LocaDateTime or a primitive, the resulting YamlNode will be a plain Scalar.- Returns:
- YAML Representation.
-
dumpMapping
default YamlMapping dumpMapping()
Convenience method, equivalent to calling the dump(...) method and casting the YamlNode to YamlMapping.- Returns:
- YamlMapping.
-
dumpSequence
default YamlSequence dumpSequence()
Convenience method, equivalent to calling the dump(...) method and casting the YamlNode to YamlSequence.- Returns:
- YamlSequence.
-
dumpScalar
default Scalar dumpScalar()
Convenience method, equivalent to calling the dump(...) method and casting the YamlNode to Scalar.- Returns:
- Scalar.
-
-