Class 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.String getFieldTypeName()
      Getter for fieldTypeName field.
      int getMaxYear()
      Getter for maxYear field.
      int getMinYear()
      Getter for minYear field.
      void setFieldTypeName​(java.lang.String fieldTypeName)
      Setter for fieldTypeName field.
      void setMaxYear​(int maxYear)
      Setter for maxYear field.
      void setMinYear​(int minYear)
      Setter for minYear field.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 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​(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.