Enum Mrz.IcaoDocumentType

java.lang.Object
java.lang.Enum<Mrz.IcaoDocumentType>
es.gob.jmulticard.card.icao.Mrz.IcaoDocumentType
All Implemented Interfaces:
Serializable, Comparable<Mrz.IcaoDocumentType>, java.lang.constant.Constable
Enclosing class:
Mrz

public static enum Mrz.IcaoDocumentType extends Enum<Mrz.IcaoDocumentType>
Tipo de documento ICAO.
  • Enum Constant Details

    • DOC_TYPE_ID1

      public static final Mrz.IcaoDocumentType DOC_TYPE_ID1
      MRV segun ICAO Doc 9303 parte 2).
    • DOC_TYPE_ID3

      public static final Mrz.IcaoDocumentType DOC_TYPE_ID3
      MRP segun ICAO Doc 9303 parte 1 vol 1.
    • DOC_TYPE_UNSPECIFIED

      public static final Mrz.IcaoDocumentType DOC_TYPE_UNSPECIFIED
      Tipo desconocido.
  • Constructor Details

    • IcaoDocumentType

      private IcaoDocumentType()
  • Method Details

    • values

      public static Mrz.IcaoDocumentType[] 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

      public static Mrz.IcaoDocumentType 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 name
      NullPointerException - if the argument is null
    • getIcaoDocumentType

      static Mrz.IcaoDocumentType getIcaoDocumentType(String documentCode)
      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.