Class CollectionStartEvent

Direct Known Subclasses:
MappingStartEvent, SequenceStartEvent

public abstract class CollectionStartEvent extends NodeEvent
Base class for the start events of the collection nodes.
  • Field Details

    • tag

      private final Optional<String> tag
    • implicit

      private final boolean implicit
    • flowStyle

      private final FlowStyle flowStyle
  • Constructor Details

  • Method Details

    • getTag

      public Optional<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 String toString()
      Overrides:
      toString in class Object