Class TextStandardizer
java.lang.Object
ca.uhn.fhir.rest.server.interceptor.s13n.standardizers.TextStandardizer
- All Implemented Interfaces:
IStandardizer
- Direct Known Subclasses:
FirstNameStandardizer
Standardizes text literals by removing noise characters.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected TextStandardizer
addAllowedExtendedAsciiRange
(int theRangeStart, int theRangeEnd) protected TextStandardizer
addAllowedNonLetterAndDigitCharacters
(Character... theCharacters) protected TextStandardizer
addTranslate
(int theTranslate, char theMapping) protected void
protected void
protected void
protected boolean
isNoiseCharacter
(int theChar) protected boolean
isTranslate
(int theChar) protected String
removeNoise
(String theToken) protected String
replaceAccents
(String theString) protected String
replaceTranslates
(String theString) standardize
(String theString) Standardizes the specified string.
-
Field Details
-
DIACRITICAL_MARKS
-
EXT_ASCII_RANGE_START
- See Also:
-
EXT_ASCII_RANGE_END
- See Also:
-
-
Constructor Details
-
TextStandardizer
public TextStandardizer()
-
-
Method Details
-
initializeAllowedNonLetterAndDigitCharacters
-
addAllowedNonLetterAndDigitCharacters
-
asSet
-
addTranslate
-
initializeTranslates
-
initializeAllowedExtendedAscii
-
addAllowedExtendedAsciiRange
-
standardize
Description copied from interface:IStandardizer
Standardizes the specified string.- Specified by:
standardize
in interfaceIStandardizer
- Parameters:
theString
- String to be standardized- Returns:
- Returns a standardized string.
-
replaceTranslates
-
replaceAccents
-
removeNoise
-
isTranslate
-
isNoiseCharacter
-