public final class DocumentStartEvent extends Event
This event followed by the document's content and a DocumentEndEvent
.
Modifier and Type | Field and Description |
---|---|
private boolean |
explicit |
private java.util.Map<java.lang.String,java.lang.String> |
tags |
private DumperOptions.Version |
version |
Constructor and Description |
---|
DocumentStartEvent(Mark startMark,
Mark endMark,
boolean explicit,
DumperOptions.Version version,
java.util.Map<java.lang.String,java.lang.String> tags) |
Modifier and Type | Method and Description |
---|---|
boolean |
getExplicit() |
java.util.Map<java.lang.String,java.lang.String> |
getTags()
Tag shorthands as defined by the
%TAG directive. |
DumperOptions.Version |
getVersion()
YAML version the document conforms to.
|
boolean |
is(Event.ID id) |
equals, getArguments, getEndMark, getStartMark, hashCode, toString
private final boolean explicit
private final DumperOptions.Version version
private final java.util.Map<java.lang.String,java.lang.String> tags
public DocumentStartEvent(Mark startMark, Mark endMark, boolean explicit, DumperOptions.Version version, java.util.Map<java.lang.String,java.lang.String> tags)
public boolean getExplicit()
public DumperOptions.Version getVersion()
null
if 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 java.util.Map<java.lang.String,java.lang.String> getTags()
%TAG
directive.