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 Details

    • DateValidationConfiguration

      public DateValidationConfiguration(int minYear, int maxYear, String fieldTypeName)
      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

      public DateValidationConfiguration(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 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

      public String getFieldTypeName()
      Getter for fieldTypeName field. See constructor documentation for more information about the field.
      Returns:
      fieldTypeName
    • setFieldTypeName

      public void setFieldTypeName(String fieldTypeName)
      Setter for fieldTypeName field. See constructor documentation for more information about the field.
      Parameters:
      fieldTypeName - Value to set.