public static void validate ( final String bic ) throws BicFormatException , UnsupportedCountryException { try { validateEmpty ( bic ) ; validateLength ( bic ) ; validateCase ( bic ) ; validateBankCode ( bic ) ; validateCountryCode ( bic ) ; validateLocationCode ( bic ) ; if ( hasBranchCode ( bic ) ) { validateBranchCode ( bic ) ; } } catch ( UnsupportedCountryException e ) { throw e ; } catch ( RuntimeException e ) { throw new BicFormatException ( UNKNOWN , e . getMessage ( ) ) ; } }
Validates bic .