Package io.scanbot.sdk.documentdata
Class DateValidationConfiguration
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class DateValidationConfiguration extends DocumentDataExtractorConfigurationElement implements Parcelable
Date validation configuration. This configuration element does not enable the scanning of any document types by itself. Add to recognizer configuration to require date validation checks for specific document types.
-
-
Constructor Summary
Constructors Constructor Description DateValidationConfiguration(Map<String, Object> source)
DateValidationConfiguration(JSONObject json)
DateValidationConfiguration(Integer minYear, Integer maxYear, String fieldTypeName)
-
Method Summary
Modifier and Type Method Description String
get_type()
final Integer
getMinYear()
Minimum year that is considered valid. final Unit
setMinYear(Integer minYear)
Minimum year that is considered valid. final Integer
getMaxYear()
Maximum year that is considered valid. final Unit
setMaxYear(Integer maxYear)
Maximum year that is considered valid. final String
getFieldTypeName()
Name, FullName, or NormalizedName of field type for which the year bounds should be applied. final Unit
setFieldTypeName(String fieldTypeName)
Name, FullName, or NormalizedName of field type for which the year bounds should be applied. JSONObject
toJson(ToJsonConfiguration config)
DateValidationConfiguration
clone()
-
-
Method Detail
-
getMinYear
final Integer getMinYear()
Minimum year that is considered valid.
Default is 0
-
setMinYear
final Unit setMinYear(Integer minYear)
Minimum year that is considered valid.
Default is 0
-
getMaxYear
final Integer getMaxYear()
Maximum year that is considered valid.
Default is 2999
-
setMaxYear
final Unit setMaxYear(Integer maxYear)
Maximum year that is considered valid.
Default is 2999
-
getFieldTypeName
final String getFieldTypeName()
Name, FullName, or NormalizedName of field type for which the year bounds should be applied.
-
setFieldTypeName
final Unit setFieldTypeName(String fieldTypeName)
Name, FullName, or NormalizedName of field type for which the year bounds should be applied.
-
toJson
JSONObject toJson(ToJsonConfiguration config)
-
clone
DateValidationConfiguration clone()
-
-
-
-