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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeTypegetNodeType()List<Node>getValue()Returns the elements in this sequence.StringtoString()-
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
-
-
-
-
Method Detail
-
getNodeType
public NodeType getNodeType()
- Specified by:
getNodeTypein classNode- Returns:
- scalar, sequence, mapping
-
getValue
public List<Node> getValue()
Returns the elements in this sequence.- Specified by:
getValuein classCollectionNode<Node>- Returns:
- Nodes in the specified order.
-
-