com.itextpdf.text.zugferd.profiles
Class BasicProfileImp

java.lang.Object
  extended by com.itextpdf.text.zugferd.profiles.BasicProfileImp
All Implemented Interfaces:
BasicProfile
Direct Known Subclasses:
ComfortProfileImp

public class BasicProfileImp
extends Object
implements BasicProfile

This implementation of the BasicProfile contains member-variables that store all the data needed to create an XML attachment for a ZUGFeRD invoice that conforms with the Basic profile.


Field Summary
protected  String allowanceTotalAmount
           
protected  String allowanceTotalAmountCurrencyID
           
protected  String buyerCityName
           
protected  String buyerCountryID
           
protected  String buyerLineOne
           
protected  String buyerLineTwo
           
protected  String buyerName
           
protected  String buyerPostcode
           
protected  List<String> buyerTaxRegistrationID
           
protected  List<String> buyerTaxRegistrationSchemeID
           
protected  String chargeTotalAmount
           
protected  String chargeTotalAmountCurrencyID
           
protected  Date date
           
protected  String dateFormat
           
protected  Date deliveryDate
           
protected  String deliveryDateFormat
           
protected  String grandTotalAmount
           
protected  String grandTotalAmountCurrencyID
           
protected  String id
           
protected  String invoiceCurrencyCode
           
protected  List<String> lineItemBilledQuantity
           
protected  List<String> lineItemBilledQuantityUnitCode
           
protected  List<String> lineItemSpecifiedTradeProductName
           
protected  String lineTotalAmount
           
protected  String lineTotalAmountCurrencyID
           
protected  String name
           
protected  List<String[]> notes
           
protected  List<String> paymentMeansID
           
protected  List<String> paymentMeansPayeeAccountIBAN
           
protected  List<String> paymentMeansPayeeAccountName
           
protected  List<String> paymentMeansPayeeAccountProprietaryID
           
protected  List<String> paymentMeansPayeeFinancialInstitutionBIC
           
protected  List<String> paymentMeansPayeeFinancialInstitutionGermanBankleitzahlID
           
protected  List<String> paymentMeansPayeeFinancialInstitutionName
           
protected  List<String> paymentMeansSchemeAgencyID
           
protected  String paymentReference
           
protected  String sellerCityName
           
protected  String sellerCountryID
           
protected  String sellerLineOne
           
protected  String sellerLineTwo
           
protected  String sellerName
           
protected  String sellerPostcode
           
protected  List<String> sellerTaxRegistrationID
           
protected  List<String> sellerTaxRegistrationSchemeID
           
protected  List<String> taxApplicablePercent
           
protected  List<String> taxBasisAmount
           
protected  List<String> taxBasisAmountCurrencyID
           
protected  String taxBasisTotalAmount
           
protected  String taxBasisTotalAmountCurrencyID
           
protected  List<String> taxCalculatedAmount
           
protected  List<String> taxCalculatedAmountCurrencyID
           
protected  String taxTotalAmount
           
protected  String taxTotalAmountCurrencyID
           
protected  List<String> taxTypeCode
           
protected  boolean test
           
