Package io.scanbot.sdk.documentdata
Enum Class ValueConsistency
- All Implemented Interfaces:
Serializable,Comparable<ValueConsistency>,Constable
The status of the consistency verification.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe values that correspond to the same logical field are inconsistent.All values that correspond to the same logical field are exactly equal.All values that correspond to the same logical field are equal after punctuation is removed, all characters are converted to upper case and diacritics are replaced with their base characters.Same as OK_DEBURRED but allows replacing diacritics not only with their base characters but also with some more complex combinations.All values that correspond to the same logical field are equal after punctuation is removed and all characters are converted to upper case.In addition to OK_DEBURRED_EXTENDED, allows one string to be a prefix of another string. -
Method Summary
Modifier and TypeMethodDescriptionstatic ValueConsistencyReturns the enum constant of this class with the specified name.static ValueConsistency[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OK
All values that correspond to the same logical field are exactly equal. -
OK_PUNCTUATION_UPPER_CASE_CLEANED
All values that correspond to the same logical field are equal after punctuation is removed and all characters are converted to upper case. -
OK_DEBURRED
All values that correspond to the same logical field are equal after punctuation is removed, all characters are converted to upper case and diacritics are replaced with their base characters. -
OK_DEBURRED_EXTENDED
Same as OK_DEBURRED but allows replacing diacritics not only with their base characters but also with some more complex combinations. E.g., according to ICAO 9303 MRZ standard Ü can be replaced with U or UE or UXX. -
OK_TRUNCATED
In addition to OK_DEBURRED_EXTENDED, allows one string to be a prefix of another string. Correctly works with complex diacritics replacements. In particular, if one string is MUEL and another is MÜLLER, then they are considered equal up to truncation. -
INCONSISTENT
The values that correspond to the same logical field are inconsistent.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-