Enum Mrz.IcaoDocumentType
- All Implemented Interfaces:
Serializable, Comparable<Mrz.IcaoDocumentType>, java.lang.constant.Constable
- Enclosing class:
Mrz
Tipo de documento ICAO.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMRV segun ICAO Doc 9303 parte 2).MRP segun ICAO Doc 9303 parte 1 vol 1.Tipo desconocido. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static Mrz.IcaoDocumentTypegetIcaoDocumentType(String documentCode) Determina el tipo de documento según el código de documento (primeros dos caracteres de la MRZ).static Mrz.IcaoDocumentTypeReturns the enum constant of this type with the specified name.static Mrz.IcaoDocumentType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DOC_TYPE_ID1
MRV segun ICAO Doc 9303 parte 2). -
DOC_TYPE_ID3
MRP segun ICAO Doc 9303 parte 1 vol 1. -
DOC_TYPE_UNSPECIFIED
Tipo desconocido.
-
-
Constructor Details
-
IcaoDocumentType
private IcaoDocumentType()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getIcaoDocumentType
Determina el tipo de documento según el código de documento (primeros dos caracteres de la MRZ).- El documento ICAO 9303 parte 3 volumen 1 define MRTD con MRZ de tres líneas si el código de documento empieza por "A", "C", o "I" (nota j, sectión 6.6, página V-9).
- El documento ICAO 9303 parte 2 define MRV con MRZ de dos líneas si el código de documento empieza por "V".
- El documento ICAO 9303 parte 1 volumen 1 define MRP con MRZ de dos líneas si el código de documento empieza por "P" (sección 9.6, página IV-15).
- Parameters:
documentCode- Código de documento (de dos letras).- Returns:
- Tipo de documento.
-