Class ISSNCheckDigit
java.lang.Object
org.apache.commons.validator.routines.checkdigit.ModulusCheckDigit
org.apache.commons.validator.routines.checkdigit.Modulus11iWeightCheckDigit
org.apache.commons.validator.routines.checkdigit.Modulus11XCheckDigit
org.apache.commons.validator.routines.checkdigit.ISSNCheckDigit
- All Implemented Interfaces:
Serializable,CheckDigit
Deprecated.
International Standard Serial Number (ISSN)
is an eight-digit serial number used to
uniquely identify a serial publication.
The format is: ISSN dddd-dddC where: d = decimal digit (0-9) C = checksum (0-9 or X) The checksum is formed by adding the first 7 digits multiplied by the position in the entire number (counting from the right). For example, abcd-efg would be 8a + 7b + 6c + 5d + 4e +3f +2g. The check digit is modulus 11, where the value 10 is represented by 'X' For example: ISSN 0317-8471 ISSN 1050-124X
Note: This class expects the input to be numeric only, with all formatting removed. For example:
03178471 1050124X
- Since:
- 1.5.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CheckDigitDeprecated.Gets the singleton instance of this class.Methods inherited from class org.apache.commons.validator.routines.checkdigit.Modulus11XCheckDigit
toCheckDigit, toIntMethods inherited from class org.apache.commons.validator.routines.checkdigit.Modulus11iWeightCheckDigit
isValid, weightedValueMethods inherited from class org.apache.commons.validator.routines.checkdigit.ModulusCheckDigit
calculate, calculateModulus, getCheckdigitLength, getModulus, sumDigits
-
Constructor Details
-
ISSNCheckDigit
public ISSNCheckDigit()Deprecated.
-
-
Method Details
-
getInstance
Deprecated.Gets the singleton instance of this class.- Returns:
- A singleton instance of the class.
-