public class RegExCheckFilter extends CriteriaFilter
Constructor and Description |
---|
RegExCheckFilter() |
RegExCheckFilter(Pattern pattern) |
RegExCheckFilter(String patternStr)
Uses default
Pattern.compile(String) . |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkCriteria(Object input)
Checks the business logic against which the Predicate will succeed (response as true) or fail (false).
|
Pattern |
getPattern()
The
Pattern to check against |
boolean |
isPartialMatch()
If true, and the input CONTAINTS the pattern then
checkCriteria(Object) will stil return true |
void |
setPartialMatch(boolean partialMatch)
If true, and the input CONTAINTS the pattern then
checkCriteria(Object) will stil return true |
void |
setPattern(Pattern pattern)
The
Pattern to check against |
evaluate, getErrorMsg, setErrorMsg, test, transform
public RegExCheckFilter()
public RegExCheckFilter(String patternStr)
Pattern.compile(String)
. If you want to use flags also then it is recommended to use the constructor with the Pattern
type parameter.patternStr
- as Stringpublic RegExCheckFilter(Pattern pattern)
protected boolean checkCriteria(Object input) throws ContinueProcessingException, BreakChainException, Exception
CriteriaFilter
ContinueProcessingException
.
Exception
type.checkCriteria
in class CriteriaFilter
ContinueProcessingException
- skipping further record processingBreakChainException
- for explained business logic failed conditionsException
- for any serious Errorpublic boolean isPartialMatch()
checkCriteria(Object)
will stil return truepublic void setPartialMatch(boolean partialMatch)
checkCriteria(Object)
will stil return trueCopyright © 2018. All rights reserved.