A fixture to generate an International Bank Account Number (IBAN)
More...
|
| IbanGenerator () |
| Constructs a new IBAN Generator. More...
|
|
Boolean | validateDutchIban (String iban) |
| Validates a Dutch IBAN of 18 characters long Using format NLkk BBBB CCCC CCCC CK: NL countryCode kk controlValue BBBB bankCode CCCC CCCC CK accountNumber (including controlvalue) More...
|
|
|
static final int | HIGH = 999999900 |
|
static final int | LOW = 100000000 |
|
A fixture to generate an International Bank Account Number (IBAN)
- Author
- Pascal Smeets https://nl.wikipedia.org/wiki/International_Bank_Account_Number
Definition at line 13 of file IbanGenerator.java.
◆ IbanGenerator()
nl.psek.fitnesse.fixtures.general.iban.IbanGenerator.IbanGenerator |
( |
| ) |
|
◆ checkElfProef()
static boolean nl.psek.fitnesse.fixtures.general.iban.IbanGenerator.checkElfProef |
( |
int |
possibleAccountNumber | ) |
|
|
staticprivate |
◆ generateAccountNumber()
static String nl.psek.fitnesse.fixtures.general.iban.IbanGenerator.generateAccountNumber |
( |
| ) |
|
|
static |
Generates a valid accountnumber to use in an IBAN.
Accountnumber is a valid Dutch accountnumber.
- Returns
- string
- Exceptions
-
Definition at line 135 of file IbanGenerator.java.
◆ generateIBAN() [1/2]
static String nl.psek.fitnesse.fixtures.general.iban.IbanGenerator.generateIBAN |
( |
String |
countryCode, |
|
|
String |
bankCode |
|
) |
| |
|
static |
Generates an IBAN using a 10 digit generated accountNumber that is a valid Dutch accountnumber.
- Parameters
-
countryCode | option NL or DK |
bankCode | 4 alpha characters |
- Returns
- IBAN number as String
Definition at line 57 of file IbanGenerator.java.
◆ generateIBAN() [2/2]
static String nl.psek.fitnesse.fixtures.general.iban.IbanGenerator.generateIBAN |
( |
String |
countryCode, |
|
|
String |
bankCode, |
|
|
String |
accountNumber |
|
) |
| |
|
static |
Generates an IBAN for accountNumbers between 10 and 30 numerical characters.
- Parameters
-
countryCode | option NL or DK |
bankCode | 4 alpha characters |
accountNumber | 10 - 30 numerical characters, for NL or DK length = 10 |
- Returns
- IBAN number as String
- Exceptions
-
Definition at line 35 of file IbanGenerator.java.
◆ getNumericValueFromCharacter()
static String nl.psek.fitnesse.fixtures.general.iban.IbanGenerator.getNumericValueFromCharacter |
( |
String |
string | ) |
|
|
static |
Gets numeric value from character.
- Parameters
-
- Returns
- the numeric value from character
Definition at line 97 of file IbanGenerator.java.
◆ getNumericValuesFromString()
static String nl.psek.fitnesse.fixtures.general.iban.IbanGenerator.getNumericValuesFromString |
( |
String |
string | ) |
|
|
static |
Gets numeric values from string.
- Parameters
-
- Returns
- the numeric values from string
- Exceptions
-
Definition at line 108 of file IbanGenerator.java.
◆ giveNumberOnPosition()
static int nl.psek.fitnesse.fixtures.general.iban.IbanGenerator.giveNumberOnPosition |
( |
int |
possibleAccountNumber, |
|
|
int |
position |
|
) |
| |
|
staticprivate |
◆ giveRandomStartingNumber()
static int nl.psek.fitnesse.fixtures.general.iban.IbanGenerator.giveRandomStartingNumber |
( |
| ) |
|
|
staticprivate |
◆ validateDutchIban()
Boolean nl.psek.fitnesse.fixtures.general.iban.IbanGenerator.validateDutchIban |
( |
String |
iban | ) |
|
Validates a Dutch IBAN of 18 characters long Using format NLkk BBBB CCCC CCCC CK: NL countryCode kk controlValue BBBB bankCode CCCC CCCC CK accountNumber (including controlvalue)
- Parameters
-
- Returns
- boolean
- Exceptions
-
Definition at line 75 of file IbanGenerator.java.
◆ HIGH
final int nl.psek.fitnesse.fixtures.general.iban.IbanGenerator.HIGH = 999999900 |
|
staticprivate |
◆ LOW
final int nl.psek.fitnesse.fixtures.general.iban.IbanGenerator.LOW = 100000000 |
|
staticprivate |
The documentation for this class was generated from the following file:
- psek-fitnesse-fixtures-general/src/main/java/nl/psek/fitnesse/fixtures/general/iban/IbanGenerator.java