Klasse IBANCheckDigit
java.lang.Object
org.oxt.toolbox.leitwegcheck.IBANCheckDigit
- Alle implementierten Schnittstellen:
- Serializable,- CheckDigit
IBAN (International Bank Account Number) Check Digit calculation/validation.
 
This routine is based on the ISO 7064 Mod 97,10 check digit calculation routine.
 The two check digit characters in a IBAN number are the third and fourth characters
 in the code. For check digit calculation/validation the first four characters are moved
 to the end of the code.
  So CCDDnnnnnnn becomes nnnnnnnCCDD (where
  CC is the country code and DD is the check digit). For
  check digit calculation the check digit value should be set to zero (i.e.
  CC00nnnnnnn in this example.
 
Note: the class does not check the format of the IBAN number, only the check digits.
For further information see Wikipedia - IBAN number.
- Seit:
- Validator 1.4
- Version:
- $Revision: 1739357 $
- Siehe auch:
- 
FeldübersichtFelderModifizierer und TypFeldBeschreibungstatic final CheckDigitSingleton IBAN Number Check Digit instance
- 
KonstruktorübersichtKonstruktoren
- 
Methodenübersicht
- 
Felddetails- 
IBAN_CHECK_DIGITSingleton IBAN Number Check Digit instance
 
- 
- 
Konstruktordetails- 
IBANCheckDigitpublic IBANCheckDigit()Construct Check Digit routine for IBAN Numbers.
 
- 
- 
Methodendetails- 
isValidValidate the check digit of an IBAN code.- Angegeben von:
- isValidin Schnittstelle- CheckDigit
- Parameter:
- code- The code to validate
- Gibt zurück:
- trueif the check digit is valid, otherwise- false
- Löst aus:
- CheckDigitException- unspecific error
 
- 
calculateCalculate the Check Digit for an IBAN code.Note: The check digit is the third and fourth characters and is set to the value " 00".- Angegeben von:
- calculatein Schnittstelle- CheckDigit
- Parameter:
- code- The code to calculate the Check Digit for
- Gibt zurück:
- The calculated Check Digit as 2 numeric decimal characters, e.g. "42"
- Löst aus:
- CheckDigitException- if an error occurs calculating the check digit for the specified code
 
 
-