org.yaml.snakeyaml.nodes

## Class SequenceNode

- java.lang.Object
- - org.yaml.snakeyaml.nodes.Node
  - - org.yaml.snakeyaml.nodes.CollectionNode
    - - org.yaml.snakeyaml.nodes.SequenceNode

    public class SequenceNode
    extends CollectionNode

Represents a sequence.

A sequence is a ordered collection of nodes.

### Field Summary

### Fields inherited from class org.yaml.snakeyaml.nodes.Node

`endMark, resolved, useClassConstructor`

### Constructor Summary

Constructors
Constructor and Description
`SequenceNode(Tag tag, boolean resolved, java.util.List<Node> value, Mark startMark, Mark endMark, java.lang.Boolean flowStyle)`
`SequenceNode(Tag tag, java.util.List<Node> value, java.lang.Boolean flowStyle)`

### Method Summary

Methods
`NodeId` `getNodeId()` For error reporting.
`java.util.List<Node>` `getValue()` Returns the elements in this sequence.
`void` `setListType(java.lang.Class<? extends java.lang.Object> listType)`
`java.lang.String` `toString()`

### Methods inherited from class org.yaml.snakeyaml.nodes.CollectionNode

`getFlowStyle, setEndMark, setFlowStyle`

### Methods inherited from class org.yaml.snakeyaml.nodes.Node

`equals, getEndMark, getStartMark, getTag, getType, hashCode, isResolved, isTwoStepsConstruction, setTag, setTwoStepsConstruction, setType, setUseClassConstructor, useClassConstructor`

### Methods inherited from class java.lang.Object

`clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

### Constructor Detail

#### SequenceNode

    public SequenceNode(Tag tag,
                boolean resolved,
                java.util.List<Node> value,
                Mark startMark,
                Mark endMark,
                java.lang.Boolean flowStyle)

#### SequenceNode

    public SequenceNode(Tag tag,
                java.util.List<Node> value,
                java.lang.Boolean flowStyle)

### 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.

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`