| Constructor and Description |
|---|
AlertValidator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
supports(Class<?> c)
Determines if the command object being submitted is a valid type
|
void |
validate(Object obj,
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 obj, org.springframework.validation.Errors errors) throws APIException
validate in interface org.springframework.validation.ValidatorAPIExceptionShould fail validation if Alert Text is null or empty or whitespace
Should pass validation if all required values are set
Should pass validation if field lengths are correct
Should fail validation if field lengths are not correctCopyright © 2024 OpenMRS Inc.. All rights reserved.