All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alphasystem.docbook.builder.impl.block.OrderedListBuilder Maven / Gradle / Ivy

The newest version!
package com.alphasystem.docbook.builder.impl.block;

import com.alphasystem.docbook.builder.Builder;
import org.docbook.model.OrderedList;

import java.util.ArrayList;
import java.util.List;

public class OrderedListBuilder extends ListBuilder {

    public OrderedListBuilder(OrderedList source, Builder parent) {
        super(source, parent);
    }

    @Override
    protected void setListStyleName() {
        this.listStyleName = source.getNumeration().value();
    }

    @Override
    protected List getChildContent() {
        return new ArrayList<>(source.getListItem());
    }
}