
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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TextStandardizeraddAllowedExtendedAsciiRange(int theRangeStart, int theRangeEnd) protected TextStandardizeraddAllowedNonLetterAndDigitCharacters(Character... theCharacters) protected TextStandardizeraddTranslate(int theTranslate, char theMapping) protected voidprotected voidprotected voidprotected booleanisNoiseCharacter(int theChar) protected booleanisTranslate(int theChar) protected StringremoveNoise(String theToken) protected StringreplaceAccents(String theString) protected StringreplaceTranslates(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:IStandardizerStandardizes the specified string.- Specified by:
standardizein interfaceIStandardizer- Parameters:
theString- String to be standardized- Returns:
- Returns a standardized string.
-
replaceTranslates
-
replaceAccents
-
removeNoise
-
isTranslate
-
isNoiseCharacter
-