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