Package org.snakeyaml.engine.v2.nodes
Class SequenceNode
- java.lang.Object
-
- org.snakeyaml.engine.v2.nodes.Node
-
- org.snakeyaml.engine.v2.nodes.CollectionNode<Node>
-
- org.snakeyaml.engine.v2.nodes.SequenceNode
-
public class SequenceNode extends CollectionNode<Node>
Represents a sequence.A sequence is a ordered collection of nodes.
-
-
Constructor Summary
Constructors Constructor Description SequenceNode(Tag tag, boolean resolved, java.util.List<Node> value, FlowStyle flowStyle, java.util.Optional<Mark> startMark, java.util.Optional<Mark> endMark)
SequenceNode(Tag tag, java.util.List<Node> value, FlowStyle flowStyle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeType
getNodeType()
java.util.List<Node>
getValue()
Returns the elements in this sequence.java.lang.String
toString()
-
Methods inherited from class org.snakeyaml.engine.v2.nodes.CollectionNode
getFlowStyle, setEndMark, setFlowStyle
-
Methods inherited from class org.snakeyaml.engine.v2.nodes.Node
equals, getAnchor, getBlockComments, getEndComments, getEndMark, getInLineComments, getProperty, getStartMark, getTag, hashCode, isRecursive, setAnchor, setBlockComments, setEndComments, setInLineComments, setProperty, setRecursive, setTag
-
-
-
-
Field Detail
-
value
private final java.util.List<Node> value
-
-
Method Detail
-
getNodeType
public NodeType getNodeType()
- Specified by:
getNodeType
in classNode
- Returns:
- scalar, sequence, mapping
-
getValue
public java.util.List<Node> getValue()
Returns the elements in this sequence.- Specified by:
getValue
in classCollectionNode<Node>
- Returns:
- Nodes in the specified order.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-