Enum IdaIdMapping
- java.lang.Object
-
- java.lang.Enum<IdaIdMapping>
-
- io.mosip.authentication.common.service.impl.match.IdaIdMapping
-
- All Implemented Interfaces:
IdMapping
,Serializable
,Comparable<IdaIdMapping>
public enum IdaIdMapping extends Enum<IdaIdMapping> implements IdMapping
Mapping class for IDA- Author:
- Dinesh Karuppiah.T
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
concatNames(String... values)
String
getIdname()
static Optional<String>
getIdNameForMapping(String mappingName, MappingConfig mappingConfig)
Fetch Id name for Mapping.BiFunction<MappingConfig,MatchType,List<String>>
getMappingFunction()
Set<IdMapping>
getSubIdMappings()
String
getSubType()
String
getType()
static Set<IdMapping>
setOf(IdMapping... idMapping)
Sets the of.static IdaIdMapping
valueOf(String name)
Returns the enum constant of this type with the specified name.static IdaIdMapping[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NAME
public static final IdaIdMapping NAME
-
DOB
public static final IdaIdMapping DOB
-
DOBTYPE
public static final IdaIdMapping DOBTYPE
-
AGE
public static final IdaIdMapping AGE
-
GENDER
public static final IdaIdMapping GENDER
-
PHONE
public static final IdaIdMapping PHONE
-
EMAIL
public static final IdaIdMapping EMAIL
-
ADDRESSLINE1
public static final IdaIdMapping ADDRESSLINE1
-
ADDRESSLINE2
public static final IdaIdMapping ADDRESSLINE2
-
ADDRESSLINE3
public static final IdaIdMapping ADDRESSLINE3
-
LOCATION1
public static final IdaIdMapping LOCATION1
-
LOCATION2
public static final IdaIdMapping LOCATION2
-
LOCATION3
public static final IdaIdMapping LOCATION3
-
PINCODE
public static final IdaIdMapping PINCODE
-
FULLADDRESS
public static final IdaIdMapping FULLADDRESS
-
OTP
public static final IdaIdMapping OTP
-
PIN
public static final IdaIdMapping PIN
-
LEFTINDEX
public static final IdaIdMapping LEFTINDEX
-
LEFTLITTLE
public static final IdaIdMapping LEFTLITTLE
-
LEFTMIDDLE
public static final IdaIdMapping LEFTMIDDLE
-
LEFTRING
public static final IdaIdMapping LEFTRING
-
LEFTTHUMB
public static final IdaIdMapping LEFTTHUMB
-
RIGHTINDEX
public static final IdaIdMapping RIGHTINDEX
-
RIGHTLITTLE
public static final IdaIdMapping RIGHTLITTLE
-
RIGHTMIDDLE
public static final IdaIdMapping RIGHTMIDDLE
-
RIGHTRING
public static final IdaIdMapping RIGHTRING
-
RIGHTTHUMB
public static final IdaIdMapping RIGHTTHUMB
-
UNKNOWN_FINGER
public static final IdaIdMapping UNKNOWN_FINGER
-
FINGERPRINT
public static final IdaIdMapping FINGERPRINT
-
LEFTIRIS
public static final IdaIdMapping LEFTIRIS
-
RIGHTIRIS
public static final IdaIdMapping RIGHTIRIS
-
UNKNOWN_IRIS
public static final IdaIdMapping UNKNOWN_IRIS
-
IRIS
public static final IdaIdMapping IRIS
-
FACE
public static final IdaIdMapping FACE
-
UNKNOWN_FACE
public static final IdaIdMapping UNKNOWN_FACE
-
MULTI_MODAL_BIOMETRICS
public static final IdaIdMapping MULTI_MODAL_BIOMETRICS
-
-
Method Detail
-
values
public static IdaIdMapping[] 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 (IdaIdMapping c : IdaIdMapping.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IdaIdMapping 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
-
getSubIdMappings
public Set<IdMapping> getSubIdMappings()
- Specified by:
getSubIdMappings
in interfaceIdMapping
-
getSubType
public String getSubType()
- Specified by:
getSubType
in interfaceIdMapping
-
getMappingFunction
public BiFunction<MappingConfig,MatchType,List<String>> getMappingFunction()
- Specified by:
getMappingFunction
in interfaceIdMapping
-
setOf
public static Set<IdMapping> setOf(IdMapping... idMapping)
Sets the of.- Parameters:
idMapping
- the id mapping- Returns:
- the sets the
-
getIdNameForMapping
public static Optional<String> getIdNameForMapping(String mappingName, MappingConfig mappingConfig)
Fetch Id name for Mapping.- Parameters:
mappingName
- the mapping namemappingConfig
- the mapping config- Returns:
- the id name for mapping
-
-