Enum Mrz.IcaoDocumentType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Mrz.IcaoDocumentType>
    Enclosing class:
    Mrz

    public static enum Mrz.IcaoDocumentType
    extends java.lang.Enum<Mrz.IcaoDocumentType>
    Tipo de documento ICAO.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private IcaoDocumentType()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static Mrz.IcaoDocumentType getIcaoDocumentType​(java.lang.String documentCode)
      Determina el tipo de documento según el código de documento (primeros dos caracteres de la MRZ).
      static Mrz.IcaoDocumentType valueOf​(java.lang.String name)
      Returns 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.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • 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 Detail

      • IcaoDocumentType

        private IcaoDocumentType()
    • Method Detail

      • values

        public static Mrz.IcaoDocumentType[] 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 (Mrz.IcaoDocumentType c : Mrz.IcaoDocumentType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Mrz.IcaoDocumentType valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getIcaoDocumentType

        static Mrz.IcaoDocumentType getIcaoDocumentType​(java.lang.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.