public abstract class CollectionStartEvent extends NodeEvent
| Constructor and Description |
|---|
CollectionStartEvent(String anchor,
String tag,
boolean implicit,
Mark startMark,
Mark endMark,
Boolean flowStyle)
Deprecated.
Since restored in v1.22. Use
CollectionStartEvent(String, String, boolean, Mark, Mark, org.yaml.snakeyaml.DumperOptions.FlowStyle). |
CollectionStartEvent(String anchor,
String tag,
boolean implicit,
Mark startMark,
Mark endMark,
DumperOptions.FlowStyle flowStyle)
Create
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getArguments()
Generate human readable representation of the Event
|
DumperOptions.FlowStyle |
getFlowStyle()
true if this collection is in flow style, false for block style. |
boolean |
getImplicit()
true if the tag can be omitted while this collection is emitted. |
String |
getTag()
Tag of this collection.
|
boolean |
isFlow()
Getter
|
equals, getEndMark, getEventId, getStartMark, hashCode, is, toStringpublic CollectionStartEvent(String anchor, String tag, boolean implicit, Mark startMark, Mark endMark, DumperOptions.FlowStyle flowStyle)
anchor - - its anchortag - - its tagimplicit - - thue when the tag is implicitly resolvedstartMark - - startendMark - - endflowStyle - - style@Deprecated public CollectionStartEvent(String anchor, String tag, boolean implicit, Mark startMark, Mark endMark, Boolean flowStyle)
CollectionStartEvent(String, String, boolean, Mark, Mark, org.yaml.snakeyaml.DumperOptions.FlowStyle).DumperOptions.FlowStyle-based constructor.
Restored in v1.22 for backwards compatibility.public String getTag()
null if no explicit tag is available.public boolean getImplicit()
true if the tag can be omitted while this collection is emitted.public DumperOptions.FlowStyle getFlowStyle()
true if this collection is in flow style, false for block style.protected String getArguments()
EventgetArguments in class NodeEventpublic boolean isFlow()
Copyright © 2008–2022. All rights reserved.