Package org.openinvoice.ubl4j.task.render

Examples of org.openinvoice.ubl4j.task.render.InvoiceRenderingInput


        if (!invoiceFile.exists()) {
            throw new FailedToRenderException(String.format("The specified invoice file '%s' doesn't exist",
                    invoiceFile.getAbsolutePath()));
        }
        InvoiceType invoiceType = InvoiceTypeUnMarshaller.unMarshal(new FileInputStream(invoiceFile));
        InvoiceCreationInput input = new InvoiceRenderingInput(invoiceType);
        input = initOutputOptions(input);
        InvoiceRenderingTask task = new InvoiceRenderingTask();
        task.execute(input);
        print(task);
    }
View Full Code Here


    private InvoiceRenderingOutput renderInvoice()
            throws IOException, FailedToRenderException {
        InvoiceCreationOutput creationOutput = (InvoiceCreationOutput) getOutput();
        InvoiceCreationInput creationInput = (InvoiceCreationInput)getInput();
        InvoiceRenderingInput renderingInput =
                new InvoiceRenderingInput(creationOutput.getGeneratedInvoiceType());
        renderingInput.initFromInvoiceCreationInput(creationInput);
        renderingInput.setInvoiceToBeRendered(creationOutput.getGeneratedInvoiceType());
        InvoiceRenderingTask renderingTask = new InvoiceRenderingTask();
        return (InvoiceRenderingOutput) renderingTask.execute(renderingInput);
    }
View Full Code Here

TOP

Related Classes of org.openinvoice.ubl4j.task.render.InvoiceRenderingInput

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.