public class NotNullValidator
extends AbstractFieldPathValidator
interface DataSearchValidator
implementation to check if the field expression value is not null
.
The comparison is made with the class NullValue
object or NullValue.NULL_VALUE constant.
interface DataSearchValidator
,
class NullValue
public NotNullValidator(@NotNull java.lang.String... fieldPaths)
interface DataSearchValidator
implementation to check if the field expression value is not null
.
The comparison is made with the class NullValue
object or NullValue.NULL_VALUE constant.
interface DataSearchValidator
,
class NullValue
public void validateSingle(@NotNull java.lang.Object value, @NotNull FieldExpression fieldExpression, @NotNull DataSearchErrors errors)
Override this method to validate the given single value
related to the interface FieldExpression
.
The given interface DataSearchErrors
instance can be used to report any resulting validation errors.
value
- single value to be validated. Cannot be a Collection (validateCollection
is called).fieldExpression
- interface FieldExpression
related to the value
errors
- interface DataSearchErrors
instance used to report any resulting validation errorsvalue
,
interface FieldExpression
,
interface DataSearchErrors