Top Description Fields Constructors Methods
org.yaml.snakeyaml.nodes

public Class SequenceNode

extends CollectionNode<Node>
Class Inheritance
Imports
java.util.List, org.yaml.snakeyaml.DumperOptions, org.yaml.snakeyaml.error.Mark

Represents a sequence.

A sequence is a ordered collection of nodes.

Field Summary

Modifier and TypeField and Description
private final List<Node>

Constructor Summary

AccessConstructor and Description
public
SequenceNode(Tag tag, boolean resolved, List<Node> value, Mark startMark, Mark endMark, DumperOptions.FlowStyle flowStyle)

public
SequenceNode(Tag tag, List<Node> value, DumperOptions.FlowStyle flowStyle)

Method Summary

Modifier and TypeMethod and Description
public NodeId
getNodeId()

Implements abstract org.yaml.snakeyaml.nodes.Node.getNodeId.

For error reporting.
public List<Node>

Returns:

Nodes in the specified order.
getValue
()

Implements abstract org.yaml.snakeyaml.nodes.CollectionNode.getValue.

Returns the elements in this sequence.
public void
setListType(Class<? extends Object> listType)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from org.yaml.snakeyaml.nodes.CollectionNode:
getFlowStylesetEndMarksetFlowStyle

Field Detail

valueback to summary
private final List<Node> value

Constructor Detail

SequenceNodeback to summary
public SequenceNode(Tag tag, boolean resolved, List<Node> value, Mark startMark, Mark endMark, DumperOptions.FlowStyle flowStyle)
SequenceNodeback to summary
public SequenceNode(Tag tag, List<Node> value, DumperOptions.FlowStyle flowStyle)

Method Detail

getNodeIdback to summary
public NodeId getNodeId()

Implements abstract org.yaml.snakeyaml.nodes.Node.getNodeId.

Doc from org.yaml.snakeyaml.nodes.Node.getNodeId.

For error reporting.

Returns:NodeId

scalar, sequence, mapping

Annotations
@Override
getValueback to summary
public List<Node> getValue()

Implements abstract org.yaml.snakeyaml.nodes.CollectionNode.getValue.

Returns the elements in this sequence.

Returns:List<Node>

Nodes in the specified order.

setListTypeback to summary
public void setListType(Class<? extends Object> listType)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.