Package org.snakeyaml.engine.v2.events
Class CollectionStartEvent
java.lang.Object
org.snakeyaml.engine.v2.events.Event
org.snakeyaml.engine.v2.events.NodeEvent
org.snakeyaml.engine.v2.events.CollectionStartEvent
- Direct Known Subclasses:
MappingStartEvent
,SequenceStartEvent
Base class for the start events of the collection nodes.
-
Nested Class Summary
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.snakeyaml.engine.v2.events.Event
getEndMark, getEventId, getStartMark
-
Field Details
-
tag
-
implicit
private final boolean implicit -
flowStyle
-
-
Constructor Details
-
CollectionStartEvent
-
-
Method Details
-
getTag
Tag of this collection.- Returns:
- The tag of this collection, or
empty
if no explicit tag is available.
-
isImplicit
public boolean isImplicit()true
if the tag can be omitted while this collection is emitted.- Returns:
- True if the tag can be omitted while this collection is emitted.
-
getFlowStyle
true
if this collection is in flow style,false
for block style.- Returns:
- If this collection is in flow style.
-
isFlow
public boolean isFlow() -
toString
-