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

io.legaldocml.business.builder.BillBusinessBuilder Maven / Gradle / Ivy

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

import io.legaldocml.akn.AkomaNtosoContext;
import io.legaldocml.akn.element.Bill;
import io.legaldocml.business.BusinessProvider;
import io.legaldocml.module.akn.v3.AkomaNtosoContextV3;

/**
 * @author Jacques Militello
 */
public abstract class BillBusinessBuilder extends BusinessBuilder implements BusinessPartBuilder {

    private final BodyBuilder bodyBuilder;

    public BillBusinessBuilder(BusinessProvider provider, Bill bill, HierarchyStrategy strategy) {
        super(provider, bill, strategy);
        this.bodyBuilder = new BodyBuilder(this, this.getAkomaNtoso().getDocumentType().getBody());
    }

    /**
     * {@inheritDoc}
     */
    @Override
    protected AkomaNtosoContext newAkomaNtosoContext() {
        return new AkomaNtosoContextV3();
    }

    public BodyBuilder getBodyBuilder() {
        return bodyBuilder;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public BusinessBuilder businessBuilder() {
        return this;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy