Class DocumentStartEvent
java.lang.Object
org.snakeyaml.engine.v2.events.Event
org.snakeyaml.engine.v2.events.DocumentStartEvent
Marks the beginning of a document.
This event followed by the document's content and a DocumentEndEvent.
-
Nested Class Summary
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDocumentStartEvent(boolean explicit, Optional<SpecVersion> specVersion, Map<String, String> tags) DocumentStartEvent(boolean explicit, Optional<SpecVersion> specVersion, Map<String, String> tags, Optional<Mark> startMark, Optional<Mark> endMark) -
Method Summary
Methods inherited from class Event
getEndMark, getStartMark
-
Field Details
-
explicit
private final boolean explicit -
specVersion
-
tags
-
-
Constructor Details
-
DocumentStartEvent
-
DocumentStartEvent
public DocumentStartEvent(boolean explicit, Optional<SpecVersion> specVersion, Map<String, String> tags)
-
-
Method Details
-
isExplicit
public boolean isExplicit() -
getSpecVersion
- Returns:
- YAML version the document conforms to.
-
getTags
-
getEventId
Description copied from class:EventGet the type (kind) if this Event- Specified by:
getEventIdin classEvent- Returns:
- the ID of this Event
-
toString
-