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