Class EbInterface40ToXRechnungUBLConverter
- java.lang.Object
-
- at.austriapro.ebinterface.xrechnung.AbstractEbInterfaceXRechnungConverter
-
- at.austriapro.ebinterface.xrechnung.to.AbstractEbInterfaceToXRechnungConverter
-
- at.austriapro.ebinterface.xrechnung.to.ubl.AbstractEbInterfaceToXRechnungUBLConverter
-
- at.austriapro.ebinterface.xrechnung.to.ubl.EbInterface40ToXRechnungUBLConverter
-
public class EbInterface40ToXRechnungUBLConverter extends AbstractEbInterfaceToXRechnungUBLConverter
Convert an ebInterface 4.0 invoice to an XRechnung UBL.- Author:
- Philip Helger
-
-
Field Summary
-
Fields inherited from class at.austriapro.ebinterface.xrechnung.to.AbstractEbInterfaceToXRechnungConverter
m_eXRechnungVersion
-
Fields inherited from class at.austriapro.ebinterface.xrechnung.AbstractEbInterfaceXRechnungConverter
m_aContentLocale, m_aDisplayLocale
-
-
Constructor Summary
Constructors Constructor Description EbInterface40ToXRechnungUBLConverter(Locale aDisplayLocale, Locale aContentLocale, EXRechnungVersion eXRechnungVersion)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description oasis.names.specification.ubl.schema.xsd.invoice_21.InvoiceTypeconvert(com.helger.ebinterface.v40.Ebi40InvoiceType aEbiInvoice, com.helger.commons.error.list.ErrorList aTransformErrorList)Convert the passed ebInterface invoice to an XRechnung.-
Methods inherited from class at.austriapro.ebinterface.xrechnung.to.ubl.AbstractEbInterfaceToXRechnungUBLConverter
modifyDefaultUBLInvoice
-
Methods inherited from class at.austriapro.ebinterface.xrechnung.to.AbstractEbInterfaceToXRechnungConverter
getXRechnungVersion
-
Methods inherited from class at.austriapro.ebinterface.xrechnung.AbstractEbInterfaceXRechnungConverter
countWarnings, errorText, warningText
-
-
-
-
Constructor Detail
-
EbInterface40ToXRechnungUBLConverter
public EbInterface40ToXRechnungUBLConverter(@Nonnull Locale aDisplayLocale, @Nonnull Locale aContentLocale, @Nonnull EXRechnungVersion eXRechnungVersion)
Constructor.- Parameters:
aDisplayLocale- The display locale, e.g. used for the error message. May not benull.aContentLocale- The content locale of the invoice. May not benull.eXRechnungVersion- The target XRechnung version. May not benull.
-
-
Method Detail
-
convert
@Nullable public oasis.names.specification.ubl.schema.xsd.invoice_21.InvoiceType convert(@Nonnull com.helger.ebinterface.v40.Ebi40InvoiceType aEbiInvoice, @Nonnull com.helger.commons.error.list.ErrorList aTransformErrorList)
Convert the passed ebInterface invoice to an XRechnung. This converts the ebInterface first to generic UBL, than adds some XRechnung specific elements and finally validates the XRechnung according to the official Schematrons.- Parameters:
aEbiInvoice- The ebInterface invoice to be converted. May not benull.aTransformErrorList- The error list that will contain the errors afterwards. May not benull.- Returns:
nullonly if the basic conversion to UBL fails.
-
-