Package io.scanbot.sdk.documentdata
Class DateValidationConfiguration
java.lang.Object
io.scanbot.sdk.documentdata.DocumentDataExtractorConfigurationElement
io.scanbot.sdk.documentdata.DateValidationConfiguration
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
ConstructorsConstructorDescriptionDateValidationConfiguration(int minYear, int maxYear, String fieldTypeName) Constructs DateValidationConfiguration with the given params.DateValidationConfiguration(String fieldTypeName) Constructs DateValidationConfiguration with default parameters. -
Method Summary
Modifier and TypeMethodDescriptionGetter for fieldTypeName field.intGetter for maxYear field.intGetter for minYear field.voidsetFieldTypeName(String fieldTypeName) Setter for fieldTypeName field.voidsetMaxYear(int maxYear) Setter for maxYear field.voidsetMinYear(int minYear) Setter for minYear field.
-
Constructor Details
-
DateValidationConfiguration
Constructs DateValidationConfiguration with the given params.- Parameters:
minYear- Minimum year that is considered valid. Default is `0`.maxYear- Maximum year that is considered valid. Default is `2999`.fieldTypeName- Name, FullName, or NormalizedName of field type for which the year bounds should be applied.
-
DateValidationConfiguration
Constructs DateValidationConfiguration with default parameters.- Parameters:
fieldTypeName- Name, FullName, or NormalizedName of field type for which the year bounds should be applied.
-
-
Method Details
-
getMinYear
public int getMinYear()Getter for minYear field. See constructor documentation for more information about the field.- Returns:
- minYear
-
setMinYear
public void setMinYear(int minYear) Setter for minYear field. See constructor documentation for more information about the field.- Parameters:
minYear- Value to set.
-
getMaxYear
public int getMaxYear()Getter for maxYear field. See constructor documentation for more information about the field.- Returns:
- maxYear
-
setMaxYear
public void setMaxYear(int maxYear) Setter for maxYear field. See constructor documentation for more information about the field.- Parameters:
maxYear- Value to set.
-
getFieldTypeName
Getter for fieldTypeName field. See constructor documentation for more information about the field.- Returns:
- fieldTypeName
-
setFieldTypeName
Setter for fieldTypeName field. See constructor documentation for more information about the field.- Parameters:
fieldTypeName- Value to set.
-