Class SequenceNode


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

    A sequence is a ordered collection of nodes.

    • Field Detail

      • value

        private final java.util.List<Node> value
    • Constructor Detail

      • SequenceNode

        @Deprecated
        public SequenceNode​(Tag tag,
                            java.util.List<Node> value,
                            java.lang.Boolean style)
        Deprecated.
      • SequenceNode

        @Deprecated
        public SequenceNode​(Tag tag,
                            boolean resolved,
                            java.util.List<Node> value,
                            Mark startMark,
                            Mark endMark,
                            java.lang.Boolean style)
        Deprecated.
    • Method Detail

      • 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