public class LuhnIdentifierValidator extends BaseHyphenatedIdentifierValidator
| Constructor and Description |
|---|
LuhnIdentifierValidator() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAllowedCharacters() |
protected int |
getCheckDigit(String undecoratedIdentifier) |
String |
getName() |
String |
getValidIdentifier(String undecoratedIdentifier) |
checkAllowedIdentifier, isValidprotected int getCheckDigit(String undecoratedIdentifier)
getCheckDigit in class BaseHyphenatedIdentifierValidatorpublic String getName()
getName in interface IdentifierValidatorgetName in class BaseHyphenatedIdentifierValidatorIdentifierValidator.getName()public String getAllowedCharacters()
getAllowedCharacters in interface IdentifierValidatorgetAllowedCharacters in class BaseHyphenatedIdentifierValidatorIdentifierValidator.getAllowedCharacters()public String getValidIdentifier(String undecoratedIdentifier) throws UnallowedIdentifierException
getValidIdentifier in interface IdentifierValidatorgetValidIdentifier in class BaseHyphenatedIdentifierValidatorundecoratedIdentifier - The identifier prior to being given a check digit or other form
of validation.UnallowedIdentifierException - if the identifier contains unallowed characters or is
otherwise not appropriate for this validator.IdentifierValidator.getValidIdentifier(java.lang.String)Copyright © 2018 OpenMRS LLC.. All Rights Reserved.