io.legaldocml.business.builder.element.TableRowBuilder Maven / Gradle / Ivy
The newest version!
package io.legaldocml.business.builder.element;
import io.legaldocml.akn.element.Td;
import io.legaldocml.akn.element.Th;
import io.legaldocml.akn.element.Tr;
import io.legaldocml.business.builder.AbstractBusinessPartBuilder;
import io.legaldocml.business.builder.BusinessBuilder;
/**
* @author Jacques Militello
*/
public final class TableRowBuilder extends AbstractBusinessPartBuilder {
private final Tr tr;
public TableRowBuilder(BusinessBuilder businessBuilder, Tr tr) {
super(businessBuilder, tr);
this.tr = tr;
}
@SuppressWarnings("unchecked")
public BlocksBuilder column() {
Td td = new Td();
this.tr.add(td);
return new BlocksBuilder(getBusinessBuilder(), this.tr, td);
}
@SuppressWarnings("unchecked")
public BlocksBuilder header() {
Th th = new Th();
this.tr.add(th);
return new BlocksBuilder(getBusinessBuilder(), this.tr, th);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy