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 Stringget_type()final IntegergetMinYear()Minimum year that is considered valid. final UnitsetMinYear(Integer minYear)Minimum year that is considered valid. final IntegergetMaxYear()Maximum year that is considered valid. final UnitsetMaxYear(Integer maxYear)Maximum year that is considered valid. final StringgetFieldTypeName()Name, FullName, or NormalizedName of field type for which the year bounds should be applied. final UnitsetFieldTypeName(String fieldTypeName)Name, FullName, or NormalizedName of field type for which the year bounds should be applied. JSONObjecttoJson(ToJsonConfiguration config)DateValidationConfigurationclone()-
-
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()
-
-
-
-