Class BbanStructureValidations


  • public final class BbanStructureValidations
    extends java.lang.Object
    This singleton handles all the available BBAN structure entries.

    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.

    Since:
    7.9.7
    • Method Detail

      • getBbanStructures

        public java.util.List<BbanStructureDTO> getBbanStructures()
        Gets the BBAN structure entries
        Returns:
        the list of all available BBAN structures entries.
      • setBbanStructures

        public void setBbanStructures​(java.util.List<BbanStructureDTO> bbanStructures)
        Sets the BBAN structure entries
        Parameters:
        bbanStructures - the list of BBAN structures entries to set.
        See Also:
        add(BbanStructureDTO)
      • forCountry

        public BbanStructureDTO forCountry​(java.lang.String countryCode)
        Gets the specific BBAN structure for a given country code.
        Parameters:
        countryCode - the country code to search (two letters ISO country code)
        Returns:
        BbanStructure for specified country or null if country is not supported.
        See Also:
        contains(String)
      • contains

        public boolean contains​(java.lang.String countryCode)
        Checks if the given country is configured for BBAN validations
        Parameters:
        countryCode - the country code to check (two letters ISO country code)
        Returns:
        true if a BBAN structure exists for the given country
      • supportedCountries

        public java.util.List<java.lang.String> supportedCountries()
        Gets the list of countries configured for BBAN validation
        Returns:
        list of countries
      • add

        public BbanStructureValidations add​(BbanStructureDTO bbanStructure)
        Adds a new country BBAN structure configuration
        Parameters:
        bbanStructure - the specific BBAN configuration to add
        Returns:
        this object