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)
Create
|
| Modifier and Type | Method and Description |
|---|---|
Event.ID |
getEventId()
Get the type (kind) if this Event
|
boolean |
getExplicit()
getter
|
Map<String,String> |
getTags()
Tag shorthands as defined by the
%TAG directive. |
DumperOptions.Version |
getVersion()
YAML version the document conforms to.
|
equals, getArguments, getEndMark, getStartMark, hashCode, is, toStringpublic DocumentStartEvent(Mark startMark, Mark endMark, boolean explicit, DumperOptions.Version version, Map<String,String> tags)
startMark - - startendMark - - endexplicit - - true when it is present in the documentversion - - YAML versiontags - - tag directivespublic 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–2022. All rights reserved.