public abstract class CollectionNode<T> extends Node
mapping and collection.endMark, resolved, useClassConstructor| Constructor and Description |
|---|
CollectionNode(Tag tag,
Mark startMark,
Mark endMark,
Boolean flowStyle)
Deprecated.
Since restored in v1.22. Use
CollectionNode(Tag, Mark, Mark, org.yaml.snakeyaml.DumperOptions.FlowStyle). |
CollectionNode(Tag tag,
Mark startMark,
Mark endMark,
DumperOptions.FlowStyle flowStyle)
Create
|
| Modifier and Type | Method and Description |
|---|---|
DumperOptions.FlowStyle |
getFlowStyle()
Serialization style of this collection.
|
abstract List<T> |
getValue()
Returns the elements in this sequence.
|
void |
setEndMark(Mark endMark)
Setter
|
void |
setFlowStyle(Boolean flowStyle)
Deprecated.
|
void |
setFlowStyle(DumperOptions.FlowStyle flowStyle)
Setter
|
equals, getAnchor, getBlockComments, getEndComments, getEndMark, getInLineComments, getNodeId, getStartMark, getTag, getType, hashCode, isResolved, isTwoStepsConstruction, setAnchor, setBlockComments, setEndComments, setInLineComments, setTag, setTwoStepsConstruction, setType, setUseClassConstructor, useClassConstructorpublic CollectionNode(Tag tag, Mark startMark, Mark endMark, DumperOptions.FlowStyle flowStyle)
tag - - its tagstartMark - - startendMark - - endflowStyle - - style@Deprecated public CollectionNode(Tag tag, Mark startMark, Mark endMark, Boolean flowStyle)
CollectionNode(Tag, Mark, Mark, org.yaml.snakeyaml.DumperOptions.FlowStyle).DumperOptions.FlowStyle-based constructor.
Restored in v1.22 for backwards compatibility.public abstract List<T> getValue()
public DumperOptions.FlowStyle getFlowStyle()
true for flow style, false for block style.public void setFlowStyle(DumperOptions.FlowStyle flowStyle)
flowStyle - - flow style for collections@Deprecated public void setFlowStyle(Boolean flowStyle)
public void setEndMark(Mark endMark)
endMark - - endCopyright © 2008–2022. All rights reserved.