Top Description Fields Constructors Methods
org.yaml.snakeyaml.nodes

public abstract Class CollectionNode<T>

extends Node
Class Inheritance
Known Direct Subclasses
org.yaml.snakeyaml.nodes.MappingNode, org.yaml.snakeyaml.nodes.SequenceNode
Imports
java.util.List, org.yaml.snakeyaml.DumperOptions, org.yaml.snakeyaml.error.Mark

Base class for the two collection types mapping and collection.

Field Summary

Modifier and TypeField and Description
private DumperOptions.FlowStyle
Inherited from org.yaml.snakeyaml.nodes.Node:
endMarkresolveduseClassConstructor

Constructor Summary

AccessConstructor and Description
public
CollectionNode(Tag
- its tag
tag
,
Mark
- start
startMark
,
Mark
- end
endMark
,
DumperOptions.FlowStyle
- style
flowStyle
)

Create

Method Summary

Modifier and TypeMethod and Description
public DumperOptions.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
setEndMark(Mark
- end
endMark
)

Setter

public void
setFlowStyle(DumperOptions.FlowStyle
- flow style for collections
flowStyle
)

Setter

Inherited from org.yaml.snakeyaml.nodes.Node:
equalsgetAnchorgetBlockCommentsgetEndCommentsgetEndMarkgetInLineCommentsgetNodeIdgetStartMarkgetTaggetTypehashCodeisTwoStepsConstructionsetAnchorsetBlockCommentssetEndCommentssetInLineCommentssetTagsetTwoStepsConstructionsetTypesetUseClassConstructoruseClassConstructor

Field Detail

flowStyleback to summary
private DumperOptions.FlowStyle flowStyle

Constructor Detail

CollectionNodeback to summary
public CollectionNode(Tag tag, Mark startMark, Mark endMark, DumperOptions.FlowStyle flowStyle)

Create

Parameters
tag:Tag

- its tag

startMark:Mark

- start

endMark:Mark

- end

flowStyle:DumperOptions.FlowStyle

- style

Method Detail

getFlowStyleback to summary
public DumperOptions.FlowStyle getFlowStyle()

Serialization style of this collection.

Returns:DumperOptions.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(Mark endMark)

Setter

Parameters
endMark:Mark

- end

setFlowStyleback to summary
public void setFlowStyle(DumperOptions.FlowStyle flowStyle)

Setter

Parameters
flowStyle:DumperOptions.FlowStyle

- flow style for collections