Class EbInterface42ToXRechnungUBLConverter
java.lang.Object
at.austriapro.ebinterface.xrechnung.AbstractEbInterfaceXRechnungConverter
at.austriapro.ebinterface.xrechnung.to.AbstractEbInterfaceToXRechnungConverter
at.austriapro.ebinterface.xrechnung.to.ubl.AbstractEbInterfaceToXRechnungUBLConverter<EbInterface42ToXRechnungUBLConverter>
at.austriapro.ebinterface.xrechnung.to.ubl.EbInterface42ToXRechnungUBLConverter
- All Implemented Interfaces:
com.helger.commons.traits.IGenericImplTrait<EbInterface42ToXRechnungUBLConverter>
public class EbInterface42ToXRechnungUBLConverter
extends AbstractEbInterfaceToXRechnungUBLConverter<EbInterface42ToXRechnungUBLConverter>
Convert an ebInterface 4.2 invoice to an XRechnung UBL.
- Author:
- Philip Helger
-
Field Summary
Fields inherited from class at.austriapro.ebinterface.xrechnung.to.AbstractEbInterfaceToXRechnungConverter
m_eXRechnungVersionFields inherited from class at.austriapro.ebinterface.xrechnung.AbstractEbInterfaceXRechnungConverter
m_aContentLocale, m_aDisplayLocale -
Constructor Summary
ConstructorsConstructorDescriptionEbInterface42ToXRechnungUBLConverter(Locale aDisplayLocale, Locale aContentLocale, EXRechnungVersion eXRechnungVersion) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionoasis.names.specification.ubl.schema.xsd.invoice_21.InvoiceTypeconvert(com.helger.ebinterface.v42.Ebi42InvoiceType 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
getCustomerEndpointID, getCustomerEndpointIDScheme, getSupplierEndpointID, getSupplierEndpointIDScheme, modifyDefaultUBLInvoice, setCustomerEndpointID, setCustomerEndpointIDScheme, setSupplierEndpointID, setSupplierEndpointIDSchemeMethods inherited from class at.austriapro.ebinterface.xrechnung.to.AbstractEbInterfaceToXRechnungConverter
getXRechnungVersionMethods inherited from class at.austriapro.ebinterface.xrechnung.AbstractEbInterfaceXRechnungConverter
countWarnings, errorText, warningTextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.helger.commons.traits.IGenericImplTrait
thisAsT
-
Constructor Details
-
EbInterface42ToXRechnungUBLConverter
public EbInterface42ToXRechnungUBLConverter(@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 Details
-
convert
@Nullable public oasis.names.specification.ubl.schema.xsd.invoice_21.InvoiceType convert(@Nonnull com.helger.ebinterface.v42.Ebi42InvoiceType 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.
-