Documentation of 'org.yaml.snakeyaml.events.DocumentStartEvent' Java class
DocumentStartEvent
org.yaml.snakeyaml.events

Class DocumentStartEvent



  • public final class DocumentStartEvent
    extends Event
    Marks the beginning of a document.

    This event followed by the document's content and a DocumentEndEvent.

    • Constructor Detail

      • DocumentStartEvent

        public DocumentStartEvent(Mark startMark,
                                  Mark endMark,
                                  boolean explicit,
                                  DumperOptions.Version version,
                                  java.util.Map<java.lang.String,java.lang.String> tags)
    • Method Detail

      • getExplicit

        public boolean getExplicit()
      • getVersion

        public DumperOptions.Version getVersion()
        YAML version the document conforms to.
        Returns:
        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).
      • getTags

        public java.util.Map<java.lang.String,java.lang.String> getTags()
        Tag shorthands as defined by the %TAG directive.
        Returns:
        Mapping of 'handles' to 'prefixes' (the handles include the '!' characters).

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.