Package com.helger.en16931.cii2ubl
Class CIIToUBL21Converter
- java.lang.Object
-
- com.helger.en16931.cii2ubl.AbstractCIIToUBLConverter<CIIToUBL21Converter>
-
- com.helger.en16931.cii2ubl.CIIToUBL21Converter
-
- All Implemented Interfaces:
com.helger.commons.traits.IGenericImplTrait<CIIToUBL21Converter>
public class CIIToUBL21Converter extends AbstractCIIToUBLConverter<CIIToUBL21Converter>
CII to UBL 2.1 converter.- Author:
- Philip Helger
-
-
Field Summary
-
Fields inherited from class com.helger.en16931.cii2ubl.AbstractCIIToUBLConverter
DEFAULT_CARD_ACCOUNT_NETWORK_ID, DEFAULT_CUSTOMIZATION_ID, DEFAULT_PROFILE_ID, DEFAULT_SWAP_PRICE_SIGN_IF_NEEDED, DEFAULT_SWAP_QUANTITY_SIGN_IF_NEEDED, DEFAULT_UBL_CREATION_MODE, DEFAULT_VAT_SCHEME
-
-
Constructor Summary
Constructors Constructor Description CIIToUBL21Converter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SerializableconvertCIItoUBL(un.unece.uncefact.data.standard.crossindustryinvoice._100.CrossIndustryInvoiceType aCIIInvoice, com.helger.commons.error.list.ErrorList aErrorList)Convert CII to UBLoasis.names.specification.ubl.schema.xsd.creditnote_21.CreditNoteTypeconvertToCreditNote(un.unece.uncefact.data.standard.crossindustryinvoice._100.CrossIndustryInvoiceType aCIICreditNote, com.helger.commons.error.list.ErrorList aErrorList)oasis.names.specification.ubl.schema.xsd.invoice_21.InvoiceTypeconvertToInvoice(un.unece.uncefact.data.standard.crossindustryinvoice._100.CrossIndustryInvoiceType aCIIInvoice, com.helger.commons.error.list.ErrorList aErrorList)-
Methods inherited from class com.helger.en16931.cii2ubl.AbstractCIIToUBLConverter
_buildError, _copyAmount, _copyCode, _copyID, _copyName, _copyQuantity, _getDatePattern, _parseDate, _parseDate, _parseDate, _parseIndicator, canUseGlobalID, convertCIItoUBL, getAllUsableGlobalIDs, getCardAccountNetworkID, getCustomizationID, getProfileID, getUBLCreationMode, getVATScheme, ifNotEmpty, ifNotNull, isInvoiceType, isLT0Strict, isOriginatorDocumentReferenceTypeCode, isPaymentMeansCodeCreditTransfer, isPaymentMeansCodeDirectDebit, isPaymentMeansCodeOtherKnown, isPaymentMeansCodePaymentCard, isSwapPriceSignIfNeeded, isSwapQuantitySignIfNeeded, isValidDocumentReferenceTypeCode, parseDate, setCardAccountNetworkID, setCustomizationID, setProfileID, setSwapPriceSignIfNeeded, setSwapQuantitySignIfNeeded, setUBLCreationMode, setVATScheme, swapQuantityAndPriceIfNeeded
-
-
-
-
Method Detail
-
convertToInvoice
@Nullable public oasis.names.specification.ubl.schema.xsd.invoice_21.InvoiceType convertToInvoice(@Nonnull un.unece.uncefact.data.standard.crossindustryinvoice._100.CrossIndustryInvoiceType aCIIInvoice, @Nonnull com.helger.commons.error.list.ErrorList aErrorList)
-
convertToCreditNote
@Nullable public oasis.names.specification.ubl.schema.xsd.creditnote_21.CreditNoteType convertToCreditNote(@Nonnull un.unece.uncefact.data.standard.crossindustryinvoice._100.CrossIndustryInvoiceType aCIICreditNote, @Nonnull com.helger.commons.error.list.ErrorList aErrorList)
-
convertCIItoUBL
@Nullable public Serializable convertCIItoUBL(@Nonnull un.unece.uncefact.data.standard.crossindustryinvoice._100.CrossIndustryInvoiceType aCIIInvoice, @Nonnull com.helger.commons.error.list.ErrorList aErrorList)
Description copied from class:AbstractCIIToUBLConverterConvert CII to UBL- Specified by:
convertCIItoUBLin classAbstractCIIToUBLConverter<CIIToUBL21Converter>- Parameters:
aCIIInvoice- The CII invoice to be converted. May not benull. Ideally this is a valid CII invoice only and not some handcrafted domain object.aErrorList- Error list to be filled. May not benull.- Returns:
- The parsed
InvoiceTypeorCreditNoteType. May benullin case of error.
-
-