Class PatternMatch
java.lang.Object
com.northconcepts.datapipeline.filter.FieldFilterRule
com.northconcepts.datapipeline.filter.rule.PatternMatch
A
FieldFilterRule that allows fields whose whole value, as a string, matches any of its regular expressions;
null values are rejected.-
Constructor Summary
ConstructorsConstructorDescriptionPatternMatch(String... regex) PatternMatch(String regex, int flags) Creates a rule for a regular expression compiled with the givenPatternflags, such asPattern.CASE_INSENSITIVE. -
Method Summary
Modifier and TypeMethodDescriptionAdds a regular expression compiled with the givenPatternflags, such asPattern.CASE_INSENSITIVE.booleanReturns true if the given field satisfies this rule; called byFieldFilterwith each field it checks.get(int index) intgetCount()toString()Methods inherited from class com.northconcepts.datapipeline.filter.FieldFilterRule
getFieldFilter
-
Constructor Details
-
PatternMatch
public PatternMatch() -
PatternMatch
-
PatternMatch
Creates a rule for a regular expression compiled with the givenPatternflags, such asPattern.CASE_INSENSITIVE.
-
-
Method Details
-
add
-
add
Adds a regular expression compiled with the givenPatternflags, such asPattern.CASE_INSENSITIVE. -
getCount
public int getCount() -
get
-
allow
Description copied from class:FieldFilterRuleReturns true if the given field satisfies this rule; called byFieldFilterwith each field it checks.- Specified by:
allowin classFieldFilterRule
-
toString
-