Class DemoNormalizerImpl
- java.lang.Object
-
- io.mosip.authentication.common.service.impl.match.DemoNormalizerImpl
-
- All Implemented Interfaces:
DemoNormalizer
@Component public class DemoNormalizerImpl extends Object implements DemoNormalizer
Generic class to normalize individual name, address.- Author:
- Rakesh Roshan, Arun Bose S
-
-
Constructor Summary
Constructors Constructor Description DemoNormalizerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
normalizeAddress(String address, String language)
This method is used to normalize address.String
normalizeName(String nameInfo, String language, MasterDataFetcher titleFetcher)
This method is used to normalize name.
-
-
-
Method Detail
-
normalizeName
public String normalizeName(String nameInfo, String language, MasterDataFetcher titleFetcher) throws IdAuthenticationBusinessException
This method is used to normalize name.- Specified by:
normalizeName
in interfaceDemoNormalizer
- Parameters:
nameInfo
- the name infolanguage
- the languagetitleFetcher
- the title fetcher- Returns:
- the string
- Throws:
IdAuthenticationBusinessException
- the id authentication business exception
-
normalizeAddress
public String normalizeAddress(String address, String language)
This method is used to normalize address.- Specified by:
normalizeAddress
in interfaceDemoNormalizer
- Parameters:
address
- the address received from request or entity- Returns:
- the string output after normalization
-
-