Class ArabicDMYDateCheckFilter


public class ArabicDMYDateCheckFilter extends ArabicDateCheckFilter
Date filter that expects a 'date' argument in the format 'dd-mm-yyyy'.
Since:
6.2
  • Constructor Details

    • ArabicDMYDateCheckFilter

      public ArabicDMYDateCheckFilter()
  • Method Details

    • acceptRuleMatch

      public RuleMatch acceptRuleMatch(RuleMatch match, Map<String,String> args, int patternTokenPos, AnalyzedTokenReadings[] patternTokens, List<Integer> tokenPositions)
      Description copied from class: RuleFilter
      Returns the original rule match or a modified one, or null if the rule match is filtered out.
      Overrides:
      acceptRuleMatch in class AbstractDateCheckFilter
      Parameters:
      args - a map with values for year, month, day (day of month), weekDay
      patternTokens - those tokens of the text that correspond the matched pattern
      Returns:
      null if this rule match should be removed, or any other RuleMatch (e.g. the one from the arguments) that properly describes the detected error