package com.vladsch.flexmark.ast;

import com.vladsch.flexmark.util.sequence.BasedSequence;

import java.util.List;

public class OrderedList extends ListBlock {
    private int startNumber;
    private char delimiter;

    @Override
    public BasedSequence[] getSegments() {
        return EMPTY_SEGMENTS;
    }

    public OrderedList() {
    }

    public OrderedList(BasedSequence chars) {
        super(chars);
    }

    public OrderedList(BasedSequence chars, List<BasedSequence> segments) {
        super(chars, segments);
    }

    public OrderedList(BlockContent blockContent) {
        super(blockContent);
    }

    @Override
    public void getAstExtra(StringBuilder out) {
        super.getAstExtra(out);
        if (startNumber > 1) out.append(" start:").append(startNumber);
        out.append(" delimiter:'").append(delimiter).append("'");
    }

    public int getStartNumber() {
        return startNumber;
    }

    public void setStartNumber(int startNumber) {
        this.startNumber = startNumber;
    }

    public char getDelimiter() {
        return delimiter;
    }

    public void setDelimiter(char delimiter) {
        this.delimiter = delimiter;
    }
}
