@Status(stage=DEVELOPMENT, unitTests=COMPLETE) @Review(by="Kees Schotanus", at="2011-03-31") @ThreadSafety(level=IMMUTABLE) public class BankIdentifierCode extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
MSG_BIC_BANK_CODE_IS_NOT_ALPHABETIC
Key to lookup: BIC contains non alphabetic bank code.
|
static String |
MSG_BIC_COUNTRY_DOES_NOT_EXIST
Key to lookup: BIC has incorrect country.
|
static String |
MSG_BIC_HAS_INCORRECT_LENGTH
Key to lookup: BIC has incorrect length.
|
static String |
MSG_BIC_HAS_LOWER_CASE
Key to lookup: BIC contains lower case letters.
|
static String |
MSG_BIC_IS_NOT_ALPHA_NUMERIC
Key to lookup: BIC contains non alpha numeric characters.
|
static String |
MSG_BIC_IS_NULL_OR_EMPTY
Key to lookup: BIC is null or empty.
|
static String |
MSG_BIC_IS_TEST_BIC
Key to lookup: BIC is a test BIC.
|
static String |
MSG_BIC_IS_UNCONNECTED_BIC
Key to lookup: BIC is an unconnected BIC.
|
Constructor and Description |
---|
BankIdentifierCode(String bankIdentifierCode)
Constructs this BankIdentifierCode from the supplied bankIdentifierCode.
|
Modifier and Type | Method and Description |
---|---|
static void |
checkBankIdentifierCode(String bankIdentifierCode)
Checks whether the supplied bankIdentifierCode is valid.
|
String |
getBankCode()
Gets the bank code from this Bank Identifier Code.
|
String |
getBranchCode()
Gets the optional branch code.
|
String |
getCountryCode()
Gets the country code from this Bank Identifier Code.
|
String |
getLocationCode()
Gets the location code from this Bank Identifier Code.
|
static boolean |
isValidBankIdentifierCode(String bankIdentifierCode)
Checks whether the supplied bankIdentifierCode is valid.
|
String |
toString()
Creates a String representation of this BIC, consisting of the BIC
itself.
|
public static final String MSG_BIC_IS_NULL_OR_EMPTY
public static final String MSG_BIC_HAS_INCORRECT_LENGTH
public static final String MSG_BIC_HAS_LOWER_CASE
public static final String MSG_BIC_IS_NOT_ALPHA_NUMERIC
public static final String MSG_BIC_BANK_CODE_IS_NOT_ALPHABETIC
public static final String MSG_BIC_COUNTRY_DOES_NOT_EXIST
public static final String MSG_BIC_IS_TEST_BIC
public static final String MSG_BIC_IS_UNCONNECTED_BIC
public BankIdentifierCode(String bankIdentifierCode) throws InvalidArgumentException
bankIdentifierCode
- The Bank Identifier Code (BIC).InvalidArgumentException
- When the supplied bandIdentifierCode is
not valid.
checkBankIdentifierCode(String)
for the definition of
a valid BIC.public static boolean isValidBankIdentifierCode(String bankIdentifierCode)
checkBankIdentifierCode(String)
.bankIdentifierCode
- The Bank Identifier Code to check.public static void checkBankIdentifierCode(String bankIdentifierCode) throws InvalidArgumentException
bankIdentifierCode
- The Bank Identifier Code to check.InvalidArgumentException
- When the supplied bankIdentifierCode is
not valid.public String getBankCode()
public String getCountryCode()
public String getLocationCode()
public String getBranchCode()
Copyright © 2008–2018. All rights reserved.