Class CollectionNode<T>

java.lang.Object
org.yaml.snakeyaml.nodes.Node
org.yaml.snakeyaml.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.
  • Constructor Details

  • Method Details

    • getValue

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

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

      public void setFlowStyle(DumperOptions.FlowStyle flowStyle)
      Setter
      Parameters:
      flowStyle - - flow style for collections
    • setFlowStyle

      @Deprecated public void setFlowStyle(Boolean flowStyle)
      Deprecated.
    • setEndMark

      public void setEndMark(Mark endMark)
      Setter
      Parameters:
      endMark - - end