Class SequenceNode


public class SequenceNode extends CollectionNode<Node>
Represents a sequence.

A sequence is a ordered collection of nodes.

  • Field Details

    • value

      private final List<Node> value
  • Constructor Details

  • Method Details

    • getNodeId

      public NodeId getNodeId()
      Description copied from class: Node
      For error reporting.
      Specified by:
      getNodeId in class Node
      Returns:
      scalar, sequence, mapping
      See Also:
      • "class variable 'id' in PyYAML"
    • getValue

      public List<Node> getValue()
      Returns the elements in this sequence.
      Specified by:
      getValue in class CollectionNode<Node>
      Returns:
      Nodes in the specified order.
    • setListType

      public void setListType(Class<? extends Object> listType)
    • toString

      public String toString()
      Overrides:
      toString in class Object