Class RegexDateTimeMatcher

java.lang.Object
org.apache.nifi.util.text.RegexDateTimeMatcher
All Implemented Interfaces:
DateTimeMatcher

public class RegexDateTimeMatcher extends Object implements DateTimeMatcher
  • Field Details

    • pattern

      private final Pattern pattern
    • subPatterns

      private final List<String> subPatterns
    • minLength

      private final int minLength
    • maxLength

      private final int maxLength
  • Constructor Details

    • RegexDateTimeMatcher

      private RegexDateTimeMatcher(Pattern pattern, List<String> subPatterns, int minLength, int maxLength)
  • Method Details

    • getMinInputLength

      public int getMinInputLength()
    • getMaxInputLength

      public int getMaxInputLength()
    • matches

      public boolean matches(String text)
      Description copied from interface: DateTimeMatcher
      Determines whether or not the text matches the pattern
      Specified by:
      matches in interface DateTimeMatcher
      Parameters:
      text - the text to evaluate
      Returns:
      true if the text matches the pattern, false otherwise
    • determineMismatch

      public String determineMismatch(String text)