@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 structuredConstructor 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.Validator
public void validate(Object object, org.springframework.validation.Errors errors)
validate
in interface org.springframework.validation.Validator
Should fail validation if condition object is null
Should fail validation if condition object is not an instance of the Condition class
Copyright © 2024 OpenMRS Inc.. All rights reserved.