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
ConstructorsModifierConstructorDescriptionprivate
RegexDateTimeMatcher
(Pattern pattern, List<String> subPatterns, int minLength, int maxLength) -
Method Summary
Modifier and TypeMethodDescriptiondetermineMismatch
(String text) int
int
boolean
Determines 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:DateTimeMatcher
Determines whether or not the text matches the pattern- Specified by:
matches
in interfaceDateTimeMatcher
- Parameters:
text
- the text to evaluate- Returns:
true
if the text matches the pattern,false
otherwise
-
determineMismatch
-