Top Description Constructors Methods
org.snakeyaml.engine.v2.events

public final Class MappingStartEvent

extends CollectionStartEvent
Class Inheritance
Imports
java.util.Optional, org.snakeyaml.engine.v2.common.Anchor, .FlowStyle, org.snakeyaml.engine.v2.exceptions.Mark

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 a MappingEndEvent.

There must be an even number of node events between the start and end event.

See Also
MappingEndEvent

Constructor Summary

AccessConstructor and Description
public
MappingStartEvent(Optional<Anchor> anchor, Optional<String> tag, boolean implicit, FlowStyle flowStyle, Optional<Mark> startMark, Optional<Mark> endMark)

public
MappingStartEvent(Optional<Anchor> anchor, Optional<String> tag, boolean implicit, FlowStyle flowStyle)

Method Summary

Modifier and TypeMethod and Description
public Event.ID
getEventId()

Implements abstract org.snakeyaml.engine.v2.events.Event.getEventId.

Get the type (kind) if this Event

public String
toString()

Overrides org.snakeyaml.engine.v2.events.CollectionStartEvent.toString.

Returns a string representation of the object.

Inherited from org.snakeyaml.engine.v2.events.CollectionStartEvent:
getFlowStylegetTagisFlowisImplicit

Constructor Detail

MappingStartEventback to summary
public MappingStartEvent(Optional<Anchor> anchor, Optional<String> tag, boolean implicit, FlowStyle flowStyle, Optional<Mark> startMark, Optional<Mark> endMark)
MappingStartEventback to summary
public MappingStartEvent(Optional<Anchor> anchor, Optional<String> tag, boolean implicit, FlowStyle flowStyle)

Method Detail

getEventIdback to summary
public Event.ID getEventId()

Implements abstract org.snakeyaml.engine.v2.events.Event.getEventId.

Doc from org.snakeyaml.engine.v2.events.Event.getEventId.

Get the type (kind) if this Event

Annotations
@Override
toStringback to summary
public String toString()

Overrides org.snakeyaml.engine.v2.events.CollectionStartEvent.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override