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

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

    See Also:
    MappingEndEvent
    • Constructor Detail

      • MappingStartEvent

        public MappingStartEvent​(java.util.Optional<Anchor> anchor,
                                 java.util.Optional<java.lang.String> tag,
                                 boolean implicit,
                                 FlowStyle flowStyle,
                                 java.util.Optional<Mark> startMark,
                                 java.util.Optional<Mark> endMark)
      • MappingStartEvent

        public MappingStartEvent​(java.util.Optional<Anchor> anchor,
                                 java.util.Optional<java.lang.String> tag,
                                 boolean implicit,
                                 FlowStyle flowStyle)
    • Method Detail

      • getEventId

        public Event.ID getEventId()
        Description copied from class: Event
        Get the type (kind) if this Event
        Specified by:
        getEventId in class Event
        Returns:
        the ID of this Event