Package io.scanbot.sdk.mrz
Enum MrzIncompleteResultHandling
- java.lang.Object
-
- java.lang.Enum<MrzIncompleteResultHandling>
-
- io.scanbot.sdk.mrz.MrzIncompleteResultHandling
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<MrzIncompleteResultHandling>
public enum MrzIncompleteResultHandling extends java.lang.Enum<MrzIncompleteResultHandling>
Defines how to handle incomplete MRZ results (e.g. caused by failed validation).
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MrzIncompleteResultHandlingvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static MrzIncompleteResultHandling[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACCEPT
public static final MrzIncompleteResultHandling ACCEPT
Accept incomplete results. Fields failing validation will have a validation status of INVALID. Typically used for single-shot scanning.
-
REJECT
public static final MrzIncompleteResultHandling REJECT
Reject incomplete results. If any fields are missing or fail validation, the result document will be empty. Typically used for live scanning.
-
-
Method Detail
-
values
public static MrzIncompleteResultHandling[] 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 (MrzIncompleteResultHandling c : MrzIncompleteResultHandling.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MrzIncompleteResultHandling 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 namejava.lang.NullPointerException- if the argument is null
-
-