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.Validator
Validator.supports(java.lang.Class)
public void validate(Object o, org.springframework.validation.Errors errors)
validate
in interface org.springframework.validation.Validator
Should fail validation if name is null or empty or whitespace
Should pass validation if name has proper value
Copyright © 2024 OpenMRS Inc.. All rights reserved.