protected  String typeCode
           
 
Constructor Summary
BasicProfileImp()
           
 
Method Summary
 void addApplicableTradeTax(String calculatedAmount, String calculatedAmountCurrencyID, String typeCode, String basisAmount, String basisAmountCurrencyID, String applicablePercent)
           
 void addBuyerTaxRegistration(String schemeID, String taxId)
           
 void addIncludedSupplyChainTradeLineItem(String billedQuantity, String billedQuantityUnitCode, String specifiedTradeProductName)
           
 void addNote(String[] note)
           
 void addPaymentMeans(String schemeAgencyID, String id, String iban, String accountname, String proprietaryID, String bic, String germanBankleitzahlID, String institutionname)
           
 void addSellerTaxRegistration(String schemeID, String taxId)
           
 String getAllowanceTotalAmount()
           
 String getAllowanceTotalAmountCurrencyID()
           
 String getBuyerCityName()
           
 String getBuyerCountryID()
           
 String getBuyerLineOne()
           
 String getBuyerLineTwo()
           
 String getBuyerName()
           
 String getBuyerPostcode()
           
 String[] getBuyerTaxRegistrationID()
           
 String[] getBuyerTaxRegistrationSchemeID()
           
 String getChargeTotalAmount()
           
 String getChargeTotalAmountCurrencyID()
           
 Date getDateTime()
           
 String getDateTimeFormat()
           
 Date getDeliveryDateTime()
           
 String getDeliveryDateTimeFormat()
           
 String getGrandTotalAmount()
           
 String getGrandTotalAmountCurrencyID()
           
 String getId()
           
 String getInvoiceCurrencyCode()
           
 String[] getLineItemBilledQuantity()
           
 String[] getLineItemBilledQuantityUnitCode()
           
 String[] getLineItemSpecifiedTradeProductName()
           
 String getLineTotalAmount()
           
 String getLineTotalAmountCurrencyID()
           
 String getName()
           
 String[][] getNotes()
           
 String[] getPaymentMeansID()
           
 String[] getPaymentMeansPayeeAccountAccountName()
           
 String[] getPaymentMeansPayeeAccountIBAN()
           
 String[] getPaymentMeansPayeeAccountProprietaryID()
           
 String[] getPaymentMeansPayeeFinancialInstitutionBIC()
           
 String[] getPaymentMeansPayeeFinancialInstitutionGermanBankleitzahlID()
           
 String[] getPaymentMeansPayeeFinancialInstitutionName()
           
 String[] getPaymentMeansSchemeAgencyID()
           
 String getPaymentReference()
           
 String getSellerCityName()
           
 String getSellerCountryID()
           
 String getSellerLineOne()
           
 String getSellerLineTwo()
           
 String getSellerName()
           
 String getSellerPostcode()
           
 String[] getSellerTaxRegistrationID()
           
 String[] getSellerTaxRegistrationSchemeID()
           
 String[] getTaxApplicablePercent()
           
 String[] getTaxBasisAmount()
           
 String[] getTaxBasisAmountCurrencyID()
           
 String getTaxBasisTotalAmount()
           
 String getTaxBasisTotalAmountCurrencyID()
           
 String[] getTaxCalculatedAmount()
           
 String[] getTaxCalculatedAmountCurrencyID()
           
 String getTaxTotalAmount()
           
 String getTaxTotalAmountCurrencyID()
           
 String[] getTaxTypeCode()
           
 boolean getTestIndicator()
           
 String getTypeCode()
           
 void setBuyerCityName(String buyerCityName)
           
 void setBuyerCountryID(String buyerCountryID)
           
 void setBuyerLineOne(String buyerLineOne)
           
 void setBuyerLineTwo(String buyerLineTwo)
           
 void setBuyerName(String buyerName)
           
 void setBuyerPostcode(String buyerPostcode)
           
 void setDate(Date date, String dateFormat)
           
 void setDeliveryDate(Date deliveryDate, String deliveryDateFormat)
           
 void setId(String id)
           
 void setInvoiceCurrencyCode(String invoiceCurrencyCode)
           
 void setMonetarySummation(String lineTotalAmount, String lineTotalAmountCurrencyID, String chargeTotalAmount, String chargeTotalAmountCurrencyID, String allowanceTotalAmount, String allowanceTotalAmountCurrencyID, String taxBasisTotalAmount, String taxBasisTotalAmountCurrencyID, String taxTotalAmount, String taxTotalAmountCurrencyID, String grandTotalAmount, String grandTotalAmountCurrencyID)
           
 void setName(String name)
           
 void setPaymentReference(String paymentReference)
           
 void setSellerCityName(String sellerCityName)
           
 void setSellerCountryID(String sellerCountryID)
           
 void setSellerLineOne(String sellerLineOne)
           
 void setSellerLineTwo(String sellerLineTwo)
           
 void setSellerName(String sellerName)
           
 void setSellerPostcode(String sellerPostcode)
           
 void setTest(boolean test)
           
 void setTypeCode(String typeCode)
           
