Package org.yaml.snakeyaml.nodes
Class CollectionNode<T>
- java.lang.Object
-
- org.yaml.snakeyaml.nodes.Node
-
- org.yaml.snakeyaml.nodes.CollectionNode<T>
-
- Direct Known Subclasses:
MappingNode,SequenceNode
public abstract class CollectionNode<T> extends Node
Base class for the two collection typesmappingandcollection.
-
-
Field Summary
-
Fields inherited from class org.yaml.snakeyaml.nodes.Node
endMark, resolved, useClassConstructor
-
-
Constructor Summary
Constructors Constructor Description CollectionNode(Tag tag, Mark startMark, Mark endMark, java.lang.Boolean flowStyle)Deprecated.CollectionNode(Tag tag, Mark startMark, Mark endMark, DumperOptions.FlowStyle flowStyle)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description DumperOptions.FlowStylegetFlowStyle()Serialization style of this collection.abstract java.util.List<T>getValue()Returns the elements in this sequence.voidsetEndMark(Mark endMark)voidsetFlowStyle(DumperOptions.FlowStyle flowStyle)-
Methods inherited from class org.yaml.snakeyaml.nodes.Node
equals, getAnchor, getEndMark, getNodeId, getStartMark, getTag, getType, hashCode, isResolved, isTwoStepsConstruction, setAnchor, setTag, setTwoStepsConstruction, setType, setUseClassConstructor, useClassConstructor
-
-
-
-
Method Detail
-
getValue
public abstract java.util.List<T> getValue()
Returns the elements in this sequence.- Returns:
- Nodes in the specified order.
-
getFlowStyle
public DumperOptions.FlowStyle getFlowStyle()
Serialization style of this collection.- Returns:
truefor flow style,falsefor block style.
-
setFlowStyle
public void setFlowStyle(DumperOptions.FlowStyle flowStyle)
-
setEndMark
public void setEndMark(Mark endMark)
-
-