Class CheckDigits
java.lang.Object
org.emau.icmvc.ganimed.ttp.psn.generator.CheckDigits
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
abstract String
generateCheckDigits
(String message) abstract GeneratorAlphabetRestriction
gives the restriction for the number of chars within the alphabet
-
Constructor Details
-
CheckDigits
public CheckDigits() -
CheckDigits
-
-
Method Details
-
generateCheckDigits
public abstract String generateCheckDigits(String message) throws CharNotInAlphabetException, InvalidParameterException - Parameters:
message
- string for which check digits should be generated- Returns:
- check digits
- Throws:
CharNotInAlphabetException
MessageTooLargeException
InvalidParameterException
-
check
public abstract void check(String value, int messageLength) throws CharNotInAlphabetException, InvalidPSNException - Parameters:
value
- string (including check digits) to be checkedmessageLength
- length of [value] without check digits- Throws:
CharNotInAlphabetException
InvalidPSNException
-
getAlphabet
- Returns:
- the alphabet for this instance
-
getAlphabetRestriction
gives the restriction for the number of chars within the alphabet- Returns:
-