public final class GeoWithinOperationValidator extends OperationValidator
FilterOperator.GEO_WITHIN operator.| Modifier and Type | Method and Description |
|---|---|
static GeoWithinOperationValidator |
getInstance()
Get the instance.
|
protected FilterOperator |
getOperator()
This method is called by the
apply method to determine whether to validate the query. |
protected void |
validate(MappedField mappedField,
Object value,
List<ValidationFailure> validationFailures)
Performs the actual validation, and assumes
appliesTo has returned true |
applypublic static GeoWithinOperationValidator getInstance()
protected FilterOperator getOperator()
OperationValidatorapply method to determine whether to validate the query. The validator will only work for a
single FilterOperator, and this will be returned by this methodgetOperator in class OperationValidatorprotected void validate(MappedField mappedField, Object value, List<ValidationFailure> validationFailures)
OperationValidatorappliesTo has returned truevalidate in class OperationValidatormappedField - the field being queriedvalue - the query value, to apply the operator to. This should not be null.validationFailures - the list to add any new ValidationFailures to. If validation passed this list will not change.