public class EntityTypeFilter extends CriteriaFilter
Set
of Class
es.
null inputs are allowed to pass through as they belong to all types.Constructor and Description |
---|
EntityTypeFilter() |
EntityTypeFilter(Set<Class> types) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkCriteria(Object object)
Checks the business logic against which the Predicate will succeed (response as true) or fail (false).
|
boolean |
evaluate(Object object) |
Set<Class> |
getTypes() |
boolean |
isStrict()
If strict then it will ensure the input matches the type and only that type and not any generalization (child) of it.
|
void |
setStrict(boolean strict)
If strict then it will ensure the input matches the type and only that type and not any generalization (child) of it.
|
void |
setTypes(Set<Class> types) |
getErrorMsg, setErrorMsg, test, transform
public boolean evaluate(Object object)
evaluate
in class CriteriaFilter
protected boolean checkCriteria(Object object)
CriteriaFilter
ContinueProcessingException
.
Exception
type.checkCriteria
in class CriteriaFilter
public boolean isStrict()
public void setStrict(boolean strict)
Copyright © 2018. All rights reserved.