protected  String[] to1DArray(List<String> list)
           
protected  Boolean[] to1DArrayB(List<Boolean> list)
           
protected  String[][] to2DArray(List<String[]> list)
           
protected  Boolean[][] to2DArrayB(List<Boolean[]> list)
           
protected  String[][][] to3DArray(List<String[][]> list)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

test

protected boolean test

id

protected String id

name

protected String name

typeCode

protected String typeCode

date

protected Date date

dateFormat

protected String dateFormat

notes

protected List<String[]> notes

sellerName

protected String sellerName

sellerPostcode

protected String sellerPostcode

sellerLineOne

protected String sellerLineOne

sellerLineTwo

protected String sellerLineTwo

sellerCityName

protected String sellerCityName

sellerCountryID

protected String sellerCountryID

sellerTaxRegistrationID

protected List<String> sellerTaxRegistrationID

sellerTaxRegistrationSchemeID

protected List<String> sellerTaxRegistrationSchemeID

buyerName

protected String buyerName

buyerPostcode

protected String buyerPostcode

buyerLineOne

protected String buyerLineOne

buyerLineTwo

protected String buyerLineTwo

buyerCityName

protected String buyerCityName

buyerCountryID

protected String buyerCountryID

buyerTaxRegistrationID

protected List<String> buyerTaxRegistrationID

buyerTaxRegistrationSchemeID

protected List<String> buyerTaxRegistrationSchemeID

deliveryDate

protected Date deliveryDate

deliveryDateFormat

protected String deliveryDateFormat

paymentReference

protected String paymentReference

invoiceCurrencyCode

protected String invoiceCurrencyCode

paymentMeansID

protected List<String> paymentMeansID

paymentMeansSchemeAgencyID

protected List<String> paymentMeansSchemeAgencyID

paymentMeansPayeeAccountIBAN

protected List<String> paymentMeansPayeeAccountIBAN

paymentMeansPayeeAccountName

protected List<String> paymentMeansPayeeAccountName

paymentMeansPayeeAccountProprietaryID

protected List<String> paymentMeansPayeeAccountProprietaryID

paymentMeansPayeeFinancialInstitutionBIC

protected List<String> paymentMeansPayeeFinancialInstitutionBIC

paymentMeansPayeeFinancialInstitutionGermanBankleitzahlID

protected List<String> paymentMeansPayeeFinancialInstitutionGermanBankleitzahlID

paymentMeansPayeeFinancialInstitutionName

protected List<String> paymentMeansPayeeFinancialInstitutionName

taxCalculatedAmount

protected List<String> taxCalculatedAmount

taxCalculatedAmountCurrencyID

protected List<String> taxCalculatedAmountCurrencyID

taxTypeCode

protected List<String> taxTypeCode

taxBasisAmount

protected List<String> taxBasisAmount

taxBasisAmountCurrencyID

protected List<String> taxBasisAmountCurrencyID

taxApplicablePercent

protected List<String> taxApplicablePercent

lineTotalAmount

protected String lineTotalAmount

lineTotalAmountCurrencyID

protected String lineTotalAmountCurrencyID

chargeTotalAmount

protected String chargeTotalAmount

chargeTotalAmountCurrencyID

protected String chargeTotalAmountCurrencyID

allowanceTotalAmount

protected String allowanceTotalAmount

allowanceTotalAmountCurrencyID

protected String allowanceTotalAmountCurrencyID

taxBasisTotalAmount

protected String taxBasisTotalAmount

taxBasisTotalAmountCurrencyID

protected String taxBasisTotalAmountCurrencyID

taxTotalAmount

protected String taxTotalAmount

taxTotalAmountCurrencyID

protected String taxTotalAmountCurrencyID

grandTotalAmount

protected String grandTotalAmount

grandTotalAmountCurrencyID

protected String grandTotalAmountCurrencyID

lineItemBilledQuantity

