Package org.snakeyaml.engine.v2.events
Class MappingStartEvent
- 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.MappingStartEvent
-
public final class MappingStartEvent extends CollectionStartEvent
Marks the beginning of a mapping node.This event is followed by a number of key value pairs.
The pairs are not in any particular order. However, the value always directly follows the corresponding key.
After the key value pairs follows aMappingEndEvent.There must be an even number of node events between the start and end event.
- See Also:
MappingEndEvent
-
-
Constructor Summary
Constructors Constructor Description MappingStartEvent(Optional<Anchor> anchor, Optional<String> tag, boolean implicit, FlowStyle flowStyle)MappingStartEvent(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
-
-