Package org.apache.nifi.util.text
Class RegexDateTimeMatcher
java.lang.Object
org.apache.nifi.util.text.RegexDateTimeMatcher
- All Implemented Interfaces:
DateTimeMatcher
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateRegexDateTimeMatcher(Pattern pattern, List<String> subPatterns, int minLength, int maxLength) -
Method Summary
Modifier and TypeMethodDescriptiondetermineMismatch(String text) intintbooleanDetermines whether or not the text matches the pattern
-
Field Details
-
pattern
-
subPatterns
-
minLength
private final int minLength -
maxLength
private final int maxLength
-
-
Constructor Details
-
RegexDateTimeMatcher
-
-
Method Details
-
getMinInputLength
public int getMinInputLength() -
getMaxInputLength
public int getMaxInputLength() -
matches
Description copied from interface:DateTimeMatcherDetermines whether or not the text matches the pattern- Specified by:
matchesin interfaceDateTimeMatcher- Parameters:
text- the text to evaluate- Returns:
trueif the text matches the pattern,falseotherwise
-
determineMismatch
-