org.yaml.snakeyaml.nodes

## Class CollectionNode

- java.lang.Object
- - org.yaml.snakeyaml.nodes.Node
  - - org.yaml.snakeyaml.nodes.CollectionNode

Direct Known Subclasses:
  MappingNode, SequenceNode

    public abstract class CollectionNode
    extends Node

Base class for the two collection types `mapping` and `collection`.

### Field Summary

### Fields inherited from class org.yaml.snakeyaml.nodes.Node

`endMark, resolved, useClassConstructor`

### Constructor Summary

Constructors
Constructor and Description
`CollectionNode(Tag tag, Mark startMark, Mark endMark, java.lang.Boolean flowStyle)`

### Method Summary

Methods
`java.lang.Boolean` `getFlowStyle()` Serialization style of this collection.
`void` `setEndMark(Mark endMark)`
`void` `setFlowStyle(java.lang.Boolean flowStyle)`

### Methods inherited from class org.yaml.snakeyaml.nodes.Node

`equals, getEndMark, getNodeId, getStartMark, getTag, getType, hashCode, isResolved, isTwoStepsConstruction, setTag, setTwoStepsConstruction, setType, setUseClassConstructor, useClassConstructor`

### Methods inherited from class java.lang.Object

`clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

### Constructor Detail

#### CollectionNode

    public CollectionNode(Tag tag,
                  Mark startMark,
                  Mark endMark,
                  java.lang.Boolean flowStyle)

### Method Detail

#### getFlowStyle

    public java.lang.Boolean getFlowStyle()

Serialization style of this collection.

Returns:
  `true` for flow style, `false` for block style.

#### setFlowStyle

    public void setFlowStyle(java.lang.Boolean flowStyle)

#### setEndMark

    public void setEndMark(Mark endMark)