Interface Scalar

  • All Superinterfaces:
    Comparable<YamlNode>, YamlNode

    public interface Scalar
    extends YamlNode
    Yaml Scalar.
    Since:
    3.1.3
    Version:
    $Id: a3fc0cf8017a486e72dca505f285e3d20dca5a58 $
    Author:
    Mihai Andronache (amihaiemil@gmail.com)
    • Method Detail

      • value

        String value()
        Value of this scalar. The value returned by this method should be un-escaped. e.g. if the scalar is escaped, say '#404040', the returned value should be #404040.
        Returns:
        String value.
        Throws:
        IllegalStateException - In the case of reading YAML, this exception is thrown if the Scalar isn't found where it's supposed to be.