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

io.legaldocml.business.builder.element.TableBuilder Maven / Gradle / Ivy

The newest version!
package io.legaldocml.business.builder.element;

import io.legaldocml.akn.element.Caption;
import io.legaldocml.akn.element.Table;
import io.legaldocml.akn.element.Tr;
import io.legaldocml.business.builder.AbstractBusinessPartBuilder;
import io.legaldocml.business.builder.BusinessBuilder;

/**
 * @author Jacques Militello
 */
public final class TableBuilder extends AbstractBusinessPartBuilder {

    private final Table table;

    public TableBuilder(BusinessBuilder businessBuilder, Table table) {
        super(businessBuilder,table);
        this.table = table;
    }

    public InlineTypeBuilder
caption() { Caption caption = new Caption(); table.setCaption(caption); return null; //return new InlineTypeBuilder(businessBuilder(), caption, this); } public TableRowBuilder row() { Tr tr = new Tr(); this.table.add(tr); return new TableRowBuilder(getBusinessBuilder(), tr); } }