Interface YamlDump


  • public interface YamlDump
    In 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 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.