public class SimpleFormatter extends java.lang.Object implements InvoiceFormatter
Constructor and Description |
---|
SimpleFormatter() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
formatFooter()
Formats the footer of the invoice.
|
java.lang.String |
formatHeader()
Formats the header of the invoice.
|
java.lang.String |
formatLineItem(LineItem item)
Formats a line item of the invoice.
|
public SimpleFormatter()
public java.lang.String formatHeader()
InvoiceFormatter
formatHeader
in interface InvoiceFormatter
public java.lang.String formatLineItem(LineItem item)
InvoiceFormatter
formatLineItem
in interface InvoiceFormatter
public java.lang.String formatFooter()
InvoiceFormatter
formatFooter
in interface InvoiceFormatter