@Handler(supports=PatientProgram.class, order=50) public class PatientProgramValidator extends java.lang.Object implements org.springframework.validation.Validator
PatientProgram
objectConstructor and Description |
---|
PatientProgramValidator() |
Modifier and Type | Method and Description |
---|---|
boolean |
supports(java.lang.Class c) |
void |
validate(java.lang.Object obj,
org.springframework.validation.Errors errors)
Validates the given PatientProgram.
|
public boolean supports(java.lang.Class c)
supports
in interface org.springframework.validation.Validator
Validator.supports(java.lang.Class)
public void validate(java.lang.Object obj, org.springframework.validation.Errors errors)
validate
in interface org.springframework.validation.Validator
obj
- The patient program to validate.errors
- ErrorsValidator.validate(java.lang.Object,
org.springframework.validation.Errors)
Copyright © 2018 OpenMRS Inc.. All Rights Reserved.