Package org.snakeyaml.engine.v2.nodes
Class CollectionNode<T>
- java.lang.Object
-
- org.snakeyaml.engine.v2.nodes.Node
-
- org.snakeyaml.engine.v2.nodes.CollectionNode<T>
-
- Direct Known Subclasses:
MappingNode
,SequenceNode
public abstract class CollectionNode<T> extends Node
Base class for the two collection typesmapping
andcollection
.
-
-
Constructor Summary
Constructors Constructor Description CollectionNode(Tag tag, FlowStyle flowStyle, java.util.Optional<Mark> startMark, java.util.Optional<Mark> endMark)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description FlowStyle
getFlowStyle()
Serialization style of this collection.abstract java.util.List<T>
getValue()
Returns the elements in this sequence.void
setEndMark(java.util.Optional<Mark> endMark)
void
setFlowStyle(FlowStyle flowStyle)
-
Methods inherited from class org.snakeyaml.engine.v2.nodes.Node
equals, getAnchor, getBlockComments, getEndComments, getEndMark, getInLineComments, getNodeType, getProperty, getStartMark, getTag, hashCode, isRecursive, setAnchor, setBlockComments, setEndComments, setInLineComments, setProperty, setRecursive, setTag
-
-
-
-
Field Detail
-
flowStyle
private FlowStyle flowStyle
-
-
Method Detail
-
getValue
public abstract java.util.List<T> getValue()
Returns the elements in this sequence.- Returns:
- Nodes in the specified order.
-
getFlowStyle
public FlowStyle getFlowStyle()
Serialization style of this collection.- Returns:
true
for flow style,false
for block style.
-
setFlowStyle
public void setFlowStyle(FlowStyle flowStyle)
-
setEndMark
public void setEndMark(java.util.Optional<Mark> endMark)
-
-