@Handler(supports=EncounterRole.class, order=50) public class EncounterRoleValidator extends RequireNameValidator
EncounterRole
classConstructor and Description |
---|
EncounterRoleValidator() |
Modifier and Type | Method and Description |
---|---|
void |
validate(Object obj,
org.springframework.validation.Errors errors)
Checks the form object for any inconsistencies/errors
|
supports
public void validate(Object obj, org.springframework.validation.Errors errors)
validate
in interface org.springframework.validation.Validator
validate
in class RequireNameValidator
Should fail validation if name is null or empty or whitespace
Should fail validation if name is duplicate
Should pass validation if all required fields have proper values
Should pass validation if field lengths are correct
Should fail validation if field lengths are not correct
Copyright © 2024 OpenMRS Inc.. All rights reserved.