org.openinvoice.ubl4j.ui.console
Class UBL4JConsoleOptions

java.lang.Object
  extended by org.openinvoice.ubl4j.ui.console.UBL4JConsoleOptions

public class UBL4JConsoleOptions
extends Object

Specifies the command line options used by the UBL4JConsole. See usage example UBL4JConsole.

Version:
\$Revision: 269823a876f3 $
Author:
Javad K. Heshmati

Field Summary
static String CONVERT
          -c option specifies rendering an UBL order file to an UBL invoice.
static String CONVERT_ALIAS
           
 String convertOrderToInvoice
           
static String FORMAT
          -f option specifies the desired output format used for rendering the invoice.
static String FORMAT_ALIAS
           
 boolean help
           
static String HELP
          -h option prints command-line help information
static String HELP_ALIAS
           
static String OUTPUT
          -o option specifies the invoice output file path.
static String OUTPUT_ALIAS
           
protected  String outputFilePath
           
protected  String outputFormat
           
static String RENDER
          -r option specifies rendering an UBL invoice file to desired output.
static String RENDER_ALIAS
           
 String renderInvoice
           
static String TEMPLATE
          -t option specifies the template to be used for rendering the invoice.
static String TEMPLATE_ALIAS
           
protected  String templateFilePath
           
 
Constructor Summary
UBL4JConsoleOptions()
           
 
Method Summary
static String format(UBL4JConsoleOptions options)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONVERT

public static final String CONVERT
-c option specifies rendering an UBL order file to an UBL invoice. Given a fully qualified path to an UBL order file, it converts it to an UBL invoice.

See Also:
Constant Field Values

RENDER

public static final String RENDER
-r option specifies rendering an UBL invoice file to desired output. Given a fully qualified path to an UBL invoice file, it renders the specified UBL invoice to the desired output format.

See Also:
Constant Field Values

TEMPLATE

public static final String TEMPLATE
-t option specifies the template to be used for rendering the invoice. If not specified, the default template is used.

See Also:
Constant Field Values

OUTPUT

public static final String OUTPUT
-o option specifies the invoice output file path. If not specified, the internal invoice key is used to form the file name.

See Also:
Constant Field Values

FORMAT

public static final String FORMAT
-f option specifies the desired output format used for rendering the invoice. Supported formats are: PDF, TeX and HTML. If not specified, the PDF output format is used to render the output.

See Also:
Constant Field Values

HELP

public static final String HELP
-h option prints command-line help information

See Also:
Constant Field Values

CONVERT_ALIAS

public static final String CONVERT_ALIAS
See Also:
Constant Field Values

RENDER_ALIAS

public static final String RENDER_ALIAS
See Also:
Constant Field Values

TEMPLATE_ALIAS

public static final String TEMPLATE_ALIAS
See Also:
Constant Field Values

OUTPUT_ALIAS

public static final String OUTPUT_ALIAS
See Also:
Constant Field Values

HELP_ALIAS

public static final String HELP_ALIAS
See Also:
Constant Field Values

FORMAT_ALIAS

public static final String FORMAT_ALIAS
See Also:
Constant Field Values

convertOrderToInvoice

public String convertOrderToInvoice

renderInvoice

public String renderInvoice

outputFormat

protected String outputFormat

outputFilePath

protected String outputFilePath

templateFilePath

protected String templateFilePath

help

public boolean help
Constructor Detail

UBL4JConsoleOptions

public UBL4JConsoleOptions()
Method Detail

format

public static String format(UBL4JConsoleOptions options)


Copyright © 2011-2012 Plain Source. All Rights Reserved.