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.lang.String anchor,
                                 java.lang.String tag,
                                 boolean implicit,
                                 Mark startMark,
                                 Mark endMark,
                                 DumperOptions.FlowStyle flowStyle)
      • MappingStartEvent

        @Deprecated
        public MappingStartEvent​(java.lang.String anchor,
                                 java.lang.String tag,
                                 boolean implicit,
                                 Mark startMark,
                                 Mark endMark,
                                 java.lang.Boolean flowStyle)
        Deprecated.
    • Method Detail

      • is

        public boolean is​(Event.ID id)
        Specified by:
        is in class Event