public abstract class OperationValidator extends Object implements Validator
FilterOperator
. Currently all
subclasses of this are final and singletons so this isn't the root of a massive class hierarchy.Constructor and Description |
---|
OperationValidator() |
Modifier and Type | Method and Description |
---|---|
boolean |
apply(MappedField mappedField,
FilterOperator operator,
Object value,
List<ValidationFailure> validationFailures)
Apply validation for the given operator.
|
public boolean apply(MappedField mappedField, FilterOperator operator, Object value, List<ValidationFailure> validationFailures)
validationFailures
.mappedField
- the field being queriedoperator
- any FilterOperator for a queryvalue
- the query value, to apply the operator tovalidationFailures
- the list to add any failures to. If validation passes or appliesTo
returned false, this list will
not change.Copyright © 2016. All rights reserved.