protected List<String> lineItemBilledQuantity

lineItemBilledQuantityUnitCode

protected List<String> lineItemBilledQuantityUnitCode

lineItemSpecifiedTradeProductName

protected List<String> lineItemSpecifiedTradeProductName
Constructor Detail

BasicProfileImp

public BasicProfileImp()
Method Detail

getTestIndicator

public boolean getTestIndicator()
Specified by:
getTestIndicator in interface BasicProfile

getId

public String getId()
Specified by:
getId in interface BasicProfile

getName

public String getName()
Specified by:
getName in interface BasicProfile

getTypeCode

public String getTypeCode()
Specified by:
getTypeCode in interface BasicProfile

getDateTime

public Date getDateTime()
Specified by:
getDateTime in interface BasicProfile

getDateTimeFormat

public String getDateTimeFormat()
Specified by:
getDateTimeFormat in interface BasicProfile

getNotes

public String[][] getNotes()
Specified by:
getNotes in interface BasicProfile

getSellerName

public String getSellerName()
Specified by:
getSellerName in interface BasicProfile

getSellerPostcode

public String getSellerPostcode()
Specified by:
getSellerPostcode in interface BasicProfile

getSellerLineOne

public String getSellerLineOne()
Specified by:
getSellerLineOne in interface BasicProfile

getSellerLineTwo

public String getSellerLineTwo()
Specified by:
getSellerLineTwo in interface BasicProfile

getSellerCityName

public String getSellerCityName()
Specified by:
getSellerCityName in interface BasicProfile

getSellerCountryID

public String getSellerCountryID()
Specified by:
getSellerCountryID in interface BasicProfile

getSellerTaxRegistrationID

public String[] getSellerTaxRegistrationID()
Specified by:
getSellerTaxRegistrationID in interface BasicProfile

getSellerTaxRegistrationSchemeID

public String[] getSellerTaxRegistrationSchemeID()
Specified by:
getSellerTaxRegistrationSchemeID in interface BasicProfile

getBuyerName

public String getBuyerName()
Specified by:
getBuyerName in interface BasicProfile

getBuyerPostcode

public String getBuyerPostcode()
Specified by:
getBuyerPostcode in interface BasicProfile

getBuyerLineOne

public String getBuyerLineOne()
Specified by:
getBuyerLineOne in interface BasicProfile

getBuyerLineTwo

public String getBuyerLineTwo()
Specified by:
getBuyerLineTwo in interface BasicProfile

getBuyerCityName

public String getBuyerCityName()
Specified by:
getBuyerCityName in interface BasicProfile

getBuyerCountryID

public String getBuyerCountryID()
Specified by:
getBuyerCountryID in interface BasicProfile

getBuyerTaxRegistrationID

public String[] getBuyerTaxRegistrationID()
Specified by:
getBuyerTaxRegistrationID in interface BasicProfile

getBuyerTaxRegistrationSchemeID

public String[] getBuyerTaxRegistrationSchemeID()
Specified by:
getBuyerTaxRegistrationSchemeID in interface BasicProfile

getDeliveryDateTime

public Date getDeliveryDateTime()
Specified by:
getDeliveryDateTime in interface BasicProfile

getDeliveryDateTimeFormat

public String getDeliveryDateTimeFormat()
Specified by:
getDeliveryDateTimeFormat in interface BasicProfile

getPaymentReference

public String getPaymentReference()
Specified by:
getPaymentReference in interface BasicProfile

getInvoiceCurrencyCode

public String getInvoiceCurrencyCode()
Specified by:
getInvoiceCurrencyCode in interface BasicProfile

getPaymentMeansID

public String[] getPaymentMeansID()
Specified by:
getPaymentMeansID in interface BasicProfile

getPaymentMeansSchemeAgencyID

public String[] getPaymentMeansSchemeAgencyID()
Specified by:
getPaymentMeansSchemeAgencyID in interface BasicProfile

getPaymentMeansPayeeAccountIBAN

