Class CollectionStartEvent

    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.snakeyaml.engine.v2.events.Event

        Event.ID
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private FlowStyle flowStyle  
      private boolean implicit  
      private java.util.Optional<java.lang.String> tag  
    • Constructor Summary

      Constructors 
      Constructor Description
      CollectionStartEvent​(java.util.Optional<Anchor> anchor, java.util.Optional<java.lang.String> tag, boolean implicit, FlowStyle flowStyle, java.util.Optional<Mark> startMark, java.util.Optional<Mark> endMark)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      FlowStyle getFlowStyle()
      true if this collection is in flow style, false for block style.
      java.util.Optional<java.lang.String> getTag()
      Tag of this collection.
      boolean isFlow()  
      boolean isImplicit()
      true if the tag can be omitted while this collection is emitted.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • tag

        private final java.util.Optional<java.lang.String> tag
      • implicit

        private final boolean implicit
      • flowStyle

        private final FlowStyle flowStyle
    • Constructor Detail

      • CollectionStartEvent

        public CollectionStartEvent​(java.util.Optional<Anchor> anchor,
                                    java.util.Optional<java.lang.String> tag,
                                    boolean implicit,
                                    FlowStyle flowStyle,
                                    java.util.Optional<Mark> startMark,
                                    java.util.Optional<Mark> endMark)
    • Method Detail

      • getTag

        public java.util.Optional<java.lang.String> getTag()
        Tag of this collection.
        Returns:
        The tag of this collection, or empty if no explicit tag is available.
      • isImplicit

        public boolean isImplicit()
        true if the tag can be omitted while this collection is emitted.
        Returns:
        True if the tag can be omitted while this collection is emitted.
      • getFlowStyle

        public FlowStyle getFlowStyle()
        true if this collection is in flow style, false for block style.
        Returns:
        If this collection is in flow style.
      • isFlow

        public boolean isFlow()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object