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
public abstract class CollectionStartEvent extends NodeEvent
Base class for the start events of the collection nodes.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FlowStylegetFlowStyle()trueif this collection is in flow style,falsefor block style.Optional<String>getTag()Tag of this collection.booleanisFlow()booleanisImplicit()trueif the tag can be omitted while this collection is emitted.StringtoString()-
Methods inherited from class org.snakeyaml.engine.v2.events.Event
getEndMark, getEventId, getStartMark
-
-
-
-
Method Detail
-
getTag
public Optional<String> getTag()
Tag of this collection.- Returns:
- The tag of this collection, or
emptyif no explicit tag is available.
-
isImplicit
public boolean isImplicit()
trueif the tag can be omitted while this collection is emitted.- Returns:
- True if the tag can be omitted while this collection is emitted.
-
getFlowStyle
public FlowStyle getFlowStyle()
trueif this collection is in flow style,falsefor block style.- Returns:
- If this collection is in flow style.
-
isFlow
public boolean isFlow()
-
-