Enum DemoMatchType
- java.lang.Object
-
- java.lang.Enum<DemoMatchType>
-
- io.mosip.authentication.common.service.impl.match.DemoMatchType
-
- All Implemented Interfaces:
MatchType,Serializable,Comparable<DemoMatchType>
public enum DemoMatchType extends Enum<DemoMatchType> implements MatchType
The Enum DemoMatchType.- Author:
- Arun Bose
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.mosip.authentication.core.spi.indauth.match.MatchType
MatchType.Category
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADDRPrimary Address MatchType.ADDR_LINE1The addr line1.ADDR_LINE2The addr line2 pri.ADDR_LINE3The addr line3 pri.AGESecondary Date of Birth Type Match.DOBSecondary Date of Birth Match Type.DOBTYPESecondary Date of Birth Type Match.DYNAMICThe dynamic.EMAILE-mail Match Type.GENDERGender Match Type.LOCATION1Location1 Match Type primary.LOCATION2Location2 Match Type primary.LOCATION3Location3 Match Type primary.NAMEPrimary Name Match Type.PHONEPhone Match Type.PINCODEThe pincode pri.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<MatchingStrategy>getAllowedMatchingStrategy(MatchingStrategyType matchStrategyType)Gets the allowed matching strategy.MatchType.CategorygetCategory()Gets the category.BiFunction<Map<String,String>,Map<String,Object>,Map<String,String>>getEntityInfoMapper()Gets the entity info.Function<RequestDTO,Map<String,List<IdentityInfoDTO>>>getIdentityInfoFunction()Gets the identity info function.IdMappinggetIdMapping()Gets the id mapping.booleanisMultiLanguage()Checks if is multi language.booleanisPropMultiLang(String propName, MappingConfig cfg)Checks if is prop multi lang.static DemoMatchTypevalueOf(String name)Returns the enum constant of this type with the specified name.static DemoMatchType[]values()Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface io.mosip.authentication.core.spi.indauth.match.MatchType
getIdentityInfoList, getReqestInfoFunction, hasIdEntityInfo, hasRequestEntityInfo, isDynamic, isMultiLanguage, mapEntityInfo
-
-
-
-
Enum Constant Detail
-
NAME
public static final DemoMatchType NAME
Primary Name Match Type.
-
DOB
public static final DemoMatchType DOB
Secondary Date of Birth Match Type.
-
DOBTYPE
public static final DemoMatchType DOBTYPE
Secondary Date of Birth Type Match.
-
AGE
public static final DemoMatchType AGE
Secondary Date of Birth Type Match.
-
GENDER
public static final DemoMatchType GENDER
Gender Match Type.
-
PHONE
public static final DemoMatchType PHONE
Phone Match Type.
-
EMAIL
public static final DemoMatchType EMAIL
E-mail Match Type.
-
ADDR_LINE1
public static final DemoMatchType ADDR_LINE1
The addr line1.
-
ADDR_LINE2
public static final DemoMatchType ADDR_LINE2
The addr line2 pri.
-
ADDR_LINE3
public static final DemoMatchType ADDR_LINE3
The addr line3 pri.
-
LOCATION1
public static final DemoMatchType LOCATION1
Location1 Match Type primary.
-
LOCATION2
public static final DemoMatchType LOCATION2
Location2 Match Type primary.
-
LOCATION3
public static final DemoMatchType LOCATION3
Location3 Match Type primary.
-
PINCODE
public static final DemoMatchType PINCODE
The pincode pri.
-
ADDR
public static final DemoMatchType ADDR
Primary Address MatchType.
-
DYNAMIC
public static final DemoMatchType DYNAMIC
The dynamic.
-
-
Method Detail
-
values
public static DemoMatchType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DemoMatchType c : DemoMatchType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DemoMatchType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getAllowedMatchingStrategy
public Optional<MatchingStrategy> getAllowedMatchingStrategy(MatchingStrategyType matchStrategyType)
Gets the allowed matching strategy.- Specified by:
getAllowedMatchingStrategyin interfaceMatchType- Parameters:
matchStrategyType- the match strategy type- Returns:
- the allowed matching strategy
-
getEntityInfoMapper
public BiFunction<Map<String,String>,Map<String,Object>,Map<String,String>> getEntityInfoMapper()
Gets the entity info.- Specified by:
getEntityInfoMapperin interfaceMatchType- Returns:
- the entity info
-
getIdMapping
public IdMapping getIdMapping()
Gets the id mapping.- Specified by:
getIdMappingin interfaceMatchType- Returns:
- the id mapping
-
getIdentityInfoFunction
public Function<RequestDTO,Map<String,List<IdentityInfoDTO>>> getIdentityInfoFunction()
Gets the identity info function.- Specified by:
getIdentityInfoFunctionin interfaceMatchType- Returns:
- the identity info function
-
getCategory
public MatchType.Category getCategory()
Gets the category.- Specified by:
getCategoryin interfaceMatchType- Returns:
- the category
-
isMultiLanguage
public boolean isMultiLanguage()
Checks if is multi language.- Specified by:
isMultiLanguagein interfaceMatchType- Returns:
- true, if is multi language
-
isPropMultiLang
public boolean isPropMultiLang(String propName, MappingConfig cfg)
Checks if is prop multi lang.- Specified by:
isPropMultiLangin interfaceMatchType- Parameters:
propName- the prop namecfg- the cfg- Returns:
- true, if is prop multi lang
-
-