@Handler(supports=Patient.class, order=25) public class PatientValidator extends PersonValidator
| Constructor and Description |
|---|
PatientValidator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
supports(java.lang.Class c)
Returns whether or not this validator supports validating a given class.
|
void |
validate(java.lang.Object obj,
org.springframework.validation.Errors errors)
Validates the given Patient.
|
public boolean supports(java.lang.Class c)
supports in interface org.springframework.validation.Validatorsupports in class PersonValidatorc - The class to check for support.Validator.supports(java.lang.Class)public void validate(java.lang.Object obj,
org.springframework.validation.Errors errors)
validate in interface org.springframework.validation.Validatorvalidate in class PersonValidatorobj - The patient to validate.errors - ErrorsValidator.validate(java.lang.Object,
org.springframework.validation.Errors)Copyright © 2018 OpenMRS Inc.. All Rights Reserved.