Class SequenceNode

java.lang.Object

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

A sequence is a ordered collection of nodes.

  • 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 java.util.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​(java.lang.Class<? extends java.lang.Object> listType)
    • toString

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