public class EqualsCheckFilter extends CriteriaFilter
Object#equals()
operand
.CriteriaFilter.transform(Object)
and Not equals; it will throw a ContinueProcessingException
else return the input if it succeeds in transformation.Constructor and Description |
---|
EqualsCheckFilter() |
EqualsCheckFilter(Object operand) |
EqualsCheckFilter(Object operand,
boolean notEquals) |
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).
|
Object |
getOperand()
|
boolean |
isEquals()
If false will convert this Equals to Not-Equals (inverse condition)
|
boolean |
isInputEqualsOperand()
|
void |
setEquals(boolean equals)
If false will convert this Equals to Not-Equals (inverse condition)
|
void |
setInputEqualsOperand(boolean inputEqualsOperand)
|
void |
setOperand(Object operand)
|
evaluate, getErrorMsg, setErrorMsg, test, transform
public EqualsCheckFilter()
public EqualsCheckFilter(Object operand)
public EqualsCheckFilter(Object operand, boolean notEquals)
public Object getOperand()
public void setOperand(Object operand)
public boolean isEquals()
public void setEquals(boolean equals)
public boolean isInputEqualsOperand()
public void setInputEqualsOperand(boolean inputEqualsOperand)
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 ErrorCopyright © 2018. All rights reserved.