public String[] getPaymentMeansPayeeAccountIBAN()
Specified by:
getPaymentMeansPayeeAccountIBAN in interface BasicProfile

getPaymentMeansPayeeAccountAccountName

public String[] getPaymentMeansPayeeAccountAccountName()
Specified by:
getPaymentMeansPayeeAccountAccountName in interface BasicProfile

getPaymentMeansPayeeAccountProprietaryID

public String[] getPaymentMeansPayeeAccountProprietaryID()
Specified by:
getPaymentMeansPayeeAccountProprietaryID in interface BasicProfile

getPaymentMeansPayeeFinancialInstitutionBIC

public String[] getPaymentMeansPayeeFinancialInstitutionBIC()
Specified by:
getPaymentMeansPayeeFinancialInstitutionBIC in interface BasicProfile

getPaymentMeansPayeeFinancialInstitutionGermanBankleitzahlID

public String[] getPaymentMeansPayeeFinancialInstitutionGermanBankleitzahlID()
Specified by:
getPaymentMeansPayeeFinancialInstitutionGermanBankleitzahlID in interface BasicProfile

getPaymentMeansPayeeFinancialInstitutionName

public String[] getPaymentMeansPayeeFinancialInstitutionName()
Specified by:
getPaymentMeansPayeeFinancialInstitutionName in interface BasicProfile

getTaxCalculatedAmount

public String[] getTaxCalculatedAmount()
Specified by:
getTaxCalculatedAmount in interface BasicProfile

getTaxCalculatedAmountCurrencyID

public String[] getTaxCalculatedAmountCurrencyID()
Specified by:
getTaxCalculatedAmountCurrencyID in interface BasicProfile

getTaxTypeCode

public String[] getTaxTypeCode()
Specified by:
getTaxTypeCode in interface BasicProfile

getTaxBasisAmount

public String[] getTaxBasisAmount()
Specified by:
getTaxBasisAmount in interface BasicProfile

getTaxBasisAmountCurrencyID

public String[] getTaxBasisAmountCurrencyID()
Specified by:
getTaxBasisAmountCurrencyID in interface BasicProfile

getTaxApplicablePercent

public String[] getTaxApplicablePercent()
Specified by:
getTaxApplicablePercent in interface BasicProfile

getLineTotalAmount

public String getLineTotalAmount()
Specified by:
getLineTotalAmount in interface BasicProfile

getLineTotalAmountCurrencyID

public String getLineTotalAmountCurrencyID()
Specified by:
getLineTotalAmountCurrencyID in interface BasicProfile

getChargeTotalAmount

public String getChargeTotalAmount()
Specified by:
getChargeTotalAmount in interface BasicProfile

getChargeTotalAmountCurrencyID

public String getChargeTotalAmountCurrencyID()
Specified by:
getChargeTotalAmountCurrencyID in interface BasicProfile

getAllowanceTotalAmount

public String getAllowanceTotalAmount()
Specified by:
getAllowanceTotalAmount in interface BasicProfile

getAllowanceTotalAmountCurrencyID

public String getAllowanceTotalAmountCurrencyID()
Specified by:
getAllowanceTotalAmountCurrencyID in interface BasicProfile

getTaxBasisTotalAmount

public String getTaxBasisTotalAmount()
Specified by:
getTaxBasisTotalAmount in interface BasicProfile

getTaxBasisTotalAmountCurrencyID

public String getTaxBasisTotalAmountCurrencyID()
Specified by:
getTaxBasisTotalAmountCurrencyID in interface BasicProfile

getTaxTotalAmount

public String getTaxTotalAmount()
Specified by:
getTaxTotalAmount in interface BasicProfile

getTaxTotalAmountCurrencyID

public String getTaxTotalAmountCurrencyID()
Specified by:
getTaxTotalAmountCurrencyID in interface BasicProfile

getGrandTotalAmount

public String getGrandTotalAmount()
Specified by:
getGrandTotalAmount in interface BasicProfile

getGrandTotalAmountCurrencyID

