Top Description Fields Constructors Methods
org.snakeyaml.engine.v2.nodes

public abstract Class CollectionNode<T>

extends Node
Class Inheritance
Known Direct Subclasses
org.snakeyaml.engine.v2.nodes.MappingNode, org.snakeyaml.engine.v2.nodes.SequenceNode
Imports
java.util.List, .Objects, .Optional, org.snakeyaml.engine.v2.common.FlowStyle, org.snakeyaml.engine.v2.exceptions.Mark

Base class for the two collection types mapping and collection.

Field Summary

Modifier and TypeField and Description
private FlowStyle
Inherited from org.snakeyaml.engine.v2.nodes.Node:
endMarkresolved

Constructor Summary

AccessConstructor and Description
public
CollectionNode(Tag tag, FlowStyle flowStyle, Optional<Mark> startMark, Optional<Mark> endMark)

Method Summary

Modifier and TypeMethod and Description
public FlowStyle

Returns:

true for flow style, false for block style.
getFlowStyle
()

Serialization style of this collection.

public abstract List<T>

Returns:

Nodes in the specified order.
getValue
()

Returns the elements in this sequence.

public void
public void
Inherited from org.snakeyaml.engine.v2.nodes.Node:
equalsgetAnchorgetBlockCommentsgetEndCommentsgetEndMarkgetInLineCommentsgetNodeTypegetPropertygetStartMarkgetTaghashCodeisRecursivesetAnchorsetBlockCommentssetEndCommentssetInLineCommentssetPropertysetRecursivesetTag

Field Detail

flowStyleback to summary
private FlowStyle flowStyle

Constructor Detail

CollectionNodeback to summary
public CollectionNode(Tag tag, FlowStyle flowStyle, Optional<Mark> startMark, Optional<Mark> endMark)

Method Detail

getFlowStyleback to summary
public FlowStyle getFlowStyle()

Serialization style of this collection.

Returns:FlowStyle

true for flow style, false for block style.

getValueback to summary
public abstract List<T> getValue()

Returns the elements in this sequence.

Returns:List<T>

Nodes in the specified order.

setEndMarkback to summary
public void setEndMark(Optional<Mark> endMark)
setFlowStyleback to summary
public void setFlowStyle(FlowStyle flowStyle)