public class RequireNameValidator extends Object implements org.springframework.validation.Validator
| Constructor and Description | 
|---|
| RequireNameValidator() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | supports(Class<?> c) | 
| void | validate(Object o,
        org.springframework.validation.Errors errors) | 
public boolean supports(Class<?> c)
supports in interface org.springframework.validation.ValidatorValidator.supports(java.lang.Class)public void validate(Object o, org.springframework.validation.Errors errors)
validate in interface org.springframework.validation.ValidatorShould fail validation if name is null or empty or whitespace
 Should pass validation if name has proper valueCopyright © 2024 OpenMRS Inc.. All rights reserved.