Class CollectionNode<T>

    • Constructor Detail

      • CollectionNode

        public CollectionNode​(Tag tag,
                              Mark startMark,
                              Mark endMark,
                              DumperOptions.FlowStyle flowStyle)
        Create
        Parameters:
        tag - - its tag
        startMark - - start
        endMark - - end
        flowStyle - - style
    • Method Detail

      • getValue

        public abstract List<T> getValue()
        Returns the elements in this sequence.
        Returns:
        Nodes in the specified order.
      • getFlowStyle

        public DumperOptions.FlowStyle getFlowStyle()
        Serialization style of this collection.
        Returns:
        true for flow style, false for block style.
      • setFlowStyle

        public void setFlowStyle​(DumperOptions.FlowStyle flowStyle)
        Setter
        Parameters:
        flowStyle - - flow style for collections
      • setEndMark

        public void setEndMark​(Mark endMark)
        Setter
        Parameters:
        endMark - - end