Class StructNode

  • All Implemented Interfaces:
    LineNumberAware

    public class StructNode
    extends YamlLine<StructNode>
    Structure build by snakeyaml-based parser. Represents one or multiple lines in yaml file (multiple lines only in case of multiline value). Usually represent some property, except list values where pure scalar might appear.

    For lists, parsed structure is a bit weird for objects: dashed property goes first and later object properties are children of this value (so item object become split, but this simplifies parsing (node always one or more lines)).

    Since:
    05.05.2021
    • Constructor Detail

      • StructNode

        public StructNode​(StructNode root,
                          int padding,
                          int lineNum)
    • Method Detail

      • getValue

        public java.lang.String getValue()
      • setValue

        public void setValue​(java.lang.String value)
      • getIdentityValue

        public java.lang.String getIdentityValue()
        Description copied from class: YamlLine
        Returned values assumed to be used in node comparisons.
        Specified by:
        getIdentityValue in class YamlLine<StructNode>
        Returns:
        maximally accurate node value (as much as possible for used parser)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object