Package com.mindee.parsing.v2.field
Enum FieldConfidence
- java.lang.Object
-
- java.lang.Enum<FieldConfidence>
-
- com.mindee.parsing.v2.field.FieldConfidence
-
- All Implemented Interfaces:
Serializable
,Comparable<FieldConfidence>
public enum FieldConfidence extends Enum<FieldConfidence>
Confidence level of a field as returned by the V2 API.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FieldConfidence
fromJson(String value)
String
toJson()
static FieldConfidence
valueOf(String name)
Returns the enum constant of this type with the specified name.static FieldConfidence[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Certain
public static final FieldConfidence Certain
-
High
public static final FieldConfidence High
-
Medium
public static final FieldConfidence Medium
-
Low
public static final FieldConfidence Low
-
-
Method Detail
-
values
public static FieldConfidence[] 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 (FieldConfidence c : FieldConfidence.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FieldConfidence 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 nameNullPointerException
- if the argument is null
-
toJson
public String toJson()
-
fromJson
public static FieldConfidence fromJson(String value)
-
-