public final class BbanStructureValidations
extends java.lang.Object
BBAN is short for Basic Bank Account Number. It represents a country-specific bank account number. The BBAN is the last part of the IBAN when used for international funds transfers. Every country has it's specific BBAN format and length depending on it's own standards.
Modifier and Type | Method and Description |
---|---|
BbanStructureValidations |
add(BbanStructureDTO bbanStructure)
Adds a new country BBAN structure configuration
|
boolean |
contains(java.lang.String countryCode)
Checks if the given country is configured for BBAN validations
|
BbanStructureDTO |
forCountry(java.lang.String countryCode)
Gets the specific BBAN structure for a given country code.
|
java.util.List<BbanStructureDTO> |
getBbanStructures()
Gets the BBAN structure entries
|
static BbanStructureValidations |
getInstance() |
void |
setBbanStructures(java.util.List<BbanStructureDTO> bbanStructures)
Sets the BBAN structure entries
|
java.util.List<java.lang.String> |
supportedCountries()
Gets the list of countries configured for BBAN validation
|
public static BbanStructureValidations getInstance()
public java.util.List<BbanStructureDTO> getBbanStructures()
public void setBbanStructures(java.util.List<BbanStructureDTO> bbanStructures)
bbanStructures
- the list of BBAN structures entries to set.add(BbanStructureDTO)
public BbanStructureDTO forCountry(java.lang.String countryCode)
countryCode
- the country code to search (two letters ISO country code)contains(String)
public boolean contains(java.lang.String countryCode)
countryCode
- the country code to check (two letters ISO country code)public java.util.List<java.lang.String> supportedCountries()
public BbanStructureValidations add(BbanStructureDTO bbanStructure)
bbanStructure
- the specific BBAN configuration to add