public final class DocumentStartEvent extends Event
 This event followed by the document's content and a DocumentEndEvent.
 
| Constructor and Description | 
|---|
| DocumentStartEvent(Mark startMark,
                  Mark endMark,
                  boolean explicit,
                  DumperOptions.Version version,
                  Map<String,String> tags) | 
| Modifier and Type | Method and Description | 
|---|---|
| Event.ID | getEventId()Get the type (kind) if this Event | 
| boolean | getExplicit() | 
| Map<String,String> | getTags()Tag shorthands as defined by the  %TAGdirective. | 
| DumperOptions.Version | getVersion()YAML version the document conforms to. | 
equals, getArguments, getEndMark, getStartMark, hashCode, is, toStringpublic boolean getExplicit()
public DumperOptions.Version getVersion()
nullif the document has no explicit
         %YAML directive. Otherwise an array with two
         components, the major and minor part of the version (in this
         order).public Map<String,String> getTags()
%TAG directive.public Event.ID getEventId()
EventgetEventId in class EventCopyright © 2008–2021. All rights reserved.