Package ddf.catalog.validation
Interface QueryValidator
public interface QueryValidator
A
QueryRequest may be structurally valid but be semantically incorrect. For example, a
QueryRequest might include a valid Filter but the specified source may not
support it. A QueryValidator inspects a QueryRequest for these types of
violations.
This code is experimental. While this interface is functional and tested, it may change or be removed in a future version of the library.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the unique identifier corresponding to this validator instance.validate(QueryRequest request) Validates aQueryRequestfor semantic correctness.
-
Method Details
-
getValidatorId
String getValidatorId()Returns the unique identifier corresponding to this validator instance. This is used as a marker to determine which violations were created by each validator instance.- Returns:
- the id of this validator
-
validate
Validates aQueryRequestfor semantic correctness.- Parameters:
request- - theQueryRequestto validate- Returns:
- a
Setof violations found in therequest.
-