org.openinvoice.ubl4j.text
Class DefaultInvoiceRenderer
java.lang.Object
org.openinvoice.ubl4j.text.DefaultInvoiceRenderer
- All Implemented Interfaces:
- InvoiceRenderer
- Direct Known Subclasses:
- HtmlInvoiceRenderer, TexInvoiceRenderer
public abstract class DefaultInvoiceRenderer
- extends Object
- implements InvoiceRenderer
- Since:
- \$Date: 2011/08/11 20:57:32 $
- Version:
- \$Revision: 6017cf649e20 $
- Author:
- \$Author: javad $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultInvoiceRenderer
public DefaultInvoiceRenderer()
DefaultInvoiceRenderer
public DefaultInvoiceRenderer(oasis.names.specification.ubl.schema.xsd.invoice_2.InvoiceType invoiceType)
throws IOException
- Throws:
IOException
DefaultInvoiceRenderer
public DefaultInvoiceRenderer(oasis.names.specification.ubl.schema.xsd.invoice_2.InvoiceType invoiceType,
com.plainsource.commons.text.template.Template template)
throws IOException
- Throws:
IOException
createTemplate
public abstract com.plainsource.commons.text.template.Template createTemplate(File file)
throws IOException
- Throws:
IOException
createTemplate
public abstract com.plainsource.commons.text.template.Template createTemplate(InputStream is)
throws IOException
- Throws:
IOException
initLocaleAndCurrency
public void initLocaleAndCurrency()
addAndReplaceTokens
public void addAndReplaceTokens()
postProcess
public abstract void postProcess()
getOutputFormat
public abstract OutputFormat getOutputFormat()
- Specified by:
getOutputFormat
in interface InvoiceRenderer
render
public void render(OutputStream documentOutputStream)
throws FailedToRenderException
- Specified by:
render
in interface InvoiceRenderer
- Throws:
FailedToRenderException
getTaxRateAsFormattedNumber
public static com.plainsource.commons.text.NumberWrapper getTaxRateAsFormattedNumber(oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.InvoiceLineType invoiceLineType,
Locale locale)
convertInvoiceQuantityIfRequired
public static QuantityConverter convertInvoiceQuantityIfRequired(oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.InvoicedQuantityType quantity,
oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.PriceType price,
Locale locale)
getInvoiceType
public oasis.names.specification.ubl.schema.xsd.invoice_2.InvoiceType getInvoiceType()
setInvoiceType
public void setInvoiceType(oasis.names.specification.ubl.schema.xsd.invoice_2.InvoiceType invoiceType)
getTemplate
public com.plainsource.commons.text.template.Template getTemplate()
- Specified by:
getTemplate
in interface InvoiceRenderer
setTemplate
public void setTemplate(com.plainsource.commons.text.template.Template template)
getLocale
public Locale getLocale()
setLocale
public void setLocale(Locale locale)
Copyright © 2011-2012 Plain Source. All Rights Reserved.