public String getGrandTotalAmountCurrencyID()
Specified by:
getGrandTotalAmountCurrencyID in interface BasicProfile

getLineItemBilledQuantity

public String[] getLineItemBilledQuantity()
Specified by:
getLineItemBilledQuantity in interface BasicProfile

getLineItemBilledQuantityUnitCode

public String[] getLineItemBilledQuantityUnitCode()
Specified by:
getLineItemBilledQuantityUnitCode in interface BasicProfile

getLineItemSpecifiedTradeProductName

public String[] getLineItemSpecifiedTradeProductName()
Specified by:
getLineItemSpecifiedTradeProductName in interface BasicProfile

setTest

public void setTest(boolean test)

setId

public void setId(String id)

setName

public void setName(String name)

setTypeCode

public void setTypeCode(String typeCode)

setDate

public void setDate(Date date,
                    String dateFormat)

addNote

public void addNote(String[] note)

setSellerName

public void setSellerName(String sellerName)

setSellerPostcode

public void setSellerPostcode(String sellerPostcode)

setSellerLineOne

public void setSellerLineOne(String sellerLineOne)

setSellerLineTwo

public void setSellerLineTwo(String sellerLineTwo)

setSellerCityName

public void setSellerCityName(String sellerCityName)

setSellerCountryID

public void setSellerCountryID(String sellerCountryID)

addSellerTaxRegistration

public void addSellerTaxRegistration(String schemeID,
                                     String taxId)

setBuyerName

public void setBuyerName(String buyerName)

setBuyerPostcode

public void setBuyerPostcode(String buyerPostcode)

setBuyerLineOne

public void setBuyerLineOne(String buyerLineOne)

setBuyerLineTwo

public void setBuyerLineTwo(String buyerLineTwo)

setBuyerCityName

public void setBuyerCityName(String buyerCityName)

setBuyerCountryID

public void setBuyerCountryID(String buyerCountryID)

addBuyerTaxRegistration

public void addBuyerTaxRegistration(String schemeID,
                                    String taxId)

setDeliveryDate

public void setDeliveryDate(Date deliveryDate,
                            String deliveryDateFormat)

setPaymentReference

public void setPaymentReference(String paymentReference)

setInvoiceCurrencyCode

public void setInvoiceCurrencyCode(String invoiceCurrencyCode)

addPaymentMeans

public void addPaymentMeans(String schemeAgencyID,
                            String id,
                            String iban,
                            String accountname,
                            String proprietaryID,
                            String bic,
                            String germanBankleitzahlID,
                            String institutionname)

addApplicableTradeTax

public void addApplicableTradeTax(String calculatedAmount,
                                  String calculatedAmountCurrencyID,
                                  String typeCode,
                                  String basisAmount,
                                  String basisAmountCurrencyID,
                                  String applicablePercent)

setMonetarySummation

public void setMonetarySummation(String lineTotalAmount,
                                 String lineTotalAmountCurrencyID,
                                 String chargeTotalAmount,
                                 String chargeTotalAmountCurrencyID,
                                 String allowanceTotalAmount,
                                 String allowanceTotalAmountCurrencyID,
                                 String taxBasisTotalAmount,
                                 String taxBasisTotalAmountCurrencyID,
                                 String taxTotalAmount,
                                 String taxTotalAmountCurrencyID,
                                 String grandTotalAmount,
                                 String grandTotalAmountCurrencyID)

addIncludedSupplyChainTradeLineItem

public void addIncludedSupplyChainTradeLineItem(String billedQuantity,
                                                String billedQuantityUnitCode,
                                                String specifiedTradeProductName)

to1DArray

protected String[] to1DArray(List<String> list)

to1DArrayB

protected Boolean[] to1DArrayB(List<Boolean> list)

to2DArray

protected String[][] to2DArray(List<String[]> list)

to2DArrayB

protected Boolean[][] to2DArrayB(List<Boolean[]> list)

to3DArray

protected String[][][] to3DArray(List<String[][]> list)


Copyright © 2015. All Rights Reserved.