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 ADDR
Primary Address MatchType.ADDR_LINE1
ADDR_LINE2
The addr line2 pri.ADDR_LINE3
The addr line3 pri.AGE
Secondary Date of Birth Type Match.DOB
Secondary Date of Birth Match Type.DOBTYPE
Secondary Date of Birth Type Match.EMAIL
E-mail Match Type.GENDER
Gender Match Type.LOCATION1
Location1 Match Type primary.LOCATION2
Location2 Match Type primary.LOCATION3
Location3 Match Type primary.NAME
Primary Name Match Type.PHONE
Phone Match Type.PINCODE
The 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.Category
getCategory()
Function<Map<String,String>,Map<String,String>>
getEntityInfoMapper()
Gets the entity info.Function<RequestDTO,Map<String,List<IdentityInfoDTO>>>
getIdentityInfoFunction()
IdMapping
getIdMapping()
LanguageType
getLanguageType()
boolean
isMultiLanguage()
boolean
isPropMultiLang(String propName, MappingConfig cfg)
static DemoMatchType
valueOf(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, 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
-
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.
-
-
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
-
getLanguageType
public LanguageType getLanguageType()
-
getAllowedMatchingStrategy
public Optional<MatchingStrategy> getAllowedMatchingStrategy(MatchingStrategyType matchStrategyType)
Gets the allowed matching strategy.- Specified by:
getAllowedMatchingStrategy
in interfaceMatchType
- Parameters:
matchStrategyType
- the match strategy type- Returns:
- the allowed matching strategy
-
getEntityInfoMapper
public Function<Map<String,String>,Map<String,String>> getEntityInfoMapper()
Gets the entity info.- Specified by:
getEntityInfoMapper
in interfaceMatchType
- Returns:
- the entity info
-
getIdMapping
public IdMapping getIdMapping()
- Specified by:
getIdMapping
in interfaceMatchType
-
getIdentityInfoFunction
public Function<RequestDTO,Map<String,List<IdentityInfoDTO>>> getIdentityInfoFunction()
- Specified by:
getIdentityInfoFunction
in interfaceMatchType
-
getCategory
public MatchType.Category getCategory()
- Specified by:
getCategory
in interfaceMatchType
-
isMultiLanguage
public boolean isMultiLanguage()
- Specified by:
isMultiLanguage
in interfaceMatchType
-
isPropMultiLang
public boolean isPropMultiLang(String propName, MappingConfig cfg)
- Specified by:
isPropMultiLang
in interfaceMatchType
-
-