Package org.snakeyaml.engine.v2.events
Class SequenceStartEvent
- java.lang.Object
-
- org.snakeyaml.engine.v2.events.Event
-
- org.snakeyaml.engine.v2.events.NodeEvent
-
- org.snakeyaml.engine.v2.events.CollectionStartEvent
-
- org.snakeyaml.engine.v2.events.SequenceStartEvent
-
public final class SequenceStartEvent extends CollectionStartEvent
Marks the beginning of a sequence node.This event is followed by the elements contained in the sequence, and a
SequenceEndEvent.- See Also:
SequenceEndEvent
-
-
Constructor Summary
Constructors Constructor Description SequenceStartEvent(Optional<Anchor> anchor, Optional<String> tag, boolean implicit, FlowStyle flowStyle)SequenceStartEvent(Optional<Anchor> anchor, Optional<String> tag, boolean implicit, FlowStyle flowStyle, Optional<Mark> startMark, Optional<Mark> endMark)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Event.IDgetEventId()Get the type (kind) if this EventStringtoString()-
Methods inherited from class org.snakeyaml.engine.v2.events.CollectionStartEvent
getFlowStyle, getTag, isFlow, isImplicit
-
Methods inherited from class org.snakeyaml.engine.v2.events.Event
getEndMark, getStartMark
-
-
-
-
Method Detail
-
getEventId
public Event.ID getEventId()
Description copied from class:EventGet the type (kind) if this Event- Specified by:
getEventIdin classEvent- Returns:
- the ID of this Event
-
toString
public String toString()
- Overrides:
toStringin classCollectionStartEvent
-
-