public static void initSimplerInvoicing ( @ Nonnull final ValidationExecutorSetRegistry aRegistry ) { ValueEnforcer . notNull ( aRegistry , "Registry" ) ; // For better error messages LocationBeautifierSPI . addMappings ( UBL21NamespaceContext . getInstance ( ) ) ; // SimplerInvoicing is self-contained final boolean bNotDeprecated = false ; // 1.1 aRegistry . registerValidationExecutorSet ( ValidationExecutorSet . create ( VID_SI_INVOICE_V11 , "Simplerinvoicing Invoice 1.1" , bNotDeprecated , ValidationExecutorXSD . create ( EUBL21DocumentType . INVOICE ) , _createXSLT ( INVOICE_SI11 ) ) ) ; aRegistry . registerValidationExecutorSet ( ValidationExecutorSet . create ( VID_SI_INVOICE_V11_STRICT , "Simplerinvoicing Invoice 1.1 (strict)" , bNotDeprecated , ValidationExecutorXSD . create ( EUBL21DocumentType . INVOICE ) , _createXSLT ( INVOICE_SI11_STRICT ) ) ) ; // 1.2 aRegistry . registerValidationExecutorSet ( ValidationExecutorSet . create ( VID_SI_INVOICE_V12 , "Simplerinvoicing Invoice 1.2" , bNotDeprecated , ValidationExecutorXSD . create ( EUBL21DocumentType . INVOICE ) , _createXSLT ( INVOICE_SI12 ) ) ) ; aRegistry . registerValidationExecutorSet ( ValidationExecutorSet . create ( VID_SI_ORDER_V12 , "Simplerinvoicing Order 1.2" , bNotDeprecated , ValidationExecutorXSD . create ( EUBL21DocumentType . ORDER ) , _createXSLT ( ORDER_SI12 ) ) ) ; // 2.0 aRegistry . registerValidationExecutorSet ( ValidationExecutorSet . create ( VID_SI_INVOICE_V20 , "Simplerinvoicing Invoice 2.0" , bNotDeprecated , ValidationExecutorXSD . create ( EUBL21DocumentType . INVOICE ) , _createXSLT ( INVOICE_SI20 ) ) ) ; aRegistry . registerValidationExecutorSet ( ValidationExecutorSet . create ( VID_SI_CREDIT_NOTE_V20 , "Simplerinvoicing CreditNote 2.0" , bNotDeprecated , ValidationExecutorXSD . create ( EUBL21DocumentType . CREDIT_NOTE ) , _createXSLT ( INVOICE_SI20 ) ) ) ; }
Register all standard SimplerInvoicing validation execution sets to the provided registry .