Class CollectionStartEvent

    • Constructor Detail

      • CollectionStartEvent

        public CollectionStartEvent​(String anchor,
                                    String tag,
                                    boolean implicit,
                                    Mark startMark,
                                    Mark endMark,
                                    DumperOptions.FlowStyle flowStyle)
        Create
        Parameters:
        anchor - - its anchor
        tag - - its tag
        implicit - - thue when the tag is implicitly resolved
        startMark - - start
        endMark - - end
        flowStyle - - style
    • Method Detail

      • getTag

        public String getTag()
        Tag of this collection.
        Returns:
        The tag of this collection, or null if no explicit tag is available.
      • getImplicit

        public boolean getImplicit()
        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 DumperOptions.FlowStyle getFlowStyle()
        true if this collection is in flow style, false for block style.
        Returns:
        If this collection is in flow style.
      • getArguments

        protected String getArguments()
        Description copied from class: Event
        Generate human readable representation of the Event
        Overrides:
        getArguments in class NodeEvent
        Returns:
        representation fore humans
        See Also:
        "__repr__ for Event in PyYAML"
      • isFlow

        public boolean isFlow()
        Getter
        Returns:
        true for FLOW (exclude BLOCK and AUTO)