public class NotEmptyValidator extends Object implements javax.validation.ConstraintValidator<javax.validation.constraints.NotEmpty,Object>
ConstraintValidator
implementation for NotEmpty
.
Additionally, check the non-emptiness of an
any object that has a public isEmpty():boolean or a valid toString() method.Constructor and Description |
---|
NotEmptyValidator() |
Modifier and Type | Method and Description |
---|---|
boolean |
isValid(Object value,
javax.validation.ConstraintValidatorContext context) |
Copyright © 2010–2020 The Apache Software Foundation. All rights reserved.