public static void initUBL20 ( @ Nonnull final ValidationExecutorSetRegistry aRegistry ) { ValueEnforcer . notNull ( aRegistry , "Registry" ) ; // For better error messages LocationBeautifierSPI . addMappings ( UBL20NamespaceContext . getInstance ( ) ) ; final boolean bNotDeprecated = false ; for ( final EUBL20DocumentType e : EUBL20DocumentType . values ( ) ) { final String sName = e . getLocalName ( ) ; final VESID aVESID = new VESID ( GROUP_ID , sName . toLowerCase ( Locale . US ) , VERSION_20 ) ; // No Schematrons here aRegistry . registerValidationExecutorSet ( ValidationExecutorSet . create ( aVESID , "UBL " + sName + " " + VERSION_20 , bNotDeprecated , ValidationExecutorXSD . create ( e ) ) ) ; } }
Register all standard UBL 2 . 0 validation execution sets to the provided registry .