@Handler(supports=Condition.class, order=50) public class ConditionValidator extends Object implements org.springframework.validation.Validator
Condition objects
This class ensures that the condition object is valid and properly structured| Constructor and Description |
|---|
ConditionValidator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
supports(Class<?> aClass) |
void |
validate(Object object,
org.springframework.validation.Errors errors) |
public boolean supports(Class<?> aClass)
supports in interface org.springframework.validation.Validatorpublic void validate(Object object, org.springframework.validation.Errors errors)
validate in interface org.springframework.validation.ValidatorShould fail validation if condition object is null
Should fail validation if condition object is not an instance of the Condition classCopyright © 2024 OpenMRS Inc.. All rights reserved.