org.openinvoice.ubl4j.invoice
Class InvoiceTypeHelper

java.lang.Object
  extended by org.openinvoice.ubl4j.invoice.InvoiceTypeHelper

public final class InvoiceTypeHelper
extends Object

Since:
\$Date: 2011/12/11 19:44:32 $
Version:
\$Revision: e422941dbb29 $
Author:
\$Author: javad $

Constructor Summary
InvoiceTypeHelper()
           
 
Method Summary
static oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.TaxAmountType addTaxAmount(oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.TaxAmountType a1, oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.TaxAmountType a2)
           
static oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.BaseQuantityType createBaseQuantityType(String unitCode, BigDecimal quantity)
           
static un.unece.uncefact.codelist.specification._54217._2001.CurrencyCodeContentType createCurrencyCodeContentType(String iso2Code)
           
static File createDefaultInvoiceFile(oasis.names.specification.ubl.schema.xsd.invoice_2.InvoiceType invoiceType, String fileSuffix)
           
static String createDefaultInvoiceFileBaseName(oasis.names.specification.ubl.schema.xsd.invoice_2.InvoiceType invoiceType)
           
static oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.DocumentCurrencyCodeType createDocumentCurrencyCodeType(String iso2code)
           
static Locale createInvoiceTypeLocale(oasis.names.specification.ubl.schema.xsd.invoice_2.InvoiceType invoiceType)
           
static oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.LineExtensionAmountType createLineExtensionAmountType(BigDecimal value, un.unece.uncefact.codelist.specification._54217._2001.CurrencyCodeContentType currencyCode)
           
static oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.MonetaryTotalType createMonetaryTotalType(BigDecimal taxInclusiveAmountValue, BigDecimal lineExtensionAmountValue, un.unece.uncefact.codelist.specification._54217._2001.CurrencyCodeContentType currencyCode)
           
static oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.OrderReferenceType createOrderReferenceType(oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.IDType id, oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.SalesOrderIDType salesOrderId)
           
static oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.PaymentTermsType createPaymentTermsType()
           
static oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.PaymentTermsType createPaymentTermsType(oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.NoteType noteTypeTerms)
           
static oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.PaymentTermsType createPaymentTermsType(String terms)
           
static oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.TaxAmountType createTaxAmountType(BigDecimal value, un.unece.uncefact.codelist.specification._54217._2001.CurrencyCodeContentType currencyCode)
           
static oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.TaxTotalType createTaxTotalType(BigDecimal value, un.unece.uncefact.codelist.specification._54217._2001.CurrencyCodeContentType currencyCode)
           
static String getAccountingCustomerPartyName(oasis.names.specification.ubl.schema.xsd.invoice_2.InvoiceType invoiceType)
           
static String getAccountingSupplierPartyName(oasis.names.specification.ubl.schema.xsd.invoice_2.InvoiceType invoiceType)
           
static un.unece.uncefact.codelist.specification._54217._2001.CurrencyCodeContentType getFirstInvoiceLinePriceCurrency(oasis.names.specification.ubl.schema.xsd.invoice_2.InvoiceType invoiceType)
           
static String getInvoiceTypeCountryCode(oasis.names.specification.ubl.schema.xsd.invoice_2.InvoiceType invoiceType)
           
static String getInvoiceTypeLanguageCode(oasis.names.specification.ubl.schema.xsd.invoice_2.InvoiceType invoiceType)
           
static BigDecimal getTaxTotalAmount(oasis.names.specification.ubl.schema.xsd.invoice_2.InvoiceType invoiceType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvoiceTypeHelper

public InvoiceTypeHelper()
Method Detail

createInvoiceTypeLocale

public static Locale createInvoiceTypeLocale(oasis.names.specification.ubl.schema.xsd.invoice_2.InvoiceType invoiceType)

getInvoiceTypeCountryCode

public static String getInvoiceTypeCountryCode(oasis.names.specification.ubl.schema.xsd.invoice_2.InvoiceType invoiceType)

getInvoiceTypeLanguageCode

public static String getInvoiceTypeLanguageCode(oasis.names.specification.ubl.schema.xsd.invoice_2.InvoiceType invoiceType)

getTaxTotalAmount

public static BigDecimal getTaxTotalAmount(oasis.names.specification.ubl.schema.xsd.invoice_2.InvoiceType invoiceType)

getAccountingSupplierPartyName

public static String getAccountingSupplierPartyName(oasis.names.specification.ubl.schema.xsd.invoice_2.InvoiceType invoiceType)

getAccountingCustomerPartyName

public static String getAccountingCustomerPartyName(oasis.names.specification.ubl.schema.xsd.invoice_2.InvoiceType invoiceType)

createTaxTotalType

public static oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.TaxTotalType createTaxTotalType(BigDecimal value,
                                                                                                                   un.unece.uncefact.codelist.specification._54217._2001.CurrencyCodeContentType currencyCode)

createTaxAmountType

public static oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.TaxAmountType createTaxAmountType(BigDecimal value,
                                                                                                                 un.unece.uncefact.codelist.specification._54217._2001.CurrencyCodeContentType currencyCode)

createLineExtensionAmountType

public static oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.LineExtensionAmountType createLineExtensionAmountType(BigDecimal value,
                                                                                                                                     un.unece.uncefact.codelist.specification._54217._2001.CurrencyCodeContentType currencyCode)

createMonetaryTotalType

public static oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.MonetaryTotalType createMonetaryTotalType(BigDecimal taxInclusiveAmountValue,
                                                                                                                             BigDecimal lineExtensionAmountValue,
                                                                                                                             un.unece.uncefact.codelist.specification._54217._2001.CurrencyCodeContentType currencyCode)

addTaxAmount

public static oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.TaxAmountType addTaxAmount(oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.TaxAmountType a1,
                                                                                                          oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.TaxAmountType a2)

createOrderReferenceType

public static oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.OrderReferenceType createOrderReferenceType(oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.IDType id,
                                                                                                                               oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.SalesOrderIDType salesOrderId)

createPaymentTermsType

public static oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.PaymentTermsType createPaymentTermsType(oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.NoteType noteTypeTerms)

createPaymentTermsType

public static oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.PaymentTermsType createPaymentTermsType(String terms)

createDocumentCurrencyCodeType

public static oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.DocumentCurrencyCodeType createDocumentCurrencyCodeType(String iso2code)

createCurrencyCodeContentType

public static un.unece.uncefact.codelist.specification._54217._2001.CurrencyCodeContentType createCurrencyCodeContentType(String iso2Code)

createPaymentTermsType

public static oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.PaymentTermsType createPaymentTermsType()

createDefaultInvoiceFileBaseName

public static String createDefaultInvoiceFileBaseName(oasis.names.specification.ubl.schema.xsd.invoice_2.InvoiceType invoiceType)

createDefaultInvoiceFile

public static File createDefaultInvoiceFile(oasis.names.specification.ubl.schema.xsd.invoice_2.InvoiceType invoiceType,
                                            String fileSuffix)

getFirstInvoiceLinePriceCurrency

public static un.unece.uncefact.codelist.specification._54217._2001.CurrencyCodeContentType getFirstInvoiceLinePriceCurrency(oasis.names.specification.ubl.schema.xsd.invoice_2.InvoiceType invoiceType)

createBaseQuantityType

public static oasis.names.specification.ubl.schema.xsd.commonbasiccomponents_2.BaseQuantityType createBaseQuantityType(String unitCode,
                                                                                                                       BigDecimal quantity)


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