public interface IdentifierValidator
Modifier and Type | Method and Description |
---|---|
String |
getAllowedCharacters() |
String |
getName() |
String |
getValidIdentifier(String undecoratedIdentifier) |
boolean |
isValid(String identifier) |
String getName()
boolean isValid(String identifier) throws UnallowedIdentifierException
identifier
- The Identifier to check.UnallowedIdentifierException
- if the identifier contains unallowed characters or is
otherwise not appropriate for this validator.String getValidIdentifier(String undecoratedIdentifier) throws UnallowedIdentifierException
undecoratedIdentifier
- 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.String getAllowedCharacters()
Copyright © 2024 OpenMRS Inc.. All rights reserved.