Package org.yaml.snakeyaml.nodes
Class SequenceNode
- java.lang.Object
-
- org.yaml.snakeyaml.nodes.Node
-
- org.yaml.snakeyaml.nodes.CollectionNode<Node>
-
- org.yaml.snakeyaml.nodes.SequenceNode
-
public class SequenceNode extends CollectionNode<Node>
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 Description SequenceNode(Tag tag, boolean resolved, java.util.List<Node> value, Mark startMark, Mark endMark, java.lang.Boolean style)
Deprecated.SequenceNode(Tag tag, boolean resolved, java.util.List<Node> value, Mark startMark, Mark endMark, DumperOptions.FlowStyle flowStyle)
SequenceNode(Tag tag, java.util.List<Node> value, java.lang.Boolean style)
Deprecated.SequenceNode(Tag tag, java.util.List<Node> value, DumperOptions.FlowStyle flowStyle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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, setFlowStyle
-
Methods inherited from class org.yaml.snakeyaml.nodes.Node
equals, getAnchor, getBlockComments, getEndComments, getEndMark, getInLineComments, getStartMark, getTag, getType, hashCode, isResolved, isTwoStepsConstruction, setAnchor, setBlockComments, setEndComments, setInLineComments, setTag, setTwoStepsConstruction, setType, setUseClassConstructor, useClassConstructor
-
-
-
-
Constructor Detail
-
SequenceNode
public SequenceNode(Tag tag, boolean resolved, java.util.List<Node> value, Mark startMark, Mark endMark, DumperOptions.FlowStyle flowStyle)
-
SequenceNode
public SequenceNode(Tag tag, java.util.List<Node> value, DumperOptions.FlowStyle flowStyle)
-
SequenceNode
@Deprecated public SequenceNode(Tag tag, java.util.List<Node> value, java.lang.Boolean style)
Deprecated.
-
-
Method Detail
-
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.
-
setListType
public void setListType(java.lang.Class<? extends java.lang.Object> listType)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-