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 typesmappingandcollection.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description FlowStylegetFlowStyle()Serialization style of this collection.abstract List<T>getValue()Returns the elements in this sequence.voidsetEndMark(Optional<Mark> endMark)voidsetFlowStyle(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
-
-
-
-
Method Detail
-
getValue
public abstract 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:
truefor flow style,falsefor block style.
-
setFlowStyle
public void setFlowStyle(FlowStyle flowStyle)
-
-