Class CollectionNode<T>

java.lang.Object
org.snakeyaml.engine.v2.nodes.Node
org.snakeyaml.engine.v2.nodes.CollectionNode<T>
Direct Known Subclasses:
MappingNode, SequenceNode

public abstract class CollectionNode<T> extends Node
Base class for the two collection types mapping and collection.
  • Field Details

  • Constructor Details

  • Method Details

    • getValue

      public abstract List<T> getValue()
      Returns the elements in this sequence.
      Returns:
      Nodes in the specified order.
    • getFlowStyle

      public FlowStyle getFlowStyle()
      Serialization style of this collection.
      Returns:
      true for flow style, false for block style.
    • setFlowStyle

      public void setFlowStyle(FlowStyle flowStyle)
    • setEndMark

      public void setEndMark(Optional<Mark> endMark)