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,
Integer[] version,
Map<String,String> tags) |
Modifier and Type | Method and Description |
---|---|
boolean |
getExplicit() |
Map<String,String> |
getTags()
Tag shorthands as defined by the
%TAG directive. |
Integer[] |
getVersion()
YAML version the document conforms to.
|
boolean |
is(Event.ID id) |
equals, getArguments, getEndMark, getStartMark, toString
public boolean getExplicit()
public Integer[] 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 Map<String,String> getTags()
%TAG
directive.Copyright © 2008-2012. All Rights Reserved.