|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openinvoice.ubl4j.ui.console.UBL4JConsole
public class UBL4JConsole
Implements the commandline interface for UBL4J. See UBL4JConsoleOptions
for commandline options.
The following example shows how to convert an order to an invoice and render the output to PDF format
$ java -jar ubl4j-0.3.jar -c order.xml -o invoice.pdf -f PDF
The following example shows how to render an invoice to TeX format by using template.tex template
$ java -jar ubl4j-0.3.jar -r invoice.xml -f TEX -t template.tex -o invoice.tex
UBL4JConsoleOptions
Constructor Summary | |
---|---|
UBL4JConsole()
Sets-up the consoleLogger to print its status in case of consoleLogger configuration errors |
Method Summary | |
---|---|
void |
convertOrderToInvoice()
Converts an UBL order to an UBL invoice and renders the invoice to the desired output format. |
org.slf4j.Logger |
getConsoleLogger()
|
org.slf4j.Logger |
getFileLogger()
|
UBL4JConsoleOptions |
getOptions()
|
void |
logExceptionAndExit(UBL4JConsoleOptions options,
Exception e)
|
void |
printCommandLineOptions()
|
void |
printExecutionStatus()
|
void |
renderInvoiceToOutput()
Renders an UBL invoice to the desired output format. |
void |
setConsoleLogger(org.slf4j.Logger consoleLogger)
|
void |
setFileLogger(org.slf4j.Logger fileLogger)
|
void |
setOptions(UBL4JConsoleOptions options)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UBL4JConsole()
Method Detail |
---|
public void convertOrderToInvoice() throws UBL4JException, IOException
UBL4JException
- in case issues while converting the order file
IOException
- in case issues while reading the order filepublic void renderInvoiceToOutput() throws IOException, UBL4JException
UBL4JException
- in case issues while reading and rendering the invoice
IOException
- in case issues reading and rendering the invoicepublic void logExceptionAndExit(UBL4JConsoleOptions options, Exception e)
public void printCommandLineOptions()
public void printExecutionStatus()
public UBL4JConsoleOptions getOptions()
public void setOptions(UBL4JConsoleOptions options)
public org.slf4j.Logger getConsoleLogger()
public void setConsoleLogger(org.slf4j.Logger consoleLogger)
public org.slf4j.Logger getFileLogger()
public void setFileLogger(org.slf4j.Logger fileLogger)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |